// JavaScript Document
function checkForm() { 
	var numParam=checkForm.arguments.length;
	var theForm=checkForm.arguments[0];
	
	if(numParam==1){ // check all fields
		var numFields=theForm.length;
		for(i=0;i<numFields;i++){
			if(theForm.elements[i].value==''){
				alert("Please complete all fields");
				return false;
				break;
			}	
		}
		return true;
	}
	
	else {
		for(i=1;i<numParam;i++){
			var field=checkForm.arguments[i];
			if(theForm.elements[field].value==''){
				alert ("Please complete "+field);
				return false;
				break;
			}
		}
		return true;
		
	}
	
}

function goTo(selObj, url){
	window.location=url+selObj.options[selObj.selectedIndex].value;
	return true;
}