function chk()
{
if(document.frm.name.value==""){
alert("Please Enter Your name");
document.frm.name.focus();
return false;
}
if(document.frm.tel.value==""){
alert("Please Enter the Company Telephone No");
document.frm.tel.focus();
return false;
}
if(document.frm.email.value==""){
alert("Please Enter the Company Email Address");
document.frm.email.focus();
return false;
}
}

 function ValidEmail(objName) 
{
 if (objName.value.length<1)
 {
  return true;
 }
 var emailStr=objName.value;
 var emailPat=/^(.+)@(.+)$/;
 var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";
 var validChars="\[^\\s" + specialChars + "\]";
 var quotedUser="(\"[^\"]*\")";
 var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
 var atom=validChars + '+';
 var word="(" + atom + "|" + quotedUser + ")";
 var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
 var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
 var matchArray=emailStr.match(emailPat);
 if (matchArray==null) 
 {
  objName.focus();
  objName.Value='';
  return false;
 }
 var user=matchArray[1];
 var domain=matchArray[2];
 if (user.match(userPat)==null) 
 {
     objName.focus();
  objName.Value='';
    return false;
 }
 
 var IPArray=domain.match(ipDomainPat);
 if (IPArray!=null) 
 {
  for (var i=1;i<=4;i++) 
  {
   if (IPArray[i]>255) 
   {
    objName.focus();
    objName.Value='';
    return false;
       }
      }
      return true;
 }
 
 var domainArray=domain.match(domainPat);
 if (domainArray==null) 
 {
  objName.focus();
  objName.Value='';
      return false;
 }
 
 var atomPat=new RegExp(atom,"g");
 var domArr=domain.match(atomPat);
 var len=domArr.length;
 if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>4) 
 {
     objName.focus();
  objName.Value='';
     return false;
 }
 
 if (len<2) 
 {
  objName.focus();
     objName.Value='';
  return false;
 }
 
 return true;
} 

function chk1(){
if(document.frm.full_name.value==""){
alert("Please enter your Full Name");
document.frm.full_name.focus();
return false;
}
if(document.frm.title.value==""){
alert("Please enter Designation in the Company");
document.frm.title.focus();
return false;
}
if(document.frm.company.value==""){
alert("Please enter Name of the Company");
document.frm.company.focus();
return false;
}
if(document.frm.shipping_address_line_1.value==""){
alert("Please enter Address of the Company");
document.frm.shipping_address_line_1.focus();
return false;
}
if(document.frm.city.value==""){
alert("Please enter Location of the Company");
document.frm.city.focus();
return false;
}
if(document.frm.state.value==""){
alert("Please enter State in which the Company is Located");
document.frm.state.focus();
return false;
}
if(document.frm.zip_postal_code.value==""){
alert("Please enter ZIP code");
document.frm.zip_postal_code.focus();
return false;
}
if(document.frm.phone_number.value==""){
alert("Please enter the Company Phone No.");
document.frm.phone_number.focus();
return false;
}
if(document.frm.email.value==""){
alert("Please enter the Company Email Address");
document.frm.email.focus();
return false;
}
if(document.frm.reffered_by.value==""){
alert("How Did you Learn of our Reports");
document.frm.reffered_by.focus();
return false;
}
if(document.frm.credit_card.checked==false){
alert("Which Credit Card Should the cost be Charged to");
document.frm.credit_card.focus();
return false;
}
if(document.frm.cc_account_number.value==""){
alert("Please Enter the Credit Card Account No");
document.frm.cc_account_number.focus();
return false;
}
if(document.frm.exp_date.value==""){
alert("Please Enter Card Expiration Date");
document.frm.exp_date.focus();
return false;
}
if(document.frm.card_holders_name.value==""){
alert("Please Enter Card Holder's Name");
document.frm.card_holders_name.focus();
return false;
}
if(document.frm.report.checked==false &&  document.frm.report1.checked==false){
	if(document.frm.report2.checked==true){
		alert("Please first specify a current report to be purchased to receive a previous report at the $400 price.");
		document.frm.report.focus();
		return false;
	}else{
		alert("Please specify the report to be purchased.");
		document.frm.report.focus();
		return false;
	}
}
if(document.frm.report2.checked==true && document.frm.report_detail.value==""){
alert("Please specify the report details in the provided text box.");
document.frm.report_detail.focus();
return false;
}

}

