var data=['Aceh','#ID','62','Afghanistan','#AF','93','Aland','#FI','358','Albania','#AL','355','Algeria','#DZ','213','America','#US','1','American Samoa','#AS','1-684','Andorra','#AD','376','Angola','#AO','244','Anguilla','#AI','1-264','Antarctica','#AQ','672','Antigua And Barbuda','#AG','1-268','Argentina','#AR','54','Armenia','#AM','7','Aruba','#AW','297','Aryavarta','#IN','91','Aussi','#AU','61','Australia','#AU','61','Austria','#AT','43','Azerbaijan','#AZ','994','BRD','#DE','49','Bahamas','#BS','1-242','Bahrain','#BH','973','Bangladesh','#BD','880','Barbados','#BB','1-246','Basutoland','#LS','266','Batavian Republic','#NL','31','Bechuanaland','#BW','267','Belarus','#BY','375','Belau','#PW','680','Belgian Congo','#CD','243','Belgium','#BE','32','Belize','#BZ','501','Benin','#BJ','229','Bermuda','#BM','1-441','Bharat','#IN','91','Bhutan','#BT','975','Bolivia','#BO','591','Bosnia And Herzegovina','#BA','387','Botswana','#BW','267','Bourkina-Fasso','#BF','226','Brazil','#BR','55','Britain','#UK','44','British Indian Ocean Territory','#IO','246','Brunei','#BN','673','Bulgaria','#BG','359','Burkina Faso','#BF','226','Burma','#MM','95','Burundi','#BI','257','Cambodia','#KH','855','Cameroon','#CM','237','Canada','#CA','1','Cape Verde','#CV','238','Catalonia','#ES','34','Cayman Islands','#KY','1-453','Central African Republic','#CF','236','Cesko','#CZ','420','Ceylon','#LK','94','Chad','#TD','235','Chechnya','#RU','7','Chile','#CL','56','Chili','#CL','56','Chilli','#CL','56','China','#CN','86','China (Hong Kong S.A.R.)','#HK','852','China (Macau S.A.R.)','#MO','853','Christmas Islands','#CX','61','Cocos Islands','#CC','672','Colchis','#GE','995','Colombia','#CO','57','Commonwealth of Australia','#AU','61','Comoros','#KM','269','Congo','#CG','242','Congo Belge','#CD','243','Congo Brazzaville','#CG','242','Congo Kinshasa','#CD','243','Cook Islands','#CK','682','Costa Rica','#CR','506','Cote D Ivoire','#CI','225','Crna Gora','#ME','382','Croatia','#HR','385','Cuba','#CU','53','Cyprus','#CY','357','Czech Republic','#CZ','420','Czechia','#CZ','420','DRC','#CD','243','Dahomey','#BJ','229','Democractic Republic Of Congo','#CD','243','Denmark','#DK','45','Deutschland','#DE','49','Djibouti','#DJ','253','Dominica','#DM','1-767','Dominican Republic','#DO','1-809','Dominion of Canada','#CA','1','Down Under','#AU','61','Dutch Guiana','#SR','597','Dutch Republic','#NL','31','East Bengal','#BD','880','East Timor','#TL','670','Easter Island','#CL','56','Ecuador','#EC','593','Egypt','#EG','20','Eire','#IE','353','El Salvador','#SV','503','Ellice Islands','#TV','688','England','#UK','44','Equatorial Guinea','#GQ','240','Eritrea','#ER','291','Espana','#ES','34','Estonia','#EE','372','Ethiopia','#ET','251','Faeroe Islands','#FO','298','Falkland Islands','#FK','500','Federal Republic of Germany','#DE','49','Federative Republic of Brazil','#BR','55','Fiji Islands','#FJ','679','Finland','#FI','358','France','#FR','33','French Congo','#CG','242','French Guiana','#GF','594','French Polynesia','#PF','689','French Republic','#FR','33','French Somaliland','#DJ','253','French Southern Territories','#TF','262','Gabon','#GA','241','Gambia','#GM','220','Gandhar','#AF','93','Gaul','#FR','33','Georgia','#GE','995','Germany','#DE','49','Ghana','#GH','233','Gibraltar','#GI','350','Great Britain','#UK','44','Greece','#GR','30','Greenland','#GL','299','Grenada','#GD','1-473','Guadeloupe','#GP','590','Guam','#GU','1-671','Guatemala','#GT','502','Guinea','#GN','224','Guinea','#GW','245','Guinea-Bissau','#GW','245','Guyana','#GY','592','Haiti','#HT','509','Haute-Volta','#BF','226','Heard And Mcdonald Islands','#HM','672','Hellas','#GR','30','Hellenic Republic','#GR','30','Hind','#IN','91','Hindustan','#IN','91','Holland','#NL','31','Holy See','#VA','379','Honduras','#HN','504','Hong Kong','#HK','852','Hrvatska','#HR','385','Hungary','#HU','36','Iberia','#GE','995','Iceland','#IS','354','India','#IN','91','Indonesia','#ID','62','Iran','#IR','98','Iraq','#IQ','964','Ireland','#IE','353','Islamic Republic of Pakistan','#PK','92','Island','#IS','354','Islas Malvin','#FK','500','Israel','#IL','972','Italy','#IT','39','Iveria','#GE','995','Ivory Coast','#CI','225','Jamaica','#JM','1-876','Japan','#JP','81','Jordan','#JO','962','KSA','#SA','966','Kampuchea','#KH','855','Kazakhstan','#KZ','7','Keeling Islands','#CC','672','Kenya','#KE','254','Khmer','#KH','855','Khmer Republic','#KH','855','Kingdom of Cambodia','#KH','855','Kingdom of Lesotho','#LS','266','Kingdom of Romania','#RO','40','Kingdom of Saudi Arabia','#SA','966','Kingdom of Thailand','#TH','66','Kiribati','#KI','686','Kiwi','#NZ','64','Korea','#KR','82','Korea, North','#KP','850','Kroatien','#HR','385','Kuwait','#KW','965','Kyrgyzstan','#KG','996','Lao','#LA','856','Lao Peoples Democratic Republic','#LA','856','Latvia','#LV','371','Lebanon','#LB','961','Lesotho','#LS','266','Liberia','#LR','231','Libya','#LY','218','Liechtenstein','#LI','423','Lithuania','#LT','370','Luxembourg','#LU','352','MEX','#MX','52','MX','#MX','52','Macau','#MO','853','Macedonia','#MK','389','Madagascar','#MG','261','Mainland China','#CN','86','Malawi','#MW','265','Malaysia','#MY','60','Maldives','#MV','960','Mali','#ML','223','Malta','#MT','356','Marshall Islands','#MH','692','Martinique','#MQ','596','Mauritania','#MR','222','Mauritius','#MU','230','Mayotte','#YT','269','Mesopotamia','#IQ','964','Mexico','#MX','52','Micronesia','#FM','691','Moldova','#MD','373','Monaco','#MC','377','Mongolia','#MN','976','Montenegro','#ME','382','Montserrat','#MS','1-664','Morocco','#MA','212','Mount Athos','#GR','30','Mozambique','#MZ','258','Myanmar','#MM','95','Namibia','#NA','264','Nauru','#NR','674','Nepal','#NP','977','Netherlands','#NL','31','Netherlands Antilles','#AN','599','Netherlands Guiana','#SR','597','New Caledonia','#NC','687','New Zealand','#NZ','64','Nicaragua','#NI','505','Niger','#NE','227','Nigeria','#NG','234','Niue','#NU','683','Norfolk Island','#NF','672','North Korea','#KP','850','Northern Ireland','#UK','44','Northern Mariana Islands','#MP','1-670','Northern Rhodesia','#ZM','260','Norway','#NO','47','Nyasaland','#MW','265','Oman','#OM','968','Oubangui-Chari','#CF','236','Oz','#AU','61','PRC','#CN','86','Pakistan','#PK','92','Palau','#PW','680','Panama','#PA','507','Papua New Guinea','#PG','675','Paraguay','#PY','595','Peoples Republic of Bangladesh','#BD','880','Peoples Republic of China','#CN','86','Peoples Republic of Kampuchea','#KH','855','Persia','#IR','98','Peru','#PE','51','Philippines','#PH','63','Pindorama','#BR','55','Pitcairn Island','#PN','872','Poland','#PL','48','Polska','#PL','48','Porto Rico','#PR','1','Portugal','#PT','351','Portugese Guinea','#GW','245','Puerto Rico','#PR','1','Qatar','#QA','974','Qazaqstan','#KZ','7','RF','#RU','7','Republic of Benin','#BJ','229','Republic of Botswana','#BW','267','Republic of Dijbouti','#DJ','253','Republic of Hungry','#HU','36','Republic of India','#IN','91','Republic of Ireland','#IE','353','Republic of Kazakhstan','#KZ','7','Republic of Malawi','#MW','265','Republic of Moldova','#MD','373','Republic of Palau','#PW','680','Republic of Poland','#PL','48','Republic of Rwanda','#RW','250','Republic of Serbia','#RS','381','Republic of Singapore','#SG','65','Republic of Sudan','#SD','249','Reunion','#RE','262','Rhodesia','#ZW','263','Romania','#RO','40','Roos','#RU','7','Rumania','#RO','40','Russia','#RU','7','Russian Federation','#RU','7','Rwanda','#RW','250','SGSSI','#GS','995','Saint Helena','#SH','290','Saint Kitts And Nevis','#KN','1-869','Saint Lucia','#LC','1-758','Saint Pierre And Miquelon','#PM','508','Saint Vincent And The Grenadin','#VC','1-784','Samoa','#WS','685','San Marino','#SM','378','Sao Tome And Principe','#ST','239','Saudi Arabia','#SA','966','Saudia','#SA','966','Scotland','#UK','44','Senegal','#SN','221','Serbia','#RS','381','Serbia And Montenegro','#CS','381','Seychelles','#SC','248','Shqiperia','#AL','355','Shri Vijaya','#PH','63','Siam','#TH','66','Sierra Leone','#SL','232','Singapore','#SG','65','Slovakia','#SK','421','Slovenia','#SI','386','Solomon Islands','#SB','677','Somalia','#SO','252','South Africa','#ZA','27','South Georgia','#GS','995','South Sandwich Islands','#GS','995','Spain','#ES','34','Sri Lanka','#LK','94','St Helena','#SH','290','St Kitts And Nevis','#KN','1-869','St Lucia','#LC','1-758','St Pierre And Miquelon','#PM','508','St Vincent And The Grenadin','#VC','1-784','St. Helena','#SH','290','St. Kitts And Nevis','#KN','1-869','St. Lucia','#LC','1-758','St. Pierre And Miquelon','#PM','508','St. Vincent And The Grenadin','#VC','1-784','Sudan','#SD','249','Suriname','#SR','597','Svalbard And Jan Mayen Islands','#SJ','47','Swaziland','#SZ','268','Sweden','#SE','46','Swiss Confederation','#CH','41','Switzerland','#CH','41','Syria','#SY','963','Taiwan','#TW','886','Tajikistan','#TJ','992','Tanganyika and Zanzibar','#TZ','255','Tanzania','#TZ','255','Thailand','#TH','66','The Bahamas','#BS','1-242','The Gambia','#GM','220','The Netherlands','#NL','31','The States','#US','1','Tibet','#CN','86','Togo','#TG','228','Tokelau','#TK','690','Tonga','#TO','676','Trinidad And Tobago','#TT','1-868','Tunisia','#TN','216','Turkey','#TR','90','Turkmenistan','#TM','993','Turks And Caicos Islands','#TC','1-649','Tuvalu','#TV','688','UAE','#AE','971','UK','#UK','44','US','#US','1','USA','#US','1','Ubangi-Shari','#CF','236','Uganda','#UG','256','Ukraine','#UA','380','Ungarn','#HU','36','United Arab Emirates','#AE','971','United Kingdom','#UK','44','United Mexican States','#MX','52','United States','#US','1','United States Minor Outlying I','#UM','1','United States Of America','#US','1','United States of Brazil','#BR','55','Upper Volta','#BF','226','Uruguay','#UY','598','Uzbekistan','#UZ','998','Vanuatu','#VU','678','Vatican City','#VA','379','Venezuela','#VE','58','Vietnam','#VN','84','Virgin Islands (British)','#VG','1-284','Virgin Islands (Us)','#VI','1-340','Wales','#UK','44','Wallis And Futuna Islands','#WF','681','West Germany','#DE','49','Western Sahara','#EH','212','Xile','#CL','56','Yemen','#YE','967','Yugoslavia','#YU','38','Zaire','#CD','243','Zambia','#ZM','260','Zanzibar','#TZ','255','Zimbabwe','#ZW','263'];

