<!--
function checkList()
{
	txt1=self.document.assets.WS_Num.value;
	if (txt1==1008){
	alert("Please select a location and date from the pull-down menu.");
        return (false);
	}
	}
function checkHours()
{
	txt1=self.document.coaching.hours1.value;
	if (txt1=='select'){
	alert("Please select the number of hours you are pre-paying for.\n\n(Don't forget, you will receive a full, unconditional refund if you are not 100% satisfied)");
        return (false);
	}
	}
	
function checkList_Seminar()
{
	txt1=self.document.seminars.WS_Num.value;
	if (txt1==1008){
	alert("Please select a location and date from the pull-down menu.");
        return (false);
	}
	}
function checkName_PW3()
{

txt1=self.document.forms.signer.name.value;
	if (txt1 =='') {
	alert("Please enter your first name.\n\nYou do not need to enter your LAST name if you don't want to.  \n\n(We'll get over it soon enough :)");
		self.document.forms.signer.name.focus();
        return (false);
	    }


	txt=self.document.forms.signer.email.value;
			if (txt ==''||txt ==' ') 
					{
				 	 		alert ( "Please enter your email address.\n\n - you'll need it to log in later\n\n   (We will never share it with anyone else)" );
							self.document.signer.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.signer.email.focus();
        							return (false);
																}
														}
					}

	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		self.document.signer.email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.signer.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.signer.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.signer.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.signer.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.signer.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.signer.email.focus();
        return (false);
	}


     
 } 
 
 	//===================================================================================================================

function checkName_PW()
{
 
txt1=self.document.forms[0].name.value;
	if (txt1 =='') {
	alert("Please enter your first name.\n\nYou do not need to enter your LAST name if you don't want to.  \n\n(We'll get over it soon enough :)");
		self.document.forms[0].name.focus();
        return (false);
	    }


	txt=self.document.forms[0].email.value;
			if (txt ==''||txt ==' ') 
					{
				 	 		alert ( "Please enter your email address.\n\n - you'll need it to log in later\n\n   (We will never share it with anyone else)" );
							self.document.forms[0].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.forms[0].email.focus();
        							return (false);
																}
														}
					}

	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		self.document.forms[0].email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].email.focus();
        return (false);
	}


     
 } 
 
 	//////////////////////////////////////////////////////////////////////////////////////////=

 
function checkName_PW2()
{

txt1=self.document.forms[0].name.value;
	if (txt1 =='') {
	alert("Please enter your first name.\n\nYou do not need to enter your LAST name if you don't want to. \n \n(We'll get over it soon enough :)");
		self.document.forms[0].name.focus();
        return (false);
	    }

	txt=self.document.forms[0].email.value;
			if (txt ==''||txt ==' ')
					{
				 	 		alert ( "Please enter your email address.\n\n - you'll need it to log in later\n\n   (We will never share it with anyone else)" );
							self.document.forms[0].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.forms[0].email.focus();
        							return (false);
																}
														}
					}

	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		self.document.forms[0].email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].email.focus();
        return (false);
	}


     
 } 
 

	///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
function checkAll8(form) /// FOR PayPal Only
{
//alert("CheckAll 8 Working");

var email=form.email.value;
var fullname=form.fullname.value;

if (fullname ==''||fullname ==' ') {
	alert("Please enter your name.");
		form.fullname.focus();
        return (false);
	    }

		if (email ==''||email ==' ')
					{
				 	 		alert ( "Please enter your email address.\n\n   (we will never share it with anyone else)" );
							form.email.focus();
        					return (false);
					 }
	 if (email !='') {
					var badchars="<>;,'!#$%^&*()+=/\\?";
					for (var i=0; i < email.length; i++) {
							temp = "" +email.substring(i, i+1);
							if (badchars.indexOf(temp) != -1) {
									alert("Your e-mail address contains illegal characters.\n\n\tPlease try again.");
									form.email.focus();
        							return (false);
																}
														}
					}

	var arr;
	arr = email.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		form.email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		form.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.");
		form.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.");
		form.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.");
		form.email.focus();
        return (false);
	}
	if (email.indexOf("..") > 0) {
		alert("You have entered an e-mail address containing two (2) dots in a row.\n\n\tPlease try again.");
		form.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.");
		form.email.focus();
        return (false);
	}
	

}
	///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
