function Validate()
{
  if (isEmpty(form1.co_name))
  {
    alert("Please enter Company Name.");
    document.form1.co_name.focus();
    return (false);
  }
  
  if (isEmpty(form1.address))
  {
    alert("Please enter Address.");
    document.form1.address.focus();
    return (false);
  }

 // if (not6Digits(form1.postal_code))
 // {
   // alert("Postal Code should be 6 digits.");
    //document.form1.postal_code.focus();
   // return (false);
  //}

  if (isEmpty(form1.biz_regis_no))
  {
    alert("Please enter Business Registration No.");
    document.form1.biz_regis_no.focus();
    return (false);
  }

  if (isEmpty(form1.biz_regis_date))
  {
    alert("Please enter Business Registration date.");
    document.form1.biz_regis_date.focus();
    return (false);
  }
   if (isEmpty(form1.contact_salu))
  {
    alert("Please enter Contact Salutation");
    document.form1.contact_salu.focus();
    return (false);
  }

  if (isEmpty(form1.contact_name))
  {
    alert("Please enter Contact Name.");
    document.form1.contact_name.focus();
    return (false);
  }

  if (isEmpty(form1.contact_designation))
  {
    alert("Please enter Designation.");
    document.form1.contact_designation.focus();
    return (false);
  }

  if (!min8Digits(form1.contact_tel))
  {
    alert("Telephone should be at least 8 numbers.");
    document.form1.contact_tel.focus();
    return (false);
  }

  if (not8Digits(form1.contact_fax))
  {
    alert("Fax No should be 8 digits.");
    document.form1.contact_fax.focus();
    return (false);
  }

  if (notValidEmail(form1.contact_email))
  {
  	alert("Email is invalid.");
	document.form1.contact_email.select();
	return (false);
  }
  
   if (isEmpty(form1.regis_salu))
  {
    alert("Please enter Registered by Salutation");
    document.form1.regis_salu.focus();
    return (false);
  }


  if (isEmpty(form1.regis_name))
  {
    alert("Please enter Name.");
    document.form1.regis_name.focus();
    return (false);
  }

  if (isEmpty(form1.regis_designation))
  {
    alert("Please enter Designation.");
    document.form1.regis_designation.focus();
    return (false);
  }

  if (isEmpty(form1.regis_co_name))
  {
    alert("Please enter Company Name.");
    document.form1.regis_co_name.focus();
    return (false);
  }

  if (!min8Digits(form1.regis_tel))
  {
    alert("Telephone should be at least 8 numbers.");
    document.form1.regis_tel.focus();
    return (false);
  }

  if (not8Digits(form1.regis_fax))
  {
    alert("Fax No should be 8 digits.");
    document.form1.regis_fax.focus();
    return (false);
  }

  if (notValidEmail(form1.regis_email))
  {
  	alert("Email is invalid.");
	document.form1.regis_email.select();
	return (false);
  }

  if (form1.declaration.checked == false)
  {
  	alert("Declaration not checked.");
	document.form1.declaration.focus();
	return (false);
  }
  
return (true);

}

function myCal()
  {
	var cSearchValue=showModalDialog("../include/Calendar.asp",0,"dialogwidth=298px;dialogheight=280px");
	
	if (cSearchValue != -1 && cSearchValue != null && cSearchValue != "")
    {
		 document.form1.biz_regis_date.value = cSearchValue;		 
	}
  }

