<!--
function checkAll2() {	
	var bgBad = "#FDEEB0";
	var txtBad = "#580005";
	txt=self.document.forms[0].numtest.value;
	RN=self.document.forms[0].RN.value;
	subNum=self.document.forms[0].subNum.value;
	if (txt =='') {
		alert("Please enter a number in the anti-spam box.");
		self.document.forms[0].numtest.focus();
        return (false);
	    }
		else
	{
			
			if (txt==(RN-subNum))
			{
				;
				  return (true);
				} else {
					alert("Please check your math and enter the correct number in the anti-spam box. \r\n \r\n This is important to keep out Spam-bots.");
						self.document.forms[0].numtest.focus();
					        return (false);
					}
		}
}
function checkAll() {	
txt=self.document.forms[0].name.value;
	if (txt =='') {
		alert("Please enter your name.");
		self.document.forms[0].name.focus();
        return (false);
	    }
}
function checkAll3() {	
txt=self.document.whaxi.first_name.value;
	if (txt =='') {
		alert("Please enter your first name.");
		self.document.whaxi.first_name.focus();
        return (false);
	    }
txt=self.document.whaxi.last_name.value;
	if (txt =='') {
		alert("Please enter your last name.");
		self.document.whaxi.last_name.focus();
		return (false);
		}
	//alert("test");	
txt=self.document.whaxi.address.value;
txt2=self.document.whaxi.city.value;
txt3=self.document.whaxi.state.value;
txt4=self.document.whaxi.Province.value;
//	if ((txt =='')||(txt2 =='')||(txt3 =='--- Select a State ---')&&(txt4 =='')) {
	if ((txt =='')||(txt2 =='')||(txt3 =='--- Select a State ---')&&(txt4 =='')) {	
		alert("Your Address, City, and State are needed to process your credit card.");
	if (txt =='') {
		self.document.whaxi.address.focus();
    		return (false);
		}
		if (txt2 =='') {
		self.document.whaxi.city.focus();
      		return (false);
		}
		self.document.whaxi.state.focus();
    	return (false);
	}

txt=self.document.whaxi.zip.value;

	if (txt ==''){
		alert("Your zip or postal code?");
		self.document.whaxi.zip.focus();
		return (false);
		}
txt=self.document.whaxi.phone.value;

	if (txt ==''){
		alert("Please enter your phone number, \r\n so we can reach you if need be.");
		self.document.whaxi.phone.focus();
		return (false);
		}

	//*****begin email check*****
		txt=self.document.whaxi.email.value;
				if (txt =='') {
		alert("Please enter your email address. \r\n \r\n Thanks!");
		self.document.whaxi.email.focus();
       return (false);
	  } 
	  if (txt !='') {
	var badchars="<> ;,'!#$%^&*()+=/\\?";
	for (var i=0; i < txt.length; i++) {
		temp = "" +txt.substring(i, i+1);
		if (badchars.indexOf(temp) != -1) {
			alert("Your e-mail address contains illegal characters.\n\n\tPlease try again.");
			self.document.whaxi.email.focus();
        	return (false);
		}
	}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		self.document.whaxi.email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.whaxi.email.focus();
        return (false);
	}
	if ((arr[1].charAt(0) == '.') || (arr[1].charAt(arr[1].length-1) == '.')) {
		alert("Sorry your email address needs to be in a bonafide email format, with at least one  period.");
		self.document.whaxi.email.focus();
        return (false);
	}	
	if ((arr[0].charAt(0) == '.') || (arr[0].charAt(arr[0].length-1) == '.')) {
		alert("Your e-mail address is incomplete (i.e. no \"suffix\" after the dot).\n\n\tPlease try again.");
		self.document.whaxi.email.focus();
        return (false);
	}					
	if ((arr[1].indexOf('.') > arr[1].length-3) || (arr[1].indexOf('.') == -1)) {
		alert("Your e-mail address must contain an internet domain (i.e. \"yourwebaddress.com\").\n\n\tPlease try again.");
		self.document.whaxi.email.focus();
        return (false);
	}
	if (txt.indexOf("..") > 0) {
		alert("You have entered an e-mail address containing two (2) dots in a row.\n\n\tPlease try again.");
		self.document.whaxi.email.focus();
        return (false);
	}
	var tld;
	tld = arr[1].substring(arr[1].lastIndexOf('.'));
	
	if ((tld.length != 3) && (tld != '.com') && (tld != '.edu') && (tld != '.gov') && (tld != '.int') && (tld != '.mil') && (tld != '.org') && (tld != '.net') && (tld != '.info') && (tld != '.biz') && (tld != '.coop') && (tld != '.aero') && (tld !='.arpa') && (tld != '.museum') && (tld != '.name') && (tld != '.pro') && (tld != '.nato') && (tld != '.nom') && (tld != '.firm') && (tld != '.store') && (tld != '.web') && (tld != '.COM') && (tld != '.EDU') && (tld != '.GOV') && (tld != '.INT') && (tld != '.MIL') && (tld != '.ORG') && (tld != '.NET') && (tld != '.INFO') && (tld != '.BIZ') && (tld != '.COOP') && (tld != '.AERO') && (tld !='.ARPA') && (tld != '.MUSEUM') && (tld != '.NAME') && (tld != '.PRO') && (tld != '.NATO') && (tld != '.NOM') && (tld != '.FIRM') && (tld != '.STORE') && (tld != '.WEB')) {
		alert("You have entered an incorrect domain or country code.\n\n\tPlease try again.");
		self.document.whaxi.email.focus();
        return (false);
	}
	  }
	//*****end email check*****
		txt=self.document.whaxi.ccnum.value;
	if (txt =='') {
		alert("Please enter your credit card number.");
		self.document.whaxi.ccnum.focus();
		return (false);
		}
		txt=self.document.whaxi.ccmo.value;
	//if (txt ==0) {
		//alert("Please select the month your card expires.");
				//alert(txt);
		//self.document.whaxi.ccmo.focus();
		//return (false);
		//}