function checkAll8x(form) /// FOR PayPal Only with workshop options
{
//alert("CheckAll 8x Working");

var email=form.email.value;
var fullname=form.fullname.value;

if (fullname ==''||fullname ==' ') {
	alert("Please enter your name.");
		form.fullname.focus();
        return (false);
	    }

		if (email ==''||email ==' ')
					{
				 	 		alert ( "Please enter your email address.\n\n   (we will never share it with anyone else)" );
							form.email.focus();
        					return (false);
					 }
	 if (email !='') {
					var badchars="<>;,'!#$%^&*()+=/\\?";
					for (var i=0; i < email.length; i++) {
							temp = "" +email.substring(i, i+1);
							if (badchars.indexOf(temp) != -1) {
									alert("Your e-mail address contains illegal characters.\n\n\tPlease try again.");
									form.email.focus();
        							return (false);
																}
														}
					}

	var arr;
	arr = email.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		form.email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		form.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.");
		form.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.");
		form.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.");
		form.email.focus();
        return (false);
	}
	if (email.indexOf("..") > 0) {
		alert("You have entered an e-mail address containing two (2) dots in a row.\n\n\tPlease try again.");
		form.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.");
		form.email.focus();
        return (false);
	}
			myOption = -1;
for (i=form.amount.length-1; i > -1; i--) {
if (form.amount[i].checked) {
myOption = i; i = -1;
}
}
if (myOption == -1) {
alert("Please select either VIP Coaching or General Admission.");
return false;
}	

}
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function checkAll8b(form) /// FOR PayPal Only  has amount check  
{
//alert("CheckAll 8 Working");

var email=form.email.value;
var fullname=form.fullname.value;

if (fullname ==''||fullname ==' ') {
	alert("Please enter your name.");
		form.fullname.focus();
        return (false);
	    }

		if (email ==''||email ==' ')
					{
				 	 		alert ( "Please enter your email address.\n\n   (we will never share it with anyone else)" );
							form.email.focus();
        					return (false);
					 }
	 if (email !='') {
					var badchars="<>;,'!#$%^&*()+=/\\?";
					for (var i=0; i < email.length; i++) {
							temp = "" +email.substring(i, i+1);
							if (badchars.indexOf(temp) != -1) {
									alert("Your e-mail address contains illegal characters.\n\n\tPlease try again.");
									form.email.focus();
        							return (false);
																}
														}
					}

	var arr;
	arr = email.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		form.email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		form.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.");
		form.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.");
		form.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.");
		form.email.focus();
        return (false);
	}
	if (email.indexOf("..") > 0) {
		alert("You have entered an e-mail address containing two (2) dots in a row.\n\n\tPlease try again.");
		form.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.");
		form.email.focus();
        return (false);
	}
	
var amount=form.amount.value;

if (amount ==''||amount ==' ') {
	alert("Please enter the amount you are paying today.");
		form.amount.focus();
        return (false);
	    }


}
function checkAll7()
{
txt=form.Forgot_email.value;
			if (txt ==''||txt ==' ')
					{
				 	 		alert ( "Please enter your email address so we can send you your password.");
							form.Forgot_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.");
									form.Forgot_email.focus();
        							return (false);
																}
														}
					}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");
		form.Forgot_email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your email address is incomplete.\n\n\tPlease try again.");
		form.Forgot_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.");
		form.Forgot_email.focus();
        return (false);
	}	
	if ((arr[0].charAt(0) == '.') || (arr[0].charAt(arr[0].length-1) == '.')) {
		alert("Your email address is incomplete (i.e. no \"suffix\" after the dot).\n\n\tPlease try again.");
		form.Forgot_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.");
		form.Forgot_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.");
		form.Forgot_email.focus();
        return (false);
	}
	var tld;
	tld = arr[1].substring(arr[1].lastIndexOf('.'));
	
	if ((tld.length != 3) && (tld != '.com') &&(tld != '.co') && (tld != '.edu') && (tld != '.gov') && (tld != '.int') && (tld != '.mil') && (tld != '.org') && (tld != '.net') && (tld != '.info') && (tld != '.biz')&& (tld != '.us') && (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 != '.CO') && (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 != '.US')) {
		alert("You have entered an incorrect domain or country code.\n\n\tPlease try again.");
		form.email.focus();
        return (false);
	}

 txt1=form.pw.value;
  //txt2=form.pw2.value;
  			if (txt1 ==''||txt1 ==' '||txt1 =='  ')
					{
				 	 		alert ( "Please enter your password.\n\n - click 'forgot your password?' if you need us to send your password to you");
							form.pw.focus();
        					return (false);
					 }
     
 } 
