    function Validation()
    {
        var frm = document.frmCBrochure;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
/*
	     if (!frm.cmbtitle.selectedIndex) {
		     strDescription = strDescription + ' -You did not enter the title\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.cmbtitle;
	    }	    
	
	     if (isEmpty(frm.txtStoreName.value)) {
		     strDescription = strDescription + ' -You did not enter the store name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtStoreName;
	    }
*/	
	     if (isEmpty(frm.txtContactName.value)) {
		     strDescription = strDescription + ' -You did not enter the contact name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtContactName;
	    }
	    
	     if (isEmpty(frm.txtAddress.value)) {
		     strDescription = strDescription + ' -You did not enter the address\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtAddress;
	    }
		
	    if (isEmpty(frm.txtCity.value)) {
		     strDescription = strDescription + ' -You did not enter the city\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCity;
	    }	    

	    if (isEmpty(frm.txtCountry.value)) {
		     strDescription = strDescription + ' -You did not enter the country\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCountry;
	    }	   
		
	    if (isEmpty(frm.txtPhone.value)) {
		     strDescription = strDescription + ' -You did not enter the phone\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtPhone;
	    }	    
	    	 
	    if (isEmpty(frm.txtState.value)) {
		     strDescription = strDescription + ' -You did not enter the state\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtState;
	    }	    
	    	 
			 
	    if (isEmpty(frm.txtZip.value)) {
		     strDescription = strDescription + ' -You did not enter the zip code\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtZip;
	    }	    
	    	
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    		
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	    
    }
    

	function ValidateNeweDimond()
    {
        var frm = document.frmNewsDimond;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		/*
	     if (isEmpty(frm.txtStoreName.value)) {
		     strDescription = strDescription + ' -You did not enter the store name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtStoreName;
	    }
*/
	     if (isEmpty(frm.txtContactName.value)) {
		     strDescription = strDescription + ' -You did not enter the contact name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtContactName;
	    }
	    
	    if (isEmpty(frm.txtCity.value)) {
		     strDescription = strDescription + ' -You did not enter the city\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCity;
	    }	    

	    if (isEmpty(frm.txtCountry.value)) {
		     strDescription = strDescription + ' -You did not enter the country\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCountry;
	    }	  
		
	    if (isEmpty(frm.txtPhone.value)) {
		     strDescription = strDescription + ' -You did not enter the phone\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtPhone;
	    }	    
	    	 
	    if (isEmpty(frm.txtState.value)) {
		     strDescription = strDescription + ' -You did not enter the state\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtState;
	    }	    
	    	 
			 
	    if (isEmpty(frm.txtZip.value)) {
		     strDescription = strDescription + ' -You did not enter the zip code\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtZip;
	    }	    
	    	
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    		
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	   
    }
	

