<!--	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) {             var ndate = new Date(bday.value);             if (ndate == "Invalid Date") {                  alert("Invalid Date");                  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() + '\/' + year;             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) {                         alert("Phone numbers can only have the characters 0123456789()-. and space");                        // phone.value = "";                         phone.focus();                         phone.select();                         return false;                   }             }             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 submitIt(appForm) {		//check for required fields		var required = new makeArray("realname",			"company",			"address1",			"city",			"zip",                    "country",			"phone",			"fax",			"email");		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++;			}			}             var statenum = appForm.state.options.selectedIndex;             if ((appForm.state.options[statenum].value == " ") && (appForm.province.value == "")) {                    if (message == "") message = "\nstate or province"                    else message += ", state or province";                    notEntered[j++] = "province";             }             if (appForm.ad.checked) {                    if (!(appForm.adsize[0].checked || appForm.adsize[1].checked || appForm.adsize[2].checked)) {                           message += ", program ad size";                           notEntered[j++] = "adsize";                    }              }              if (appForm.concert.checked) {                    i = appForm.concertn.selectedIndex;                    if (i==0) {                           message += ", concert day";                           notEntered[j++] = "concertn";                    }              }              if (appForm.artist.checked) {                    i = appForm.artistnum.selectedIndex;                    if (i==0) {                           message += ", artist name";                           notEntered[j++] = "artistnum";                    }              }		if (message != "") {			alert("You left the following required fields blank:" + message);    			appForm[notEntered[0]].focus();			return false;		}             if ((appForm.state.options[statenum].value != " ") && (appForm.province.value != "")) {                    alert("Enter state or province but not both");                    appForm.province.focus();                    appForm.province.select();                    return false;             }             if (!validEmail(appForm.email.value)) {                    alert("Invalid email address");                    appForm.email.focus();                    appForm.email.select();                    return false;             }             if (!validPhone(appForm.phone)) {                    alert("Invalid home phone number");                    appForm.homephone.focus();                    appForm.homephone.select();                    return false;             }             if (!validPhone(appForm.fax)) {                    alert("Invalid fax number");                    appForm.fax.focus();                    appForm.fax.select();                    return false;             }             var total = 0;             appForm.sort.value = "order:contact,company,address1,address2,city,state,province,zip,country,phone,fax,email";             if (appForm.booth.checked) {                   appForm.sort.value += ",booth";                   total += 300;             }             if (appForm.ad.checked) {                   appForm.sort.value += ",adsize";                   if (appForm.adsize[0].checked) {                         total += 300;                   }                   if (appForm.adsize[1].checked) {                         total += 175;                   }                   if (appForm.adsize[2].checked) {                         total += 100;                   }             }             if (appForm.reception.checked) {                   appForm.sort.value += ",reception";                   total += 1000;             }             if (appForm.concert.checked) {                   appForm.sort.value += ",concert,concertn";                   total += 1500;             }             if (appForm.artist.checked) {                   appForm.sort.value += ",artist,artistnum";                   total += 1500;             }             if (appForm.festival.checked) {                   appForm.sort.value += ",festival";                   total += 5000;             }             if (total == 0) {                   alert("You haven't selected any sponsorships");                   appForm.booth.focus();                   return false;             }             appForm.sort.value += ",total";             appForm.total.value = total;             newwin = open("vendorconf.htm", "vendorconf", "height=500,width=600,scrollbars=yes");             newwin.focus();             return false;	}// -->