var data1=new Array();
var j=0;
for(var i=0;i<data.length;i+=3)
{
	data1[j] = data[i];
	j++;
}

function Showonblur(id,val)
{
	var txtCountry = 'txtCountry';
	var S_ccode = 'S_ccode';
	var S_acode = 'txtArea';
	var S_cmobile = 'S_cmobile';
	var country = 'country';

	var lower = val.toLowerCase();
	val=lower.substr(0,1).toUpperCase() + lower.substr(1);

	if (__AutoComplete[id]['highlighted'] == null)
	{
		if(__AutoComplete[id]['dropdown'].childNodes[0])
		{
			__AutoComplete[id]['dropdown'].childNodes[0].className = 'autocomplete_item_highlighted';
		}
		__AutoComplete[id]['highlighted'] = 0;
	}
	
	if (__AutoComplete[id]['highlighted'] == null && val=='')
	{
		AutoComplete_HideDropdown(id);
		document.getElementById(id).value='';
		document.getElementById(country).value='';
		document.getElementById(txtCountry).value='';
		document.getElementById(S_ccode).value='';
		document.getElementById(S_cmobile).value='';
	}
	Show(val);
}

function Show(populate)
{
	var len = data.length;
	var i=0;
	var j=0;
	var k=0;
	var code=0;
	len=len+1;
	var count=0;

	var txtCountry = 'txtCountry';
	var S_ccode = 'S_ccode';
	var S_acode = 'txtArea';
	var S_cmobile = 'S_cmobile';
	var country = 'country';
	var id='country_name';

	for(i=0;i<=len;i++)
	{
		var data1='';
		if(data[i])
		{
			data1=data[i].toString();
		}

		if(isNaN(data1))
		{
			data1=data1.replace(/[^0-9A-Za-z\#]/g,"");
			data1 = data1.toLowerCase();
			populate=populate.replace(/[^0-9A-Za-z\#]/g,"");
			var value=populate.toLowerCase();
	
			if (data1 == value) 
			{
				//alert(myvalue);
				count=1;
				j=i+1;
				k=i+2;
				code=data[i];
				var iso=data[j].replace('#',"");
				var ccode=new Array();
				if(data[k].match(/\-/))
				{
					ccode=data[k].split(/\-/);
				}
				else
				{
					ccode[0]=data[k];
					ccode[1]='';
				}

				document.getElementById(id).value=code;
				document.getElementById(txtCountry).value=iso;
				document.getElementById(country).value=iso;
				document.getElementById(S_ccode).value='+'+ccode[0];
				document.getElementById(S_acode).value=ccode[1];
				document.getElementById(S_cmobile).value='+'+ccode[0];
				AutoComplete_HideDropdown(id);
				break;
			}
		}

		if(i==len-2)
		{
			if(count==0)
			{
				document.getElementById(id).value='';
				document.getElementById(country).value='';
				document.getElementById(txtCountry).value='';
				document.getElementById(S_ccode).value='';
				document.getElementById(S_cmobile).value='';
			}
		}
	}
}

/*make default country dropdown*/
function country_drpdown()
{
	AutoComplete_Create('country_name', data1);
}

/*Buy Offer Frm*/
function newreg_form()
{
	tab2_new();
	country_drpdown();
}
/*Buy Offer Frm*/

if(document.getElementById('country_req') && document.getElementById('country_req').value == 1)
{
	country_drpdown();
}


if(document.getElementById('rerr') && document.getElementById('rerr').value =='')
{
	country_drpdown(); getRespOfrData();
}

/*Reg Form of Detail Page (Buy/ Sell)*/
function Check_ModReg_Resp_New(Form){ if(obr('mesg')) { Form.mesg.value=obr('mesg').value;
if(trim(Form.mesg.value) == "" || trim(Form.mesg.value) == "Please enter your response."){
alert("Please fill in your response."); return focusElm(obr('mesg')); }
if(Form.mesg.value.length > 2000) { alert("Your Response Message should not be more than 2000 characters.");
return focusElm(obr('mesg')); } }
if(Form.frmsubmitbutton){
	if(Form.frmsubmitbutton.value == 'newreg'){
		if ((Form.website) && Form.website.value.length != 0){
			if(Form.website.value.indexOf(" ") != -1){
			alert("Kindly enter correct URL without any spaces in it."); return focusElm(Form.website); }
			if((Form.website.value.indexOf("@") != -1)||(Form.website.value.indexOf(".") == -1)){
			alert("Invalid Website ! Kindly enter correct website."); return focusElm(Form.website); }
			validarr = Form.website.value.split(".");
			if((validarr[0].length<2)||(validarr[1].length<2)){
			alert("Invalid Website ! Kindly enter correct website."); return focusElm(Form.website); } }
		if((Form.first_name) && trim(Form.first_name.value) == "") {
			alert("Kindly enter your First Name."); return focusElm(Form.first_name); }
		if(Form.email){ if(Form.email.value == "") {
			alert("Kindly enter your E-mail ID."); return focusElm(Form.email); }
			if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(Form.email.value))) {
			alert("Invalid Email ID. Kindly enter the correct ID."); return focusElm(Form.email); } }
		if((Form.country_name) && Form.country_name.value == "") {
			alert("Kindly select the Country."); return focusElm(Form.country_name); }
		if((Form.ph_no) && (Form.mobile)){
			if (((Form.ph_no.value =='Phone Number') || (Form.ph_no.value.length == 0 )) && ((Form.mobile.value == 'Mobile Number') || (Form.mobile.value.length == 0))){
			alert ("Kindly enter either Phone Number or Mobile Number."); return focusElm(Form.ph_no); }
			if(/^\s+$/.test(Form.ph_area.value)){
			alert ("Remove spaces from Phone (Area Code)."); return focusElm(Form.ph_area); }
			if(Form.ph_no.value != '' && (/\s+/.test(Form.ph_no.value))){
			alert ("Remove spaces from Phone Number."); return focusElm(Form.ph_no);}
			if(Form.mobile.value != '' && !(/^\d+$/.test(Form.mobile.value))){
			alert ("Kindly enter numeric value in Mobile Number."); return focusElm(Form.mobile); } }
		if ((Form.captcha_text) && Form.captcha_text.value.length == 0)  {
		alert ("Kindly enter the code as appearing in the Image."); return focusElm(Form.captcha_text); } }
	else if(Form.frmsubmitbutton.value == 'login'){
		if(Form.email1 && Form.usr_pass1){
			if(Form.email1.value == "") {
			alert("Kindly enter your E-mail ID/User name."); return focusElm(Form.email1); }
			if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(Form.email1.value))) {
			alert("Invalid Email ID. Kindly enter the correct ID."); return focusElm(Form.email1); }
			if(Form.usr_pass1.value == "") {
			alert("Kindly enter your Password."); return focusElm(Form.usr_pass1); }
			if(Form.usr_pass1.value.length < 4) {
			alert("The Password should be atleast 4 characters long."); return focusElm(Form.usr_pass1); } }
		else if(Form.email && Form.usr_pass){
			if(Form.email.value == "") {
			alert("Kindly enter your E-mail ID/User name."); return focusElm(Form.email); }
			if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(Form.email.value))) {
			alert("Invalid Email ID. Kindly enter the correct ID."); return focusElm(Form.email); }
			if(Form.usr_pass.value == "") {
			alert("Kindly enter your Password."); return focusElm(Form.usr_pass); }
			if(Form.usr_pass.value.length < 4) {
			alert("The Password should be atleast 4 characters long."); return focusElm(Form.usr_pass); } } } }