function checkAll4b()
{
 
txt1=self.document.forms[0].name.value;
	if (txt1 =='') {
	alert("Please enter at least your first name.\n\nYou do not need to enter your LAST name if you don't want to.  (We'll get over it soon enough :)");
		self.document.forms[0].name.focus(); 
        return (false);
	    }

	txt=self.document.forms[0].email.value;
			if (txt ==''||txt ==' ')
					{
				 	 		alert ( "Please enter your email address.\n\n - you'll need it to log in later, and also to receive your tips.\n\n   (we will never share it with anyone else)" );
							self.document.forms[0].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.forms[0].email.focus();
        							return (false);
																}
														}
					}

	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		self.document.forms[0].email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].email.focus();
        return (false);
	}
	
	txt1=self.document.forms[0].pw.value;
  txt2=self.document.forms[0].pw2.value;
  			if (txt1 ==''  )
					{
				 	 		alert ( "Please enter a password.\n\n - you can change it later, and if you ever forget it, we'll send it to you.  Easy as that!");
							self.document.forms[0].pw.focus();
        					return (false);
					 }
			if ( txt1 != txt2 )
					{
				 	 		alert ( "Your password entries don't match.\n\n - please try again");
							self.document.forms[0].pw.focus();
        					return (false);
					 }
	
}

function checkAll6()
{
	txt1=self.document.forms[0].firstname.value;
	if (txt1 =='') {
	alert("Please enter your first name.\n\nYou do not need to enter your LAST name if you don't want to. (We'll get over it soon enough :)");
		self.document.forms[0].firstname.focus();
        return (false);
	    }

	if (UpdateNow.checked != 1)  {
	alert("Please check the 'confirm update' box to proceed . . . ");
	self.document.forms[0].UpdateNow.focus();
        return (false);
	}
	txt=self.document.forms[0].email.value;
			if (txt ==''||txt ==' ')
					{
				 	 		alert ( "Please enter an email address so you can log in.");
							self.document.forms[0].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.forms[0].email.focus();
        							return (false);
																}
														}
					}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");
		self.document.forms[0].email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].email.focus();
        return (false);
	}

 txt1=self.document.forms[0].pw.value;
  txt2=self.document.forms[0].pw2.value;
  			if (txt1 ==''||txt1 ==' '||txt1 =='  '||txt1 =='   '||txt1 =='    ')
					{ 		
							alert ( "Please enter a password.");
							self.document.forms[0].pw.focus();
        					return (false);
					 }
				if ( txt1 != txt2 )
					{
				 	 		alert ( "Your password entries don't match.\n\n - please try again\n\n\t  . . . or click 'Logout' in the far upper right of this page to cancel all changes");
							self.document.forms[0].pw.focus();
        					return (false);
					 }
     
 }

function checkAll5()
{
	txt=self.document.forms[0].email.value;
			if (txt ==''||txt ==' ')
					{
				 	 		alert ( "Please enter your email address to log in.");
							self.document.forms[0].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.forms[0].email.focus();
        							return (false);
																}
														}
					}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");
		self.document.forms[0].email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].email.focus();
        return (false);
	}

 txt1=self.document.forms[0].pw.value;
  //txt2=self.document.forms[0].pw2.value;
  			if (txt1 ==''||txt1 ==' '||txt1 =='  ')
					{
				 	 		alert ( "Please enter your password.\n\n - click 'forgot your password?' if you need us to send your password to you");
							self.document.forms[0].pw.focus();
        					return (false);
					 }
     
 } 