function  ValidateContactus()
    {
        var frm = document.frmContactus;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		
	     if (isEmpty(frm.txtFirstName.value)) {
		     strDescription = strDescription + ' -You did not enter the first name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtFirstName;
	    }

	     if (isEmpty(frm.txtLastName.value)) {
		     strDescription = strDescription + ' -You did not enter the last name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtLastName;
	    }
	    
	    if (isEmpty(frm.txtTelNo.value)) {
		     strDescription = strDescription + ' -You did not enter the telephone number\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtTelNo;
	    }	    	    	   
	    	
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    		
		
	    if (isEmpty(frm.txtComments.value)) {
		     strDescription = strDescription + ' -You did not enter the comments or questions\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtComments;
	    }	    
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	   
    }
	
	function validateContactusTrade()
	  {
        var frm = document.frmTContactus;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		
	     if (isEmpty(frm.txtCompanyName.value)) {
		     strDescription = strDescription + ' -You did not enter the company name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCompanyName;
	    }

	     if (isEmpty(frm.txtTitle.value)) {
		     strDescription = strDescription + ' -You did not enter the title\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtTitle;
	    }

	     if (isEmpty(frm.txtContactName.value)) {
		     strDescription = strDescription + ' -You did not enter the contact name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtContactName;
	    }	    
				
	    if (isEmpty(frm.txtTel.value)) {
		     strDescription = strDescription + ' -You did not enter the telephone number\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtTel;
	    }	    	    	   
	    	
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    		
		
	    if (isEmpty(frm.txtComments.value)) {
		     strDescription = strDescription + ' -You did not enter the comments or questions\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtComments;
	    }	    
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	   
    }
	
	function ValidateAsk()
	  {
        var frm = document.frmAsk;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		
	     if (isEmpty(frm.txtSubject.value)) {
		     strDescription = strDescription + ' -You did not enter the subject\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtSubject;
	    }

	     if (isEmpty(frm.txtName.value)) {
		     strDescription = strDescription + ' -You did not enter the name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtName;
	    }

	     if (isEmpty(frm.txtCity.value)) {
		     strDescription = strDescription + ' -You did not enter the city\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCity;
	    }	    
		
	    if (isEmpty(frm.txtCountry.value)) {
		     strDescription = strDescription + ' -You did not enter the country\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCountry;
	    }	 		
		
	    if (isEmpty(frm.txtState.value)) {
		     strDescription = strDescription + ' -You did not enter the state\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtState;
	    }	  		
		
	    if (isEmpty(frm.txtZip.value)) {
		     strDescription = strDescription + ' -You did not enter the zip code\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtZip;
	    }	    	    	   
	    	
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    		
		
	    if (isEmpty(frm.txtQuestion.value)) {
		     strDescription = strDescription + ' -You did not enter the questions\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtQuestion;
	    }	    
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	   
    }
	
	function ValidateCCServices()
	{
	   var frm = document.frmCCServices;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		
	     if (isEmpty(frm.txtFirstName.value)) {
		     strDescription = strDescription + ' -You did not enter the first name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtFirstName;
	    }

	     if (isEmpty(frm.txtLastName.value)) {
		     strDescription = strDescription + ' -You did not enter the last name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtLastName;
	    }

	     if (isEmpty(frm.txtCompany.value)) {
		     strDescription = strDescription + ' -You did not enter the company\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCompany;
	    }	    		    	  
	    	
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    		
		
	    if (isEmpty(frm.txtComments.value)) {
		     strDescription = strDescription + ' -You did not enter the comments or questions\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtComments;
	    }	    
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	  
	}
	
     function ValidateMDBuying()
    {
        var frm = document.frmMDBuying;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		
	     if (isEmpty(frm.txtStoreName.value)) {
		     strDescription = strDescription + ' -You did not enter the store name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtStoreName;
	    }

	     if (isEmpty(frm.txtContactName.value)) {
		     strDescription = strDescription + ' -You did not enter the contact name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtContactName;
	    }
	    
	    if (isEmpty(frm.txtCity.value)) {
		     strDescription = strDescription + ' -You did not enter the city\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCity;
	    }	    

	    if (isEmpty(frm.txtCountry.value)) {
		     strDescription = strDescription + ' -You did not enter the country\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCountry;
	    }	   
		
	    if (isEmpty(frm.txtPhone.value)) {
		     strDescription = strDescription + ' -You did not enter the phone\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtPhone;
	    }	    
	    	 
	    if (isEmpty(frm.txtState.value)) {
		     strDescription = strDescription + ' -You did not enter the state\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtState;
	    }	    
	    	 			 
	    if (isEmpty(frm.txtZip.value)) {
		     strDescription = strDescription + ' -You did not enter the zip code\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtZip;
	    }	    
	    	
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    		
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	    
    }

	function ValidateAgreement()
    {	
		var frm = document.frmAgreement;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		
	     if (isEmpty(frm.txtDays.value)) {
		     strDescription = strDescription + ' -You did not enter the days\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtDays;
	    }

	     if (isEmpty(frm.txtC1.value)) {
		     strDescription = strDescription + ' -You did not enter the contact name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtC1;
	    }
	    
	    if (isEmpty(frm.txtC2.value)) {
		     strDescription = strDescription + ' -You did not enter the city\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtC2;
	    }	    
		
		if(!frm.chk1.checked){
			strDescription = strDescription + ' -You did not check IN WITNESS WHEREOF, the Client has executed this Agreement as of the Effective Date of this Agreement set forth above. \n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.chk1;
		}

	    if (isEmpty(frm.txtFClientName.value)) {
		     strDescription = strDescription + ' -You did not enter the firm/client name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtFClientName;
	    }	   
		
	    if (isEmpty(frm.txtTel.value)) {
		     strDescription = strDescription + ' -You did not enter the telephone\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtTel;
	    }	    
	    	 
	    if (isEmpty(frm.txtAddress.value)) {
		     strDescription = strDescription + ' -You did not enter the address\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtAddress;
	    }	    
	    	 			 
	    if (isEmpty(frm.txtCity.value)) {
		     strDescription = strDescription + ' -You did not enter the city\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCity;
	    }	    
/*
	    if (isEmpty(frm.txtState.value)) {
		     strDescription = strDescription + ' -You did not enter the state\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtState;
	    }	    
	*/	
	    if (isEmpty(frm.txtZipCode.value)) {
		     strDescription = strDescription + ' -You did not enter the zip code\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtZipCode;
	    }	 	    	

	    if (isEmpty(frm.txtDate.value)) {
		     strDescription = strDescription + ' -You did not enter the date\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtDate;
	    }	    
/*
	    if (isEmpty(frm.txtSName.value)) {
		     strDescription = strDescription + ' -You did not enter the signature name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtSName;
	    }	
		
	    if (isEmpty(frm.txtTitle.value)) {
		     strDescription = strDescription + ' -You did not enter the title\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtTitle;
	    }				
*/
	
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    		
				
	    if (isEmpty(frm.txtPClientName.value)) {
		     strDescription = strDescription + ' -You did not enter the title\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtPClientName;
	    }	
				
	    if (isEmpty(frm.txtFirstName.value)) {
		     strDescription = strDescription + ' -You did not enter the first name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtFirstName;
	    }	
		
	    if (isEmpty(frm.txtLastName.value)) {
		     strDescription = strDescription + ' -You did not enter the last name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtLastName;
	    }	


	    if (isEmpty(frm.txtDate1.value)) {
		     strDescription = strDescription + ' -You did not enter the date\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtDate1;
	    }					
		
		if(!frm.chk2.checked){
			strDescription = strDescription + ' -You did not check you agree\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.chk2;
		}
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	    
	}
	
	function ValidationTradeDiamond()
    {
		var frm = document.frmTradeDiamond;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		

	     if (isEmpty(frm.txtStoreName.value)) {
		     strDescription = strDescription + ' -You did not enter the store name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtStoreName;
	    }

	     if (isEmpty(frm.txtContactName.value)) {
		     strDescription = strDescription + ' -You did not enter the contact name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtContactName;
	    }
	    
	    if (isEmpty(frm.txtStreetAddress.value)) {
		     strDescription = strDescription + ' -You did not enter the street address\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtStreetAddress;
	    }	    
   
	    if (isEmpty(frm.txtCity.value)) {
		     strDescription = strDescription + ' -You did not enter the city\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCity;
	    }	    

	    if (isEmpty(frm.txtCountry.value)) {
		     strDescription = strDescription + ' -You did not enter the country\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCountry;
	    }	   
		
	    if (isEmpty(frm.txtPhone.value)) {
		     strDescription = strDescription + ' -You did not enter the phone\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtPhone;
	    }	    
	    	 
	    if (isEmpty(frm.txtState.value)) {
		     strDescription = strDescription + ' -You did not enter the state\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtState;
	    }	    
	    	 			 
	    if (isEmpty(frm.txtZip.value)) {
		     strDescription = strDescription + ' -You did not enter the zip code\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtZip;
	    }	    		
		
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }							
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	    
	}	
	
	function ValidateTradeAGSL()
    {
		var frm = document.frmtradeAGSL;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		
	     if (isEmpty(frm.txtStoreName.value)) {
		     strDescription = strDescription + ' -You did not enter the store name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtStoreName;
	    }
		
	     if (isEmpty(frm.txtContactName.value)) {
		     strDescription = strDescription + ' -You did not enter the contact name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtContactName;
	    }		
						
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }							
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	    
	}	
	
	function ValidateCCAuthorize()
    {	
		var frm = document.frmCCAuthorize;            
        var intError = 0;
        var strDescription = 'Your information was not submitted because:\n';
        var focus_field = null;
		var bType=null;
	     if (isEmpty(frm.txtFirmName.value)) {
		     strDescription = strDescription + ' -You did not enter the firm name\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtFirmName;
	    }
		
		for (var i=0;i<frm.rdoCCType.length;i++)
        {
            if (frm.rdoCCType[i].checked)
                bType = true;
        }

	     if (bType==false) {
		     strDescription = strDescription + ' -You did not enter the credit card type\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.rdoCCType[0];
	    }
					
	     if (isEmpty(frm.txtCCNumber.value)) {
		     strDescription = strDescription + ' -You did not enter the credit card number\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCCNumber;
	    }		
						    
	     if (!frm.cmbMonth.selectedIndex) {
		     strDescription = strDescription + ' -You did not select the month\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.cmbtitle;
		}
		
		if (!frm.cmbYear.selectedIndex) {
		     strDescription = strDescription + ' -You did not select the year\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.cmbtitle;
		}	
		
	     if (isEmpty(frm.txtCSC.value)) {
		     strDescription = strDescription + ' -You did not enter the card security code\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCSC;
	    }

		if (isEmpty(frm.txtNameCC.value)) {
		     strDescription = strDescription + ' -You did not enter the name the Credit Card is issued to\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtNameCC;
	    }		
							
	     if (isEmpty(frm.txtAddress.value)) {
		     strDescription = strDescription + ' -You did not enter the address\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtAddress;
	    }
		
	     if (isEmpty(frm.txtCity.value)) {
		     strDescription = strDescription + ' -You did not enter the city\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCity;
	    }		
		/*
	     if (isEmpty(frm.txtState.value)) {
		     strDescription = strDescription + ' -You did not enter the state\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtState;
	    }					
			*/	
	     if (isEmpty(frm.txtZipCode.value)) {
		     strDescription = strDescription + ' -You did not enter the zip code\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtZipCode;
	    }	
		
	     if (isEmpty(frm.txtCountry.value)) {
		     strDescription = strDescription + ' -You did not enter the country\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCountry;
	    }	

	     if (isEmpty(frm.txtPhone.value)) {
		     strDescription = strDescription + ' -You did not enter the phone\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtPhone;
	    }		
		
	    if (isEmpty(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not enter the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }	    

	    if (!isEmpty(frm.txtEmail.value) &&  !isValidEmail(frm.txtEmail.value)) {
		     strDescription = strDescription + ' -You did not valid the email\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtEmail;
	    }									

	     if (isEmpty(frm.txtCCHolder.value)) {
		     strDescription = strDescription + ' -You did not enter the signature of credit card holder\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtCCHolder;
	    }		
		
		if (isEmpty(frm.txtAmount.value)) {
		     strDescription = strDescription + ' -You did not enter the maximum amount to be charged\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtAmount;
	    }		
		else if (!isEmpty(frm.txtAmount.value) && (!isValidInteger(frm.txtAmount.value)) ){
		     strDescription = strDescription + ' -You did not valid the maximum amount to be charged\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtAmount;
	    }	

		if((!frm.chkCMyCard.checked) && (!frm.chkCBefore.checked))
		{    
			 strDescription = strDescription + ' -You did not enter the type of ownership\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.chkCMyCard;
		}			
		
		if ((frm.chkCMyCard.checked) && isEmpty(frm.txtdays.value))
		{    
			 strDescription = strDescription + ' -You did not enter the days after charges incurred\n';
		     intError = 1;
		     if (focus_field == null) focus_field = frm.txtdays;		
		}
		
	     if (intError == 1) {
	 	     alert(strDescription);
	 	     if (focus_field != null)
	 	 	     focus_field.focus();
	 	     return false;
	     }
	     else 
         {	 	   
            frm.submit();
	     }	    
	}		
	
	