function chk3(){
if(document.frm.full_name.value==""){
alert("Please enter your Full Name");
document.frm.full_name.focus();
return false;
}
if(document.frm.title.value==""){
alert("Please enter Designation in the Company");
document.frm.title.focus();
return false;
}
if(document.frm.company.value==""){
alert("Please enter Name of the Company");
document.frm.company.focus();
return false;
}
if(document.frm.shipping_address_line_1.value==""){
alert("Please enter Address of the Company");
document.frm.shipping_address_line_1.focus();
return false;
}
if(document.frm.city.value==""){
alert("Please enter Location of the Company");
document.frm.city.focus();
return false;
}
if(document.frm.state.value==""){
alert("Please enter State in which the Company is Located");
document.frm.state.focus();
return false;
}
if(document.frm.zip_postal_code.value==""){
alert("Please enter ZIP Code");
document.frm.zip_postal_code.focus();
return false;
}
if(document.frm.phone_number.value==""){
alert("Please enter the Company Phone No.");
document.frm.phone_number.focus();
return false;
}
if(document.frm.email.value==""){
alert("Please enter the Company Email Address");
document.frm.email.focus();
return false;
}
if(document.frm.credit_card.checked==false){
alert("Which Credit Card Should the cost be Charged to");
document.frm.credit_card.focus();
return false;
}
if(document.frm.cc_account_number.value==""){
alert("Please Enter the Credit Card Account No");
document.frm.cc_account_number.focus();
return false;
}
if(document.frm.exp_date.value==""){
alert("Please Enter Card Expiration Date");
document.frm.exp_date.focus();
return false;
}
if(document.frm.card_holders_name.value==""){
alert("Please Enter Card Holder's Name");
document.frm.card_holders_name.focus();
return false;
}
}

function chk2(){
if(document.frm.full_name.value==""){
alert("Please enter your Full Name");
document.frm.full_name.focus();
return false;
}
if(document.frm.title.value==""){
alert("Please enter Designation in the Company");
document.frm.title.focus();
return false;
}
if(document.frm.company.value==""){
alert("Please enter Name of the Company");
document.frm.company.focus();
return false;
}
if(document.frm.shipping_address_line_1.value==""){
alert("Please enter Address of the Company");
document.frm.shipping_address_line_1.focus();
return false;
}
if(document.frm.city.value==""){
alert("Please enter Location of the Company");
document.frm.city.focus();
return false;
}
if(document.frm.state.value==""){
alert("Please enter State in which the Company is Located");
document.frm.state.focus();
return false;
}
if(document.frm.zip_postal_code.value==""){
alert("Please enter ZIP Code");
document.frm.zip_postal_code.focus();
return false;
}
if(document.frm.phone_number.value==""){
alert("Please enter the Company Phone No.");
document.frm.phone_number.focus();
return false;
}
if(document.frm.email.value==""){
alert("Please enter the Company Email Address");
document.frm.email.focus();
return false;
}
if(document.frm.credit_card.checked==false){
alert("Which Credit Card Should the cost be Charged to");
document.frm.credit_card.focus();
return false;
}
if(document.frm.cc_account_number.value==""){
alert("Please Enter the Credit Card Account No");
document.frm.cc_account_number.focus();
return false;
}
if(document.frm.exp_date.value==""){
alert("Please Enter Card Expiration Date");
document.frm.exp_date.focus();
return false;
}
if(document.frm.card_holders_name.value==""){
alert("Please Enter Card Holder's Name");
document.frm.card_holders_name.focus();
return false;
}
}