<!--

function set()
{

	if (document.dataform.S_name.value.length == 0)  {
		alert ("Kindly enter your name.");
		document.dataform.S_name.focus();
		return false;
	}
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.dataform.S_email.value))) {
			alert("Invalid Email ID. Kindly enter the correct ID.");
			document.dataform.S_email.focus();
			return (false);
	}
	if (document.dataform.S_ccode.value.length == 0)  {
		alert ("Kindly enter your country code.");
		document.dataform.S_ccode.focus();
		return false;
	}
	//if (document.dataform.S_acode.value.length == 0)  {
		//alert ("Kindly enter your area code.");
		//document.dataform.S_acode.focus();
		//return false;
	//}
	if (document.dataform.S_phone.value.length == 0)  {
		alert ("Kindly enter your phone number.");
		document.dataform.S_phone.focus();
		return false;
	}

	if (document.dataform.S_country.value.length == 0)  {
		alert ("Kindly enter your country name.");
		document.dataform.S_country.focus();
		return false;
	}
	if(document.dataform.Product_Required.value == "") {
		alert ("Kindly describe your requirement.");
		document.dataform.Product_Required.focus();
		return false;
	}
	if (document.dataform.Product_Required.value.length>4000) {
		alert("Kindly describe your requirement within the limit of 4000 characters.");
		document.dataform.Product_Required.focus();
		return false;
	}

	if (document.dataform.captcha_text.value.length == 0)  {
		alert ("Kindly enter security code as shown in image.");
		document.dataform.captcha_text.focus();
		return false;
	}
	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 setCaptchaRef()
	{
		document.dataform.captcha_ref.value = ran_num;
	}
function get(){
setCaptchaRef();
if( (cookie = getCookie("newImeshID")) > ""){
	Values = cookie.split("|");
	if (Values.length >= 7){
			if (Values[0]) document.dataform.S_name.value  = Values[0];
			if (Values[1]) document.dataform.S_email.value = Values[1];
			if (Values[2]) document.dataform.S_phone.value = Values[2];

			if (Values[4]) document.dataform.S_streetaddress.value=Values[4];
			if (Values[5]) document.dataform.S_city.value=Values[5];
			if (Values[6]) document.dataform.S_pin.value=Values[6];


			if (Values[9]) document.dataform.S_ccode.value = Values[9];
			if (Values[10]) document.dataform.S_acode.value = Values[10];


       	}
}
return true;
}

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 -->
