<!-- HIDING FROM OTHER BROWSERS
expires = new Date();
expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);
function set(){

if ( (document.dataform.S_name.value == "")
	|| (document.dataform.S_streetaddress.value == "")
	|| (document.dataform.S_city.value == "")
    || (document.dataform.S_state.value == "")
	||  (document.dataform.Sales_Tax_No.value == "")
    || (document.dataform.Customer_Code_No.value == "")
    || (document.dataform.S_phone_country_code.value == "")
    || (document.dataform.S_phone_area_code.value == "")
    || (document.dataform.S_phone.value == "")
    || (document.dataform.Mode_Of_Payment.value == "")
    || (document.dataform.Description.value == ""))
{
    alert ("Please fill in all the compulsory fields");
    return (false);
}


if (document.dataform.captcha_text.value == "")
{
    alert ("kindy enter the code appearing on the image.");
	document.dataform.captcha_text.focus();
    return (false);
}
newCookie = document.dataform.S_name.value;
newCookie +="|"+document.dataform.S_streetaddress.value;
newCookie +="|"+document.dataform.Street.value;
newCookie +="|"+document.dataform.S_city.value;
newCookie +="|"+document.dataform.S_state.value;
newCookie +="|"+document.dataform.S_pin.value;
newCookie +="|"+document.dataform.Sales_Tax_No.value;
newCookie +="|"+document.dataform.S_fax.value;
newCookie +="|"+document.dataform.S_phone.value;
newCookie +="|"+document.dataform.S_email.value;
newCookie +="|"+document.dataform.Bankers_Name.value;
newCookie +="|"+document.dataform.Bankers_Address.value;
setCookie("newImeshID",newCookie);
return true;
}

var d = new Date();
	var epoch_time =(d.getTime()-d.getMilliseconds())/1000;
	var randomnumber=Math.floor(Math.random()*9999);
	var randomnumber1=Math.floor(Math.random()*9999);
	var ran_num=randomnumber+"."+epoch_time+"."+randomnumber1;
	var url="/cgi/get_captcha.cgi?cref="+ran_num+"&style=2";



function get(){
if( (cookie = getCookie("newImeshID")) > ""){
	Values = cookie.split("|");
	if (Values.length >= 0){
		if (document.dataform.S_name.value.length == 0) document.dataform.S_name.value = Values[0];
		if (document.dataform.S_streetaddress.value.length == 0)    document.dataform.S_streetaddress.value = Values[1];
		if (document.dataform.Street.value.length == 0)    document.dataform.Street.value=Values[2];
		if (document.dataform.S_city.value.length == 0)      document.dataform.S_city.value=Values[3];
		if (document.dataform.S_state.value.length == 0) document.dataform.S_state.value=Values[4];
		if (document.dataform.S_pin.value.length == 0)  document.dataform.S_pin.value=Values[5];
if (document.dataform.Sales_Tax_No.value.length == 0)  document.dataform.Sales_Tax_No.value=Values[6];
if (document.dataform.S_fax.value.length == 0)  document.dataform.S_fax.value=Values[7];
if (document.dataform.S_phone.value.length == 0)  document.dataform.S_phone.value=Values[8];
if (document.dataform.S_email.value.length == 0)  document.dataform.S_email.value=Values[9];
		if (document.dataform.Bankers_Name.value.length == 0)   document.dataform.Bankers_Name.value=Values[10];
		if (document.dataform.Bankers_Address.value.length == 0) document.dataform.Bankers_Address.value=Values[11];

	}
}
return true;
}
function setCookie(name, value){
if (value.length > 0)
 document.cookie = name + "=" + escape(value)+ ";"+"expires=" + expires.toGMTString()+";"
}
function getCookie(Name) {
          var search = Name + "="
          if (document.cookie.length > 0) { // if there are any cookies
                    offset = document.cookie.indexOf(search)
                    if (offset != -1) { // if cookie exists
                              offset += search.length
                              // set index of beginning of value
                              end = document.cookie.indexOf(";", offset)
                              // set index of end of cookie value
                              if (end == -1) end = document.cookie.length
                              return unescape(document.cookie.substring(offset, end))
                    }
          }
return "";
}
// STOP HIDING FROM OTHER BROWSERS -->