function validateform()
{
return false;
}

function validate() 
{
if (document.subsform.chkAcceptance.checked) 
	  {
		 var themessage = "You are required to complete the following fields: \n";		 
		 if (document.subsform.txtFirstName.value=="") 
			  {
				themessage = themessage + "  - First Name\n";
			  }
		 if (document.subsform.txtLastName.value=="") 
			  {
				themessage = themessage + "  - Last Name\n";
			  }  
		 if (document.subsform.txtTitle.value=="") 
			  {
				themessage = themessage + "  - Title\n";
			  } 
		 if (document.subsform.txtCompanyName.value=="") 
			  {
				themessage = themessage + "  - Company Name\n";
			  }      
		 if (!(document.subsform.optCompType[0].checked || document.subsform.optCompType[1].checked)) 
			  {
				themessage = themessage + "  - Company Type\n";
			  } 
		 if (document.subsform.optCompType[1].checked && document.subsform.txtTicker.value=="") 
			  {
				themessage = themessage + "  - Ticker Symbol\n";
			  } 	  
		 if (document.subsform.txtAddressOne.value=="") 
			  {
				themessage = themessage + "  - Address One\n";
			  } 
		/* if (document.subsform.txtAddressTwo.value=="") 
			  {
				themessage = themessage + "  - Address Two\n";
			  } */	  
		 if (document.subsform.txtCity.value=="") 
			  {
				themessage = themessage + "  - City/Towm\n";
			  } 	  
		 if (document.subsform.cboState.value=="") 
			  {
				themessage = themessage + "  - State\n";
			  }	    
		 if (document.subsform.txtZip.value=="") 
			  {
				themessage = themessage + "  - Zip Code\n";
			  }
		 if (document.subsform.cboCountry.value=="") 
			  {
				themessage = themessage + "  - Country\n";
			  }
		 if (document.subsform.txtPhone.value=="") 
			  {
				themessage = themessage + "  - Phone\n";
			  }  
		if (document.subsform.txtEmail.value=="") 
			  {
				themessage = themessage + "  - Email\n";
			  }	  	  
		/*if (document.subsform.txtFax.value=="") 
			  {
				themessage = themessage + "  - Fax\n";
			  }*/  
		if (document.subsform.optProfession.value="")
			  {
				themessage = themessage + "  - Profession \n";
			  }
		/*if (document.subsform.cboSubProfession.value=="") 
			  {
				themessage = themessage + "  - Sub Profession \n";
			  }*/	  
		//if (document.subsform.txtProfOther.value=="") 
		//	  {
		//		themessage = themessage + "  - Other Profession \n";
		//	  }	  
		if (document.subsform.txtHearAbout.value=="") 
			  {
				themessage = themessage + "  - Hear About Us\n";
			  }	 
		if (document.subsform.cboBirthMonth.value=="0") 
			  {
				themessage = themessage + "  - Birth Month\n";
			  }
		if (document.subsform.chkSubscribe.value=="") 
			  {
				themessage = themessage + "  - Subscription\n";
			  }
		 
		 if (themessage == "You are required to complete the following fields: \n") 
		  {
			document.subsform.submit();
		  } else 
		  {
			alert(themessage);
			return false;
		  }
		  
	}
	else
	{
	alert('To proceed please accept Unitron Media Corp and Micro-Cap Review Magazine\n Terms Of Service and Privacy Policy.');
	return false;
	}	  
}
function numvalidator(inComp,sText)
{
  if(isNaN(sText))
    {
	  if(inComp==document.subsform.txtPhone)
	    {
	     alert("Please enter numeric value in 'Phone' field''");	 
	     document.subsform.txtPhone.focus();
		}
	  else if(inComp==document.subsform.txtFax)
	    {
	     alert("Please enter numeric value in 'Fax' field''");	 
	     document.subsform.txtFax.focus();		
	    }
	}
   else if(!(isNaN(sText)) && sText != "")
    {
		if((sText.length < 10) && (inComp==document.subsform.txtPhone))
		 {
			 alert(" The 'Phone' field must contain atleast 10 digits");	 
			 document.subsform.txtPhone.focus();
		 }
		 else if((sText.length < 10)&& (inComp==document.subsform.txtFax))
		 {
	     	alert("The 'Fax' field must contain atleast 10 digits");	 
	    	document.subsform.txtFax.focus();
			  
		 }
	} 					  
}
/* function countvalidator(inComp,sText)
{
		if((sText.length < 10) && (inComp==document.subsform.txtPhone))
		 {
			 alert(" The 'Phone' field must contain atleast 10 digits");	 
			 document.subsform.txtPhone.focus();
		 }
		 else if((sText.length < 10)&& (inComp==document.subsform.txtFax))
		 {
	     	alert("The 'Fax' field must contain atleast 10 digits");	 
	    	document.subsform.txtFax.focus();
			  
		 }

} */

function changeTicker()
 {
 if(document.subsform.optCompType[0].checked==true)
    document.subsform.txtTicker.value="";
    document.subsform.txtTicker.disabled=true;
 }
function changeTicker2()
 {
 if(document.subsform.optCompType[1].checked==true)
    document.subsform.txtTicker.disabled=false;
 }
function validEmail(email)
{
//alert(email);
 var pattern=/(^[\-_\.a-zA-Z0-9]+)@((([0-9]{1,3}\.){3}([0-9]{1,3})((:[0-9])*))|(([a-zA-Z0-9\-]+)(\.[a-zA-Z]{2,})+(\.[a-zA-Z]{2})?((:[0-9])*)))/; 

if (email == ""){
	//alert("You must supply an address in the \'Email\' field.");
}
else if (email.search(pattern) == -1) {
	alert("You must supply only valid e-mail addresses.");
	document.subsform.txtEmail.focus();
}

}


