		function fVerify(){
			if(document.frmCustomerServiceRegister.txtCompanyName.value == ""){
				alert("The following field is required:\n\nCompany Name to be listed");
				document.frmCustomerServiceRegister.txtCompanyName.focus();
				return false;
			}
			if(document.frmCustomerServiceRegister.txtAddressLine1.value == ""){
				alert("The following field is required:\n\nAddress");
				document.frmCustomerServiceRegister.txtAddressLine1.focus();
				return false;
			}
			if(document.frmCustomerServiceRegister.txtCity.value == ""){
				alert("The following field is required:\n\nCity");
				document.frmCustomerServiceRegister.txtCity.focus();
				return false;
			}
			if(document.frmCustomerServiceRegister.ddlState.value == "--Choose One--"){
				alert("The following field is required:\n\nState");
				document.frmCustomerServiceRegister.ddlState.focus();
				return false;	
			}
			if(document.frmCustomerServiceRegister.txtZipCode.value == ""){
				alert("The following field is required:\n\nZip Code");
				document.frmCustomerServiceRegister.txtZipCode.focus();
				return false;	
			}
			
			if(document.frmCustomerServiceRegister.txtZipCode.value != ""){
				var re = /^\d{5}([\-]\d{4})?$/;
				if(!re.test(document.frmCustomerServiceRegister.txtZipCode.value)){
					alert("You have entered an invalid zip code.");
					document.frmCustomerServiceRegister.txtZipCode.focus();
					return false;
				}
			}
			
			if(document.frmCustomerServiceRegister.txtBillingZip.value != ""){
				var re = /^\d{5}([\-]\d{4})?$/;
				if(!re.test(document.frmCustomerServiceRegister.txtBillingZip.value)){
					alert("You have entered an invalid billing zip code.");
					document.frmCustomerServiceRegister.txtBillingZip.focus();
					return false;
				}
			}
			
			if(document.frmCustomerServiceRegister.txtPhoneNumber1.value != ""){
				//validate the phone number is in the following format "xxx-xxx-xxxx"
				var phoneNumber = document.frmCustomerServiceRegister.txtPhoneNumber1.value;					
					//check for the xxx-xxx-xxxx format
					if ( phoneNumber.indexOf("/")!=3 || phoneNumber.indexOf("-",4)!=7 || phoneNumber.length!=12){
					alert("Please enter your phone number in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtPhoneNumber1.focus();
					return false;
					}
				
					//we extract all the numbers from the entry, excluding the hyphens
					var num = phoneNumber.substr(0,3);
					num = num.concat(phoneNumber.substr(4,3));
					num = num.concat(phoneNumber.substr(8,4));
				
					//now we check that only digits are entered
					var c;
					for( i=0; i<10; i++ ){
				
					//convert the i-th character to ascii code value
					c = num.charCodeAt(i); 
					if( (c<48) || (c>57) ) {
					alert("Please enter your phone number in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtPhoneNumber.focus();
					return false;		
					}
				}
			}
			
			if(document.frmCustomerServiceRegister.txtPhoneNumber2.value != ""){
				//validate the phone number 2 is in the following format "xxx-xxx-xxxx"
				var phoneNumber = document.frmCustomerServiceRegister.txtPhoneNumber2.value;					
					//check for the xxx-xxx-xxxx format
					if ( phoneNumber.indexOf("/")!=3 || phoneNumber.indexOf("-",4)!=7 || phoneNumber.length!=12){
					alert("Please enter your phone number 2 in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtPhoneNumber2.focus();
					return false;
					}
				
					//we extract all the numbers from the entry, excluding the hyphens
					var num = phoneNumber.substr(0,3);
					num = num.concat(phoneNumber.substr(4,3));
					num = num.concat(phoneNumber.substr(8,4));
				
					//now we check that only digits are entered
					var c;
					for( i=0; i<10; i++ ){
				
					//convert the i-th character to ascii code value
					c = num.charCodeAt(i); 
					if( (c<48) || (c>57) ) {
					alert("Please enter your phone number 2 in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtPhoneNumber2.focus();
					return false;		
					}
				}
			}
			
			if(document.frmCustomerServiceRegister.txtPhoneNumber3.value != ""){
				//validate the phone number 3 is in the following format "xxx-xxx-xxxx"
				var phoneNumber = document.frmCustomerServiceRegister.txtPhoneNumber3.value;					
					//check for the xxx-xxx-xxxx format
					if ( phoneNumber.indexOf("/")!=3 || phoneNumber.indexOf("-",4)!=7 || phoneNumber.length!=12){
					alert("Please enter your phone number 3 in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtPhoneNumber3.focus();
					return false;
					}
				
					//we extract all the numbers from the entry, excluding the hyphens
					var num = phoneNumber.substr(0,3);
					num = num.concat(phoneNumber.substr(4,3));
					num = num.concat(phoneNumber.substr(8,4));
				
					//now we check that only digits are entered
					var c;
					for( i=0; i<10; i++ ){
				
					//convert the i-th character to ascii code value
					c = num.charCodeAt(i); 
					if( (c<48) || (c>57) ) {
					alert("Please enter your phone number 3 in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtPhoneNumber3.focus();
					return false;		
					}
				}
			}
			
			if(document.frmCustomerServiceRegister.txtPhoneNumber4.value != ""){
				//validate the phone number 4 is in the following format "xxx-xxx-xxxx"
				var phoneNumber = document.frmCustomerServiceRegister.txtPhoneNumber4.value;					
					//check for the xxx-xxx-xxxx format
					if ( phoneNumber.indexOf("/")!=3 || phoneNumber.indexOf("-",4)!=7 || phoneNumber.length!=12){
					alert("Please enter your phone number 4 in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtPhoneNumber4.focus();
					return false;
					}
				
					//we extract all the numbers from the entry, excluding the hyphens
					var num = phoneNumber.substr(0,3);
					num = num.concat(phoneNumber.substr(4,3));
					num = num.concat(phoneNumber.substr(8,4));
				
					//now we check that only digits are entered
					var c;
					for( i=0; i<10; i++ ){
				
					//convert the i-th character to ascii code value
					c = num.charCodeAt(i); 
					if( (c<48) || (c>57) ) {
					alert("Please enter your phone number 4 in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtPhoneNumber4.focus();
					return false;		
					}
				}
			}
			
			if(document.frmCustomerServiceRegister.txtFaxNumber.value != ""){	
				//validate the fax number is in the following format "xxx-xxx-xxxx"
				var FaxNumber = document.frmCustomerServiceRegister.txtFaxNumber.value;					
					//check for the xxx-xxx-xxxx format
					if ( FaxNumber.indexOf("/")!=3 || FaxNumber.indexOf("-",4)!=7 || FaxNumber.length!=12){
					alert("Please enter your fax number in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtFaxNumber.focus();
					return false;
					}
				
					//we extract all the numbers from the entry, excluding the hyphens
					var num = FaxNumber.substr(0,3);
					num = num.concat(FaxNumber.substr(4,3));
					num = num.concat(FaxNumber.substr(8,4));
				
					//now we check that only digits are entered
					var c;
					for( i=0; i<10; i++ ){
				
					//convert the i-th character to ascii code value
					c = num.charCodeAt(i); 
					if( (c<48) || (c>57) ) {
					alert("Please enter your fax number in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtFaxNumber.focus();
					return false;		
					}
				}
			}
				
			if(document.frmCustomerServiceRegister.txtTollFreeNumber.value != ""){
				//validate the toll free number is in the following format "xxx-xxx-xxxx"
				var TollFreeNumber = document.frmCustomerServiceRegister.txtTollFreeNumber.value;					
					//check for the xxx-xxx-xxxx format
					if ( TollFreeNumber.indexOf("/")!=3 || TollFreeNumber.indexOf("-",4)!=7 || TollFreeNumber.length!=12){
					alert("Please enter your toll free number in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtTollFreeNumber.focus();
					return false;
					}
				
					//we extract all the numbers from the entry, excluding the hyphens
					var num = TollFreeNumber.substr(0,3);
					num = num.concat(TollFreeNumber.substr(4,3));
					num = num.concat(TollFreeNumber.substr(8,4));
				
					//now we check that only digits are entered
					var c;
					for( i=0; i<10; i++ ){
				
					//convert the i-th character to ascii code value
					c = num.charCodeAt(i); 
					if( (c<48) || (c>57) ) {
					alert("Please enter your toll free number in the following format: xxx/xxx-xxxx");
					document.frmCustomerServiceRegister.txtTollFreeNumber.focus();
					return false;		
					}
				}
			}

			
			if(document.frmCustomerServiceRegister.txtWebSite.value != ""){
				if(!fValidURL()){
					return false;
				}
			}
			
			
			if(document.frmCustomerServiceRegister.txtHeadingOne.value == ""){
				alert("The following field is required:\n\n1st Heading");
				document.frmCustomerServiceRegister.txtHeadingOne.focus();
				return false;	
			}
			
			if(document.frmCustomerServiceRegister.txtHeadingOne.value == document.frmCustomerServiceRegister.txtHeadingTwo.value || document.frmCustomerServiceRegister.txtHeadingOne.value == document.frmCustomerServiceRegister.txtHeadingThree.value){
				alert("You can not use duplicate headings. Please make another selection.");
				return false;	
			}
			
			if(document.frmCustomerServiceRegister.txtHeadingTwo.value != ""){
				if(document.frmCustomerServiceRegister.txtHeadingTwo.value == document.frmCustomerServiceRegister.txtHeadingThree.value){
					alert("You can not use duplicate headings. Please make another selection.");
				}
			}
			
			if(document.frmCustomerServiceRegister.txtBillingName.value == ""){
				alert("The following field is required:\n\nBill to Name");
				document.frmCustomerServiceRegister.txtBillingName.focus();
				return false;	
			}
			
			/*if(document.frmCustomerServiceRegister.txtPassword.value == ""){
				alert("You must enter a Password to create an account.");
				document.frmCustomerServiceRegister.txtPassword.focus();
				return false;
			}
			
			if(document.frmCustomerServiceRegister.txtPassword.value.length > 8){
				alert("Your password can not exceed 8 characters in length.");
				document.frmCustomerServiceRegister.txtPassword.focus();
				return false;
			}
			
			if(document.frmCustomerServiceRegister.txtUserName.value == ""){
				alert("You must enter a User Name to create an account.");
				document.frmCustomerServiceRegister.txtUserName.focus();
				return false;
			}*/
			
			if(document.frmCustomerServiceRegister.txtEmailAddress.value != ""){
			 var email = document.frmCustomerServiceRegister.txtEmailAddress.value;
				var at = email.indexOf('@');
				var dot = email.lastIndexOf('.');
				if (at<=0 || at>=email.length-1 || dot<=0 || dot>=email.length-1 || at>dot || dot==at+1)
				{       alert("Please enter a correct Email address.");
						return false;
				}	
			}
			
			
			
			if(document.frmCustomerServiceRegister.chkAgree.checked != true){
				alert("You can not be added to our directory without agreeing to the terms and conditions.");
				document.frmCustomerServiceRegister.chkAgree.focus();
				return false;	
			}
			
		}