function checkAll4()
{
 
txt1=self.document.forms[0].firstname.value;
	if (txt1 =='') {
	alert("Please enter your first name.\n\nYou do not need to enter your LAST name if you don't want to.  (We'll get over it soon enough :)");
		self.document.forms[0].firstname.focus();
        return (false);
	    }

	txt=self.document.forms[0].email.value;
			if (txt ==''||txt ==' ')
					{
				 	 		alert ( "Please enter your email address.\n\n - you'll need it to log in later\n\n   (we will never share it with anyone else)" );
							self.document.forms[0].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.forms[0].email.focus();
        							return (false);
																}
														}
					}

	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		self.document.forms[0].email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].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.forms[0].email.focus();
        return (false);
	}

 txt1=self.document.forms[0].pw.value;
  txt2=self.document.forms[0].pw2.value;
  			if (txt1 ==''  )
					{
				 	 		alert ( "Please enter a password.\n\n - you can change it later, and if you ever forget it, we'll send it to you.  Easy as that!");
							self.document.forms[0].pw.focus();
        					return (false);
					 }
			if ( txt1 != txt2 )
					{
				 	 		alert ( "Your password entries don't match.\n\n - please try again");
							self.document.forms[0].pw.focus();
        					return (false);
					 }
     
 } 
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 function checkCCShortForm(whaxi) {	
		
		txt=whaxi.x_first_name.value;
	if (txt =='') {
		alert("Please enter your first name as it appears on your credit card.");
		whaxi.x_first_name.focus();
        return (false);
	    }
	txt=whaxi.x_last_name.value;
	if (txt =='') {
		alert("Please enter your last name as it appears on your credit card.");
		whaxi.x_last_name.focus();
        return (false);
	    }


	//*****begin email check*****
		txt=whaxi.x_email.value;
				if (txt =='') {
		alert("Please enter your email address. \r\n \r\n Thanks!");
		whaxi.x_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.");
			whaxi.email.focus();
        	return (false);
		}
	}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		whaxi.x_email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		whaxi.x_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.");
		whaxi.x_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.");
		whaxi.x_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.");
		whaxi.x_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.");
		whaxi.x_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.");
		whaxi.x_email.focus(); 
        return (false);
	}
}

txt=whaxi.x_address.value;
txt2=whaxi.x_city.value;
txt3=whaxi.x_state.value;
if (txt =='') {
			alert("Your Billing Address is needed to process your credit card.");
			whaxi.x_address.focus();
       		return (false);
		}
if (txt2 =='') {
			alert("Your City is needed to process your credit card.");
			whaxi.x_city.focus();
       		return (false);
		}

if (txt3 =='') {
		alert("Please enter your state, territory, or province.");
		whaxi.x_state.focus();
        return (false);
	    }	
txt=whaxi.x_zip.value;

	if (txt ==''){
		alert("Please enter your Zip or Postal Code.");
		whaxi.x_zip.focus();
		return (false);
		}
txt=whaxi.x_country.value;

	if (txt ==''){
		alert("Please enter your country.");
		whaxi.x_country.focus();
		return (false);
		}
txt=whaxi.x_phone.value;

	if (txt ==''){
		alert("Please enter your phone number, \r\n so we can reach you if need be.");
		whaxi.x_phone.focus();
		return (false);
		}
			myOption = -1;
for (i=whaxi.CardType.length-1; i > -1; i--) {
if (whaxi.CardType[i].checked) {
myOption = i; i = -1;
}
}
if (myOption == -1) {
alert("Please select your credit card type.");
return false;
}
	for (var i=0; i < whaxi.CardType.length; i++)
   {
   if (whaxi.CardType[i].checked)
      {
      var type = whaxi.CardType[i].value;
      }
   }
	
		txt=whaxi.x_card_num.value;
	if (txt =='') {
		alert("Please enter your credit card number.");

		whaxi.x_card_num.focus();
		return (false);
		}

//type=whaxi.CardType.value;
	//	alert("Length:"+whaxi.CardType.length);
		
