function validate_required(field,alerttxt) {
	with (field) {
		if (value==null||value==""){
			alert(alerttxt);
			return false;
		} else {
			return true;
		}
	}
}


function validate_select(field,alerttxt) {
	with (field) {
		if (field.selectedIndex == 0){
			alert(alerttxt);
			return false;
		} else {
			return true;
		}
	}
}


function validate_form(thisform){
	with (thisform){
		if (validate_required(exam,"Exam type must be specified.")==false){
			exam.focus();
			return false;
		}
		if (validate_select(location,"Location must be specified.")==false){
			location.focus();
			return false;
		}
	}
}