//txt=self.document.whaxi.ccyr.value;
	//if (txt ==0) {
		//alert("Please select the year your card expires.");
		//self.document.whaxi.ccyr.focus();
		//return (false);
		//}
}
function checkAll4(form_var) {	
txt=self.document.form4.first_name.value;
	if (txt =='') {
		alert("Please enter your first name.");
		self.document.form4.first_name.focus();
        		
		return (false);
	    }

txt=self.document.form4.last_name.value;
	if (txt =='') {
		alert("Please enter your last name.");
		//self.document.form4.last_name.focus();
		self.document.form4.last_name.focus();
        return (false);
	    }

	//*****begin email check*****
		txt=self.document.form4.email.value;
				if (txt =='') {
		alert("Please enter your email address. \r\n \r\n Thanks!");
		self.document.form4.email.focus();
       return (false);
	  } 
	  if (txt !='') {
	var badchars="<> ;,'!#$%^&*()+=/\\?";
	for (var i=0; i < txt.length; i++) {
		temp = "" +txt.substring(i, i+1);
		if (badchars.indexOf(temp) != -1) {
			alert("Your e-mail address contains illegal characters.\n\n\tPlease try again.");
			self.document.form4.email.focus();
        	return (false);
		}
	}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		self.document.form4.email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.form4.email.focus();
        return (false);
	}
	if ((arr[1].charAt(0) == '.') || (arr[1].charAt(arr[1].length-1) == '.')) {
		alert("Sorry your email address needs to be in a bonafide email format, with at least one  period.");
		self.document.form4.email.focus();
        return (false);
	}	
	if ((arr[0].charAt(0) == '.') || (arr[0].charAt(arr[0].length-1) == '.')) {
		alert("Your e-mail address is incomplete (i.e. no \"suffix\" after the dot).\n\n\tPlease try again.");
		self.document.form4.email.focus();
        return (false);
	}					
	if ((arr[1].indexOf('.') > arr[1].length-3) || (arr[1].indexOf('.') == -1)) {
		alert("Your e-mail address must contain an internet domain (i.e. \"yourwebaddress.com\").\n\n\tPlease try again.");
		self.document.form4.email.focus();
        return (false);
	}
	if (txt.indexOf("..") > 0) {
		alert("You have entered an e-mail address containing two (2) dots in a row.\n\n\tPlease try again.");
		self.document.form4.email.focus();
        return (false);
	}
	var tld;
	tld = arr[1].substring(arr[1].lastIndexOf('.'));
	
	if ((tld.length != 3) && (tld != '.com') && (tld != '.edu') && (tld != '.gov') && (tld != '.int') && (tld != '.mil') && (tld != '.org') && (tld != '.net') && (tld != '.info') && (tld != '.biz') && (tld != '.coop') && (tld != '.aero') && (tld !='.arpa') && (tld != '.museum') && (tld != '.name') && (tld != '.pro') && (tld != '.nato') && (tld != '.nom') && (tld != '.firm') && (tld != '.store') && (tld != '.web') && (tld != '.COM') && (tld != '.EDU') && (tld != '.GOV') && (tld != '.INT') && (tld != '.MIL') && (tld != '.ORG') && (tld != '.NET') && (tld != '.INFO') && (tld != '.BIZ') && (tld != '.COOP') && (tld != '.AERO') && (tld !='.ARPA') && (tld != '.MUSEUM') && (tld != '.NAME') && (tld != '.PRO') && (tld != '.NATO') && (tld != '.NOM') && (tld != '.FIRM') && (tld != '.STORE') && (tld != '.WEB')) {
		alert("You have entered an incorrect domain or country code.\n\n\tPlease try again.");
		self.document.form4.email.focus();
        return (false);
	}
	  }
	//*****end email check*****
}
	//-->

