<!--	function validEmail(email) { 		invalidChars = " /:,;";		if (email == "") return false;		for (i=0; i<invalidChars.length; i++) {			badChar = invalidChars.charAt(i);			if (email.indexOf(badChar,0) > -1) return false;		}		atPos = email.indexOf("@",1);		if (atPos == -1) return false;		if (email.indexOf("@",atPos+1) != -1) return false;		periodPos = email.indexOf(".",atPos);		if (periodPos == -1) return false;		if (periodPos+3 > email.length) return false;        if (email.indexOf("..",atPos) > atPos) return false;		return true;	}      function validDate(bday) {             if (bday.value == "") return true;             var ndate = new Date(bday.value);             if (ndate.toString() == "NaN") {                  alert("Invalid Date - Please enter mm/dd/yyyy");                  return false;             }             var year = ndate.getFullYear();             if ((year < 1900) || (year > 1990)) {                  alert("Year must be between 1900 and 1999.");                  return false;             }             bday.value = (ndate.getMonth()+1)+"/"+ndate.getDate()+"/"+ndate.getFullYear();             return true;       }       function validPhone(phone) {             var allowed = "0123456789()-. ";             var number = phone.value;             var len = phone.value.length;             var returnval = true;             for (i=0; i<len; i++) {                  if (allowed.indexOf(number.charAt(i),0) == -1) return error("Phone numbers can only have the characters 0123456789()-. and space",phone);             }             return true;       }     	function isNum(num) {		if (num =="") return false;		for (i=0; i<num.length; i++) {			if (num.charAt(i) < "0") return false;			if (num.charAt(i) > "9") return false;		}		return true;	    }	function makeArray() {		var args = makeArray.arguments;		for (i=0; i<args.length; i++) {			this[i] = args[i];		}		this.length = args.length;	}	function makeNullArray(len) {		for (i=0; i<len; i++) this[i] = null;		this.length = len;	}function error(msg, field) {    alert(msg);    field.focus();    if (field.type) if (field.type=="text" || field.type=="textarea") field.select();    return false;}function StateProvince(countrySel) {  if (countrySel.options[countrySel.selectedIndex].value=="USA") MM_showHideLayers('stateLayer','','show','provinceLayer','','hide');  else MM_showHideLayers('stateLayer','','hide','provinceLayer','','show');}  function FinAid(fincheck) {  if (fincheck.checked) {    if (document.all.theform.tuition.selectedIndex > 0) {      fincheck.checked = false;      return error("Financial aid is only available for Full Tuition students",fincheck);    }    MM_showHideLayers('FinancialAid','','show','firstSubmit','','hide')    document.all.theform.need.focus();  }  else MM_showHideLayers('FinancialAid','','hide','firstSubmit','','show');}	function submitIt(appForm) {		var required = new makeArray("realname",			"address1",			"city",			"zip",			"homephone",			"custemail",			"birthday");		var notEntered = new makeNullArray(11);		var message = "";		var j = 0;		for (i=0; i<required.length; i++) {			if (appForm[required[i]].value == "") {                           if (message == "") {                                message = message + "\n" + required[i];                           }                           else {	  			                message = message + ", " + required[i];                           }				           notEntered[j] = required[i];                           j++;			}			}             if ((appForm.country.selectedIndex > 0) && (appForm.province.value == "")) {                    if (message == "") message = "\nprovince"                    else message += ", province";                    notEntered[j++] = "province";			 }				                if (appForm.financial.checked) {                    if (appForm.need.value=="") {                           message += ", need";                           notEntered[j++] = "need";                    }                    if (appForm.statement.value=="") {                           message += ", statement";                           notEntered[j++] = "statement";                    }             }			 			 if (message != "") return error("You left the following required fields blank:" + message,appForm[notEntered[0]]);             var instnum = appForm.instrument.selectedIndex;			 if (instnum==0) return error("Please choose an instrument",appForm.instrument);             var statenum = appForm.state.selectedIndex;             if ((appForm.country.selectedIndex==0) && (statenum == 0)) return error("Please choose a state",appForm.state);			              if (appForm.financial.checked && (appForm.need.value > 1400)) return error("Maximum scholarship is $1400",appForm.need);             if (!validEmail(appForm.custemail.value)) return error("Invalid email address",appForm.custemail);             if (!validDate(appForm.birthday)) return error("Invalid birthday",appForm.birthday);             if (!validPhone(appForm.homephone)) return error("Invalid home phone number",appForm.homephone);             if (!validPhone(appForm.workphone)) return error("Invalid work phone number",appForm.workphone);             if (!validPhone(appForm.fax)) return error("Invalid fax number",appForm.fax);			              newwin = open("confirmapp.htm", "confirmapp", "height=450,width=450,scrollbars=yes");             return false;	}// -->