if (type == "VisaCard") {
	///alert("Type:"+type);
      // Visa: length 16, prefix 4, dashes optional.
      var re = /^4\d{3}-?\d{4}-?\d{4}-?\d{4}$/;
   } else if (type == "MasterCard") {
      // Mastercard: length 16, prefix 51-55, dashes optional.
      var re = /^5[1-5]\d{2}-?\d{4}-?\d{4}-?\d{4}$/;
   } else if (type == "Disc") {
      // Discover: length 16, prefix 6011, dashes optional.
      var re = /^6011-?\d{4}-?\d{4}-?\d{4}$/;
   } else if (type == "AmEx") {
      // American Express: length 15, prefix 34 or 37.
      var re = /^3[4,7]\d{13}$/;
   } else if (type == "Diners") {
      // Diners: length 14, prefix 30, 36, or 38.
      var re = /^3[0,6,8]\d{12}$/;
   }
   x_card_num=txt;
  /// alert("x_card_num:"+x_card_num);
   if (!re.test(x_card_num)){ 
      alert("Sorry, that doesn't appear to be a valid card number.\n\n\Please try again, or we would be happy to help you by phone at: (303) 834-7012");
   return false;}
   // Remove all dashes for the checksum checks to eliminate negative numbers
   x_card_num = x_card_num.split("-").join("");
   // Checksum ("Mod 10")
   // Add even digits in even length strings or odd digits in odd length strings.
   var checksum = 0;
   for (var i=(2-(x_card_num.length % 2)); i<=x_card_num.length; i+=2) {
      checksum += parseInt(x_card_num.charAt(i-1));
   }
   // Analyze odd digits in even length strings or even digits in odd length strings.
   for (var i=(x_card_num.length % 2) + 1; i<x_card_num.length; i+=2) {
      var digit = parseInt(x_card_num.charAt(i-1)) * 2;
      if (digit < 10) { checksum += digit; } else { checksum += (digit-9); }
   }
   if ((checksum % 10) != 0) 
{   	
      alert("Sorry, that doesn't appear to be a valid card number.\n\nWe would be happy to help you by phone at: (303) 834-7012");
   return false;
   } 
/*   else 
   {  
   return true; 
   }
*/	  

///////////////////////////////	

	txt3=whaxi.x_exp_date.value;
	var txt4=whaxi.x_exp_date.value;
	if (txt3 =='') {
		alert("Please select the month & year your card expires.");
		whaxi.x_exp_date.focus();
		return (false);
		}
	if (txt4.length != 5) {
		alert("Please enter your expiry in this format: MM/YY");
		whaxi.x_exp_date.focus();
		return (false);
		}
	txt=whaxi.x_amount.value;
	if (txt =='') {
		alert("Please enter the amount you are paying today.");
		whaxi.x_amount.focus();
		return (false);
		}
		
}
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 function checkCCForm_V123(whaxi) {	
		
		txt=whaxi.first_name.value;
	if (txt =='') {
		alert("Please enter your first name as it appears on your credit card.");
		whaxi.first_name.focus();
        return (false);
	    }
	txt=whaxi.last_name.value;
	if (txt =='') {
		alert("Please enter your last name as it appears on your credit card.");
		whaxi.last_name.focus();
        return (false);
	    }


	//*****begin email check*****
		txt=whaxi.email.value;
				if (txt =='') {
		alert("Please enter your email address. \r\n \r\n Thanks!");
		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.");
			whaxi.email.focus();
        	return (false);
		}
	}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		whaxi.email.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		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.");
		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.");
		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.");
		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.");
		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.");
		whaxi.email.focus(); 
        return (false);
	}
}

txt=whaxi.address.value;
txt2=whaxi.city.value;
txt3=whaxi.state.value;
if (txt =='') {
			alert("Your Billing Address is needed to process your credit card.");
			whaxi.address.focus();
       		return (false);
		}
if (txt2 =='') {
			alert("Your City is needed to process your credit card.");
			whaxi.city.focus();
       		return (false);
		}

if (txt3 =='') {
		alert("Please enter your state, territory, or province.");
		whaxi.state.focus();
        return (false);
	    }	
