function clientlogin( form ){	var emailID=document.FormName.LOGIN	if( document.FormName.LOGIN.value == "" )	{		alert( "Please enter your Email Address!" );		document.FormName.LOGIN.focus();	}		else if (echeck(emailID.value)==false)	{		emailID.value=""		document.FormName.LOGIN.focus();	}	else if( document.FormName.PASSWORD.value == "" )	{		alert( "Please enter your password!" );		document.FormName.PASSWORD.focus();	}	else	{		document.FormName.submit();  	 };}function clientpassword( form ){	var emailID=document.FormName.EMAIL	if( document.FormName.TELEPHONE.value == "" )	{		alert( "Please enter a Telephone Number!" );		document.FormName.TELEPHONE.focus();	}	else if( !isNumberString( document.FormName.TELEPHONE.value ) )	{		alert( "Please only use Numbers 0-9 in the Telephone Number." );		document.FormName.TELEPHONE.focus();	}	else if( document.FormName.EMAIL.value == "" )	{		alert( "Please enter your Email Address!" );		document.FormName.EMAIL.focus();	}	else if (echeck(emailID.value)==false)	{		emailID.value=""		document.FormName.EMAIL.focus();	}	else	{		document.FormName.submit();  	};}function checkoutonaccount( form){	if( document.FormName.PONumber.value == "" )	{		alert( "Please enter your Purchase Order Number!" );		document.FormName.PONumber.focus();	}	else	{		document.FormName.submit();  	};}function checkoutcreditcard( form){	if (		( document.FormName.creditcard[0].checked == false ) 			&& ( document.FormName.creditcard[1].checked == false ) 			&& ( document.FormName.creditcard[2].checked == false )			&& ( document.FormName.creditcard[3].checked == false )		)	{		alert( "Please Select a Credit Card" );		document.FormName.creditcard.focus();	}	else if(( document.FormName.card.value == "" ) && ( document.FormName.creditcard[3].checked == false ))	{		alert( "Please enter your Credit Card number" );		document.FormName.card.focus();	}	else if(( !isNumberStringWithDash( document.FormName.card.value )) && ( document.FormName.creditcard[3].checked == false ))	{		alert( "Please only use Numbers 0-9 in the Credit Card Number. " );		document.FormName.card.focus();	}	else if (( document.FormName.month.selectedIndex == 0 ) && ( document.FormName.creditcard[3].checked == false ))		{		alert( "Please select an Expiry Month!" );		document.FormName.month.focus();	}	else if (( document.FormName.year.selectedIndex == 0 ) && ( document.FormName.creditcard[3].checked == false ))		{		alert( "Please select an Expiry Year!" );		document.FormName.year.focus();	}	else if (( document.FormName.BackDigits.value == "" ) && ( document.FormName.creditcard[3].checked == false ))	{		alert( "Please enter the three digit number from the back of your Credit Card!" );		document.FormName.BackDigits.focus();	}	else if (( !isNumberString( document.FormName.BackDigits.value )) && ( document.FormName.creditcard[3].checked == false ))	{		alert( "Please only use Numbers 0-9 in the Number from the Back of your Credit Card. " );		document.FormName.BackDigits.focus();	}	else	{		document.FormName.submit();  	};}function requestaccess( form ){	var strTEL1=document.FormName.TEL1.value	var lstrTEL1=strTEL1.length	var strTEL2=document.FormName.TEL2.value	var lstrTEL2=strTEL2.length	var strTEL3=document.FormName.TEL3.value	var lstrTEL3=strTEL3.length	var strFAX1=document.FormName.FAX1.value	var lstrFAX1=strFAX1.length	var strFAX2=document.FormName.FAX2.value	var lstrFAX2=strFAX2.length	var strFAX3=document.FormName.FAX3.value	var lstrFAX3=strFAX3.length	var emailID=document.FormName.EMAIL	if( document.FormName.NAME.value == "" )	{		alert( "Please enter a Company name.!" );		document.FormName.NAME.focus();	}	else if( document.FormName.EMAIL.value == "")	{		alert( "Please enter your Email Address!" );		document.FormName.EMAIL.focus();	}	else if (echeck(emailID.value)==false)	{		emailID.value=""		document.FormName.EMAIL.focus();	}	else if( document.FormName.PASSWORD1.value == "")	{		alert( "Please enter a Password!" );		document.FormName.PASSWORD1.focus();	}	else if( document.FormName.PASSWORD2.value == "")	{		alert( "Please key in the Password Confirmation!" );		document.FormName.PASSWORD2.focus();	}	else if( document.FormName.PASSWORD1.value != document.FormName.PASSWORD2.value)	{		alert( "The Password and Password Confirmation - DO NOT MATCH!!!" );		document.FormName.PASSWORD1.value="";		document.FormName.PASSWORD2.value="";		document.FormName.PASSWORD1.focus();	}	else if( document.FormName.ADD1.value == "" )	{		alert( "Please enter your Address!" );		document.FormName.ADD1.focus();	}	else if( document.FormName.CITY.value == "" )	{		alert( "Please enter a City!" );		document.FormName.CITY.focus();	}	else if( document.FormName.PROV.selectedIndex == 0 )	{		alert( "Please enter your Province or State!" );		document.FormName.PROV.focus();	}	else if( document.FormName.POSTAL.value == "" )	{		alert( "Please enter your Postal or Zip code!" );		document.FormName.POSTAL.focus();	}	else if( document.FormName.FIRST.value == "" )	{		alert( "Please enter a First Name!" );		document.FormName.FIRST.focus();	}	else if( document.FormName.LAST.value == "" )	{		alert( "Please enter a Last Name!" );		document.FormName.LAST.focus();	}	else if( document.FormName.TEL1.value == "" || document.FormName.TEL2.value == "" || document.FormName.TEL3.value == "" )	{		alert( "Please enter your Telephone Number complete with Area Code!" );		document.FormName.TEL1.focus();	}	else if( lstrTEL1 != 3 || lstrTEL2 != 3 || lstrTEL3 != 4)	{		alert( "The Telephone number does NOT have the correct number of digits. Please ensure that the area code is 3 Characters and the phone number is 3 - 4 characters. Eg: 905-555-5555." );		document.FormName.TEL1.focus();	}	else if( !isNumberString( document.FormName.TEL1.value ))	{		alert( "Please only use Numbers 0-9 in the Telephone Area Code." );		document.FormName.TEL1.focus();	}	else if( !isNumberString( document.FormName.TEL2.value ) )	{		alert( "Please only use Numbers 0-9 in the Telephone Number." );		document.FormName.TEL2.focus();	}	else if( !isNumberString( document.FormName.TEL3.value ) )	{		alert( "Please only use Numbers 0-9 in the Telephone Number." );		document.FormName.TEL3.focus();	}	else if( document.FormName.FAX1.value != "" || document.FormName.FAX2.value != "" || document.FormName.FAX3.value != "" )	{		if( !isNumberString( document.FormName.FAX1.value ) )		{			alert( "Please only use Numbers 0-9 in the Fax Area Code." );			document.FormName.FAX1.focus();		}		else if( !isNumberString( document.FormName.FAX2.value ) )		{			alert( "Please only use Numbers 0-9 in the Fax Number." );			document.FormName.FAX2.focus();		}		else if( !isNumberString( document.FormName.FAX3.value ) )		{			alert( "Please only use Numbers 0-9 in the Fax Number." );			document.FormName.FAX3.focus();		}		else if( lstrFAX1 != 3 || lstrFAX2 != 3 || lstrFAX3 != 4)		{			alert( "The Fax number does NOT have the correct number of digits. Please ensure that the area code is 3 Characters and the fax number is 3 - 4 characters. Eg: 905-555-5555." );			document.FormName.PASSWORD.focus();		}		else		{			document.FormName.submit();		};	}	else	{		document.FormName.submit();  	 };}function echeck(str) {		var at="@"		var dot="."		var invalidtext="Invalid E-mail address format"		var lat=str.indexOf(at)		var lstr=str.length		var ldot=str.indexOf(dot)		if (str.indexOf(at)==-1)		{		   alert(invalidtext)		   return false		}		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr)		{		   alert(invalidtext)		   return false		}		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr)		{		    alert(invalidtext)		    return false		}		 if (str.indexOf(at,(lat+1))!=-1)		 {		    alert(invalidtext)		    return false		 }		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot)		 {		    alert(invalidtext)		    return false		 }		 if (str.indexOf(dot,(lat+2))==-1)		 {		    alert(invalidtext)		    return false		 }				 if (str.indexOf(" ")!=-1)		 {		    alert(invalidtext)		    return false		 } 		 return true						}function isNumberString (InString) {	if(InString.length==0) return (false);	var RefString="1234567890";	for (Count=0; Count < InString.length; Count++) 	{		TempChar= InString.substring (Count, Count+1);		if (RefString.indexOf (TempChar, 0)==-1) 		return (false);	};	return (true);}function isNumberStringWithDash (InString) {	if(InString.length==0) return (false);	var RefString="1234567890 -";	for (Count=0; Count < InString.length; Count++) 	{		TempChar= InString.substring (Count, Count+1);		if (RefString.indexOf (TempChar, 0)==-1) 		return (false);	};	return (true);}var newwindow;// Default 400 x 300 pxfunction dwk_popup(url)	{	    newwindow = window.open(url,'name','height=400,width=300,scrollbars=1');	    if (window.focus) {newwindow.focus()}	}function dwk_popup65(url)	{	    newwindow = window.open(url,'name','height=600,width=500,scrollbars=1');	    if (window.focus) {newwindow.focus()}	}function dwk_popup1000x650(url)	{	    newwindow1 = window.open(url,'name','height=700,width=1000,scrollbars=0');	    if (window.focus) {newwindow1.focus()}	}