function popISOCertWindow(popurl)
	{
		var title =""
		window.open(popurl,"","left=80,top=30,width=380,height=500,Scrollbars=No");
	}
	
function ValidateContacts(theForm)
{

  if (theForm.ctl00_ContentPlaceHolder1_txtname.value == "")
  {
    alert("Please enter your name.");
    theForm.ctl00_ContentPlaceHolder1_txtname.focus();
    return (false);
  }

  if (theForm.ctl00_ContentPlaceHolder1_txtCompany.value == "")
  {
    alert("Please enter name of your organization.");
    theForm.ctl00_ContentPlaceHolder1_txtCompany.focus();
    return (false);
  }

  if (theForm.ctl00_ContentPlaceHolder1_txtDesignation.value == "")
  {
    alert("Please enter your designation.");
    theForm.ctl00_ContentPlaceHolder1_txtDesignation.focus();
    return (false);
  }

	// Email validation starts
	BeforeAtRate = theForm.ctl00_ContentPlaceHolder1_txtEmail.value.substring(0,theForm.ctl00_ContentPlaceHolder1_txtEmail.value.indexOf("@"));
	AfterAtRate = theForm.ctl00_ContentPlaceHolder1_txtEmail.value.substring(theForm.ctl00_ContentPlaceHolder1_txtEmail.value.indexOf("@")+1,theForm.ctl00_ContentPlaceHolder1_txtEmail.value.length);
	if (AfterAtRate.indexOf(".") == -1)
	{
		alert("Please enter a valid email-id");
		theForm.ctl00_ContentPlaceHolder1_txtEmail.focus();
		return (false);
	}
	middle = AfterAtRate.substring(0, AfterAtRate.indexOf("."));
	last = AfterAtRate.substring(AfterAtRate.indexOf(".") + 1,AfterAtRate.length);
	if (BeforeAtRate.length == 0 || middle.length == 0 || last.length == 0)
	{
		alert("Please enter a valid email-id");
		theForm.ctl00_ContentPlaceHolder1_txtEmail.focus();
		return (false);
	}
	if (middle.indexOf(",") != -1 || last.indexOf(",") != -1 || middle.indexOf(",") != -1 || BeforeAtRate.indexOf(",") != -1){
		alert("Please enter a valid email-id");
		theForm.ctl00_ContentPlaceHolder1_txtEmail.focus();
		return (false);
	}
	// Email validation ends

  if (theForm.ctl00_ContentPlaceHolder1_txtPhone.value == "")
  {
    alert("Please enter phone number.");
    theForm.ctl00_ContentPlaceHolder1_txtPhone.focus();
    return (false);
  }
	
  if (theForm.ctl00_ContentPlaceHolder1_txtMobile.value == "")
  {
    alert("Please enter mobile number.");
    theForm.ctl00_ContentPlaceHolder1_txtMobile.focus();
    return (false);
  }

  if (theForm.ctl00_ContentPlaceHolder1_txtmessage.value == "")
  {
    alert("Please enter your message.");
    theForm.ctl00_ContentPlaceHolder1_txtmessage.focus();
    return (false);
  }
	
}

function ValidateRFP(theForm)
{

  if (theForm.ctl00_ContentPlaceHolder1_txtname.value == "")
  {
    alert("Please enter your name.");
    theForm.ctl00_ContentPlaceHolder1_txtname.focus();
    return (false);
  }

  if (theForm.ctl00_ContentPlaceHolder1_txtCompany.value == "")
  {
    alert("Please enter name of your organization.");
    theForm.ctl00_ContentPlaceHolder1_txtCompany.focus();
    return (false);
  }

  if (theForm.ctl00_ContentPlaceHolder1_txtDesignation.value == "")
  {
    alert("Please enter your designation.");
    theForm.ctl00_ContentPlaceHolder1_txtDesignation.focus();
    return (false);
  }

  if (theForm.ctl00_ContentPlaceHolder1_txtPhone1.value == "" && theForm.ctl00_ContentPlaceHolder1_txtPhone2.value == "")
  {
    alert("Please enter phone number.");
    theForm.ctl00_ContentPlaceHolder1_txtPhone1.focus();
    return (false);
  }
	
  if (theForm.ctl00_ContentPlaceHolder1_txtMobile.value == "")
  {
    alert("Please enter mobile number.");
    theForm.ctl00_ContentPlaceHolder1_txtMobile.focus();
    return (false);
  }

  if (theForm.cboCountry.selectedIndex == 0)
  {
    alert("Please select a country.");
    theForm.cboCountry.focus();
    return (false);
  }

	// Email validation starts
	BeforeAtRate = theForm.ctl00_ContentPlaceHolder1_txtEmail.value.substring(0,theForm.ctl00_ContentPlaceHolder1_txtEmail.value.indexOf("@"));
	AfterAtRate = theForm.ctl00_ContentPlaceHolder1_txtEmail.value.substring(theForm.ctl00_ContentPlaceHolder1_txtEmail.value.indexOf("@")+1,theForm.ctl00_ContentPlaceHolder1_txtEmail.value.length);
	if (AfterAtRate.indexOf(".") == -1)
	{
		alert("Please enter a valid email-id");
		theForm.ctl00_ContentPlaceHolder1_txtEmail.focus();
		return (false);
	}
	middle = AfterAtRate.substring(0, AfterAtRate.indexOf("."));
	last = AfterAtRate.substring(AfterAtRate.indexOf(".") + 1,AfterAtRate.length);
	if (BeforeAtRate.length == 0 || middle.length == 0 || last.length == 0)
	{
		alert("Please enter a valid email-id");
		theForm.ctl00_ContentPlaceHolder1_txtEmail.focus();
		return (false);
	}
	if (middle.indexOf(",") != -1 || last.indexOf(",") != -1 || middle.indexOf(",") != -1 || BeforeAtRate.indexOf(",") != -1){
		alert("Please enter a valid email-id");
		theForm.ctl00_ContentPlaceHolder1_txtEmail.focus();
		return (false);
	}
	// Email validation ends

  if (theForm.ctl00_ContentPlaceHolder1_cboIndustry.selectedIndex == 0 && theForm.ctl00_ContentPlaceHolder1_txtOthers.value == "" )
  {
    alert("Please select a industry type.");
    theForm.ctl00_ContentPlaceHolder1_cboIndustry.focus();
    return (false);
  }

  if (theForm.ctl00_ContentPlaceHolder1_txtComments.value == "")
  {
    alert("Please enter your comments.");
    theForm.ctl00_ContentPlaceHolder1_txtComments.focus();
    return (false);
  }
	
}