txt=whaxi.zip.value;

	if (txt ==''){
		alert("Please enter your Zip or Postal Code.");
		whaxi.zip.focus();
		return (false);
		}
txt=whaxi.country.value;

	if (txt ==''){
		alert("Please enter your country.");
		whaxi.country.focus();
		return (false);
		}
txt=whaxi.phone.value;

	if (txt ==''){
		alert("Please enter your phone number, \r\n so we can reach you if need be.");
		whaxi.phone.focus();
		return (false);
		}
			myOption = -1;
for (i=whaxi.CardType.length-1; i > -1; i--) {
if (whaxi.CardType[i].checked) {
myOption = i; i = -1;
}
}
if (myOption == -1) {
alert("Please select your credit card type.");
return false;
}
	for (var i=0; i < whaxi.CardType.length; i++)
   {
   if (whaxi.CardType[i].checked)
      {
      var type = whaxi.CardType[i].value;
      }
   }
	
		txt=whaxi.ccnum.value;
	if (txt =='') {
		alert("Please enter your credit card number.");

		whaxi.ccnum.focus();
		return (false);
		}

//type=whaxi.CardType.value;
	//	alert("Length:"+whaxi.CardType.length);
		
if (type == "VisaCard") {
	///alert("Type:"+type);
      // Visa: length 16, prefix 4, dashes optional.
      var re = /^4\d{3}-?\d{4}-?\d{4}-?\d{4}$/;
   } else if (type == "MasterCard") {
      // Mastercard: length 16, prefix 51-55, dashes optional.
      var re = /^5[1-5]\d{2}-?\d{4}-?\d{4}-?\d{4}$/;
   } else if (type == "Disc") {
      // Discover: length 16, prefix 6011, dashes optional.
      var re = /^6011-?\d{4}-?\d{4}-?\d{4}$/;
   } else if (type == "AmEx") {
      // American Express: length 15, prefix 34 or 37.
      var re = /^3[4,7]\d{13}$/;
   } else if (type == "Diners") {
      // Diners: length 14, prefix 30, 36, or 38.
      var re = /^3[0,6,8]\d{12}$/;
   }
   ccnum=txt;
  /// alert("ccnum:"+ccnum);
   if (!re.test(ccnum)){ 
      alert("Sorry, that doesn't appear to be a valid card number.\n\n\Please try again, or we would be happy to help you by phone at: (303) 834-7012");
   return false;}
   // Remove all dashes for the checksum checks to eliminate negative numbers
   ccnum = ccnum.split("-").join("");
   // Checksum ("Mod 10")
   // Add even digits in even length strings or odd digits in odd length strings.
   var checksum = 0;
   for (var i=(2-(ccnum.length % 2)); i<=ccnum.length; i+=2) {
      checksum += parseInt(ccnum.charAt(i-1));
   }
   // Analyze odd digits in even length strings or even digits in odd length strings.
   for (var i=(ccnum.length % 2) + 1; i<ccnum.length; i+=2) {
      var digit = parseInt(ccnum.charAt(i-1)) * 2;
      if (digit < 10) { checksum += digit; } else { checksum += (digit-9); }
   }
   if ((checksum % 10) != 0) 
{   	
      alert("Sorry, that doesn't appear to be a valid card number.\n\nWe would be happy to help you by phone at: (303) 834-7012");
   return false;
   } 
/*   else 
   {  
   return true; 
   }
*/	  

///////////////////////////////	

	var txt3=whaxi.ccmo.value;
//	alert(txt3);
	var txt4=whaxi.ccyr.value;
	//	alert(txt4);
	if (txt3 =='13'||txt4 =='13') {
		alert("Please select the month & year your card expires.");
		whaxi.ccmo.focus();
		return (false);
		}
	txt=whaxi.amount.value;
	if (txt =='') {
		alert("Please enter the amount you are paying today.");
		whaxi.amount.focus();
		return (false);
		}
			myOption = -1;
for (i=whaxi.amount.length-1; i > -1; i--) {
if (whaxi.amount[i].checked) {
myOption = i; i = -1;
}
}
if (myOption == -1) {
alert("Please select either VIP Coaching or General Admission.");
return false;
}		
		
}
 -->