newCookie = ((Form.first_name)? Form.first_name.value : '');
newCookie +="|"+((Form.last_name)? Form.last_name.value : '');
newCookie +="|"+((Form.email)? Form.email.value : '');
newCookie +="|"+((Form.ph_no)? Form.ph_no.value : '');
newCookie +="|"+((Form.country_name)? Form.country_name.value : ''); 
newCookie +="|"+((Form.comp_name)? Form.comp_name.value : '');
newCookie +="|"+((Form.website)? Form.website.value : ''); 
newCookie +="|"+((Form.country_name)? Form.country.value : ''); 
newCookie +="|"+((Form.salute)? Form.salute.options[Form.salute.selectedIndex].value : '');
newCookie +="|"+((Form.mobile)? Form.mobile.value : '');
newCookie +="|"+Form.name;
newCookie +="|"+((Form.mesg)? Form.mesg.value : '');
newCookie +="|"+((Form.country_name)? Form.country_iso.value : '');
newCookie +="|"+((Form.email1)? Form.email1.value : '');
newCookie +="|";
setCookie("newImeshIDvisitor",newCookie);

newACCookie = ((Form.country_name)? Form.ph_country.value : '');
newACCookie +="|"+((Form.ph_area)? Form.ph_area.value : ''); 
newACCookie +="|";
setCookie("newACCodeIDvisitor",newACCookie);

}
function setCookie(name, value){ expires = new Date(); expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);
if(value.length > 0) document.cookie = name + "=" + escape(value)+ ";"+"expires=" + expires.toGMTString()+";"+"domain=.indiamart.com;path=/;"}
function getRespOfrData(){ 
	var frmName = 'responseForm1';
	if((cookie = getCookie("newImeshIDvisitor")) > ""){ 
		Values = cookie.split("|");
		if (Values.length >= 7)	{ 
		if (Values[10]) frmName = Values[10]; frmObject = eval('document.'+frmName);
		if (Values[11] && document.respTextBox && document.respTextBox.mesg) document.respTextBox.mesg.value  = Values[11];
		if (Values[0] && frmObject.first_name) frmObject.first_name.value=Values[0];
		if (Values[1] && frmObject.last_name) frmObject.last_name.value=Values[1];
		if (Values[2] && frmObject.email) frmObject.email.value=Values[2];
		if (Values[3] && frmObject.ph_no) frmObject.ph_no.value=Values[3];
		if (Values[4] && frmObject.country_name) frmObject.country_name.value=Values[4];
		if (Values[5] && frmObject.comp_name) frmObject.comp_name.value=Values[5];
		if (Values[6] && frmObject.website) frmObject.website.value=Values[6];
		if (Values[7] && frmObject.country) frmObject.country.value=Values[7];
		if (Values[8] && frmObject.salute) frmObject.salute.value=Values[8];
		if (Values[9] && frmObject.mobile) frmObject.mobile.value=Values[9];
		if (Values[12] && frmObject.country_iso) frmObject.country_iso.value=Values[12];
		if (Values[13] && frmObject.email1) frmObject.email1.value=Values[13]; 
		} 
	}
	
	if( (nextcookie = getCookie("newACCodeIDvisitor")) > "") {
		NextValues = nextcookie.split("|");
		if (NextValues.length >= 3){
			if (NextValues[0] && frmObject.ph_country){ 
				frmObject.ph_country.value=NextValues[0]; 
				frmObject.S_cmobile.value=NextValues[0];
			}
			if (NextValues[1] && frmObject.ph_area) frmObject.ph_area.value=NextValues[1];
		}
	}
}
function getCookie(Name){ var search = Name + "="
if (document.cookie.length > 0){ offset = document.cookie.indexOf(search)
if (offset != -1){ offset += search.length; end = document.cookie.indexOf(";", offset)
if (end == -1) end = document.cookie.length
return unescape(document.cookie.substring(offset, end)) } } return ""; }
function forgotpwd(){ if(obr('forgetForm').style.display == "none"){
obr('forgetForm').style.display = "block";} else { obr('forgetForm').style.display = "none"; } }
function Check_Login_New(){ var email_both = document.forgetPwdForm.email_both.value;
if(document.forgetPwdForm.email_both.value == "" ){
alert("Kindly enter your registered e-mail id."); return focusElm(document.forgetPwdForm.email_both); }
if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.forgetPwdForm.email_both.value))){
alert("Invalid Email ID. Kindly enter the correct ID."); return focusElm(document.forgetPwdForm.email_both); }
var xmlHttp=ajaxFunction();
if(xmlHttp){xmlHttp.onreadystatechange=function(){ if(xmlHttp.readyState==4){ var temp = xmlHttp.responseText;
if(temp == 'S'){ obr('forget_error').innerHTML='<TABLE BORDER="0" WIDTH="94%" CELLPADDING="0" CELLSPACING="0" ALIGN="LEFT"><TR><TD CLASS="trc w1 w3 g1">Your Password has been sent to your Email ID.</TD></TR> </TABLE>'; obr('login_email').value=email_both;}
else{ obr('forget_error').innerHTML='<TABLE BORDER="0" WIDTH="94%" CELLPADDING="0" CELLSPACING="0" ALIGN="LEFT"> <TR> <TD WIDTH="35" ALIGN="LEFT"><IMG SRC="http://eto.imimg.com/gifs/error-pbl.gif" WIDTH="27" HEIGHT="22"></TD> <TD CLASS="trc w1 w3 g1">'+temp+'</TD> </TR> </TABLE>'; } } else { obr('forget_error').innerHTML='<TABLE BORDER="0" WIDTH="94%" CELLPADDING="0" CELLSPACING="0" ALIGN="LEFT"><TR><TD WIDTH="50" ALIGN="LEFT" CLASS="trc w1 w3 g1"><img src="http://eto.imimg.com/gifs/loading2.gif"><BR>Processing...</TD> </TR> </TABLE>'; } }
var str='/cgi/eto-usr-login.mp?email_both='+email_both+'&action=sendpass&modid=ETO';
xmlHttp.open("GET",str,true); xmlHttp.send(null); return false; } }
function hlpshow(){ obr('phonehlp').style.display="block"; } function hlphide(){ obr('phonehlp').style.display="none"; }