var httpObj=false;try{httpObj=new XMLHttpRequest}catch(trymicrosoft){try{httpObj=new ActiveXObject("Msxml2.XMLHTTP")}catch(othermicrosoft){try{httpObj=new ActiveXObject("Microsoft.XMLHTTP")}catch(failed){httpObj=false}}}var CityName=["Ahmedabad","Bangalore","Bhopal","Bhubaneswar","Calicut","Chandigarh","Chennai","Cochin","Coimbatore","Delhi","Ernakulam","Faridabad","Ghaziabad","Guntur","Gurgaon","Guwahati","Hyderabad","Indore","Jaipur","Kannur","Kanpur","Kolkata","Kottayam","Lucknow","Ludhiana","Madurai","Malapuram","Mangalore","Mumbai","Mysore","Nagpur","Nashik","Navi Mumbai","Noida","Palghat","Patna","Pune","Rajkot","Salem","Secunderabad","Surat","Thane","Thrissur","Tiruchy","Trivandrum","Vadodara","Vijayawada","Vishakhapatnam","Warangal"];function DisplayError(b){var a="newerror";document.getElementById(a).style.display="block";document.getElementById(a).innerHTML='<p style="margin:0 auto; color:#000000;">'+b+"</p>"}function HideError(){var a="newerror";document.getElementById(a).innerHTML="";document.getElementById(a).style.display="none"}function DisplayError1(b,a){document.getElementById(a).style.display="block";document.getElementById(a).innerHTML='<p style="margin:0 auto; color:#000000;">'+b+"</p>"}function HideError1(a){document.getElementById(a).innerHTML="";document.getElementById(a).style.display="none"}function ShowCross(a){var d="1px solid #d12f19",c="othercity",b="/images/delete.png";if(a=="city1"){document["city1"].src=b;document.getElementById(c).style.border=d;document.getElementById(c).style.background="#fff"}else{document[a].src=b;document.getElementById(a).style.border=d;document.getElementById(a).style.background="#fff"}}function RemoveCross(a){var d="1px solid #a1a1a1",c="othercity",b="/images/accept.png";if(a=="city1"){document["city1"].src=b;document.getElementById(c).style.border=d;document.getElementById(c).style.background="#fff"}else{document[a].src=b;document.getElementById(a).style.border=d;document.getElementById(a).style.background="#fff"}}function SetValue(a){document.getElementById("seterror").value=a}function GetInputName(a){var b="images/blank.gif";if(a=="f_name")document["l_name"].src=b;else if(a=="day"||a=="month"||a=="year")document["year"].src=b;else if(a=="maritalstatus")document["gender"].src=b;else{document[a].src=b;document.getElementById(a).style.border="1px solid red";document.getElementById(a).style.background="#fff"}}function UserNameDataBaseValidation(){var a="username",b="/ajax/username-check.asp?username="+trim(document.getElementById(a).value);httpObj.open("GET",b,true);httpObj.onreadystatechange=function(){if(httpObj.readyState==4)if(httpObj.responseText=="--1--"){ShowCross(a);DisplayError("Username is already registered. Log-in.");SetValue(httpObj.responseText)}else if(httpObj.responseText=="--2--"){ShowCross(a);DisplayError("Username is blocked. Contact Support.");SetValue(httpObj.responseText)}else{RemoveCross(a);HideError();SetValue(0)}};httpObj.send(null)}function UserNameValidation(){var d="seterror",a=false,b="username",c=trim(document.getElementById(b).value),e=UserNameValidity(c);if(c==""){ShowCross(b);return a}else if(e){ShowCross(b);DisplayError(e);return a}else{UserNameDataBaseValidation();if(document.getElementById(d).value=="--1--")return a;else if(document.getElementById(d).value=="--2--")return a}return true}function CheckUserName(){if(!UserNameValidation())return false;else return true}function CheckPassword(){var b="user_pass",a=trim(document.getElementById(b).value),d=inValidPassword(a),c=0;if(a=="")ShowCross(b);else if(d){ShowCross(b);DisplayError(d);c=1}else if(a!=""){RemoveCross(b);HideError()}if(a==""||c==1)return false;else return true}function CapitalizeMe(f){var a=f.toUpperCase(),d=a.substring(0,1),c=a.substring(1),b=c.toLowerCase(),e=d+b;return e}function CheckFirstName(){var d="#fff",f="1px solid #d12f19",e="/images/delete.png",c="l_name",a="f_name",b=trim(document.getElementById(a).value),g=NameValidity(b);document.getElementById(a).value=trim(CapitalizeMe(b));if(b==""){document[c].src=e;document.getElementById(a).style.border=f;document.getElementById(a).style.background=d;return false}else if(g){document[c].src=e;document.getElementById(a).style.border=f;document.getElementById(a).style.background=d;DisplayError(g);return false}else if(b!=""){document[c].src="images/blank.gif";document.getElementById(a).style.border="1px solid #a1a1a1";document.getElementById(a).style.background=d;HideError();return true}}function CheckLastName(){var a="l_name",b=trim(document.getElementById(a).value),c=NameValidity(b);document.getElementById(a).value=trim(CapitalizeMe(b));if(b==""){ShowCross(a);return false}else if(c){ShowCross(a);DisplayError(c);return false}else if(b!=""){document.getElementById(a).style.border="1px solid #a1a1a1";document.getElementById(a).style.background="#fff";if(CheckFirstName()){document[a].src="/images/accept.png";HideError();return true}}}function EmailDataBaseValidation(){var a="email",b="/ajax/check-email.asp?email="+document.getElementById(a).value;httpObj.open("GET",b,true);httpObj.onreadystatechange=function(){if(httpObj.readyState==4)if(httpObj.responseText=="--1--"){ShowCross(a);DisplayError("Email address is already registered. Log-in.");SetValue(httpObj.responseText)}else if(httpObj.responseText=="--2--"){ShowCross(a);DisplayError("Email address seems to be incorrect.");SetValue(httpObj.responseText)}else{RemoveCross(a);HideError();SetValue(0)}};httpObj.send(null)}function EmailValidation(){var c="seterror",a=false,b="email",d=trim(document.getElementById(b).value),e=EmailValidity(d);if(d==""){ShowCross(b);return a}else if(e){ShowCross(b);DisplayError(e);return a}else{EmailDataBaseValidation();if(document.getElementById(c).value=="--1--")return a;else if(document.getElementById(c).value=="--2--")return a}return true}function CheckEmail(){var a="mobile";if(document.getElementById(a).value==""){document.getElementById(a).focus();document.getElementById(a).value=""}else{var b=document.getElementById(a).value;document.getElementById(a).focus();document.getElementById(a).value=b}if(!EmailValidation())return false;else return true}function CheckCountry(a){if(a=="country"||a=="city"||a=="gender"||a=="maritalstatus"){if(document.getElementById(a).value==""){ShowCross(a);return false}if(document.getElementById(a).value!=""){RemoveCross(a);HideError();return true}}}function CheckDob(b){var f="/images/accept.png",a="",c="year",e="day",d="month";if(b==d||b==e||b==c){if(document.getElementById(b).value==a){document[c].src="/images/delete.png";document.getElementById(b).style.border="1px solid #d12f19";document.getElementById(b).style.background="#fff";return false}if(document.getElementById(b).value!=a)if(document.getElementById(e).value!=a||document.getElementById(d).value!=a||document.getElementById(c).value!=a)if(!CheckDate())return false;else return true;else{if(b==c&&document.getElementById(d).value!=a&&document.getElementById(e).value!=a)document[c].src=f;if(b==d&&document.getElementById(c).value!=a&&document.getElementById(e).value!=a)document[c].src=f;if(b==e&&document.getElementById(d).value!=a&&document.getElementById(c).value!=a)document[c].src=f;document.getElementById(b).border="1px solid #a1a1a1";document.getElementById(b).style.background="#ffffff";document.getElementById("error").innerHTML=a;document.getElementById("error").style.display="none";return true}}}function CheckDate(){var a="year",d=document.getElementById("day").value,b=document.getElementById("month").value,c=document.getElementById(a).value,e=c+"-"+b+"-"+d;age=qryHowOld(new Date,b+"/"+d+"/"+c);if(age.indexOf("Year")!=-1){age_count=age.substring(0,age.indexOf("Year"));age_count=parseInt(age_count);if(age_count<18){ShowCross(a);DisplayError("Your age must be 18+ to join!");return false}else{RemoveCross(a);HideError();return true}}}function qryHowOld(p,o){var e=" ",n=3.6e6,d,b,f,c,k,g,j,l,i,h,m,a;b=new Date(o);d=new Date(p);if(d>=b){c=d.getUTCHours()*n+d.getUTCMinutes()*6e4+d.getUTCSeconds()*1e3-(b.getUTCHours()*n+b.getUTCMinutes()*6e4+b.getUTCSeconds()*1e3);if(d.getUTCDate()>b.getUTCDate()||d.getUTCDate()==b.getUTCDate()&&c>=0)f=new Date(Date.UTC(d.getUTCFullYear(),d.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes(),b.getUTCSeconds()));else{f=new Date(Date.UTC(d.getUTCFullYear(),d.getUTCMonth()-1,b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes(),b.getUTCSeconds()));g=d.getUTCMonth()-1;if(g==-1)g=11;while(f.getUTCMonth()!=g)f.setUTCDate(f.getUTCDate()-1)}if(f.getUTCMonth()>=b.getUTCMonth()){g=f.getUTCMonth()-b.getUTCMonth();k=f.getUTCFullYear()-b.getUTCFullYear()}else{g=11-b.getUTCMonth()+f.getUTCMonth()+1;k=f.getUTCFullYear()-1-b.getUTCFullYear()}c=d-f;j=Math.floor(c/6.048e8);c=c-j*6.048e8;l=Math.floor(c/8.64e7);c=c-l*8.64e7;i=Math.floor(c/n);c=c-i*n;h=Math.floor(c/6e4);c=c-h*6e4;m=Math.floor(c/1e3);if(k>0)if(k>1)a=k.toString()+" Years";else a=k.toString()+" Year";else a="";if(g>0)if(g>1)a=a+e+g.toString()+" Months";else a=a+e+g.toString()+" Month";if(j>0)if(j>1)a=a+e+j.toString()+" Weeks";else a=a+e+j.toString()+" Week";if(l>0)if(l>1)a=a+e+l.toString()+" Days";else a=a+e+l.toString()+" Day";if(i>0)if(i>1)a=a+e+i.toString()+" Hours";else a=a+e+i.toString()+" Hour";if(h>0)if(h>1)a=a+e+h.toString()+" Minutes";else a=a+e+h.toString()+" Minute";if(m>0)if(m>1)a=a+e+m.toString()+" Seconds";else a=a+e+m.toString()+" Second"}else a="Not Born Yet";return a}function CheckSexStatus(a){var e="newerror",d="/images/accept.png",c="maritalstatus",b="gender";if(a==b||a==c){if(document.getElementById(a).value==""){document[b].src="/images/delete.png";document.getElementById(a).style.border="1px solid red";document.getElementById(a).style.background="#fff";return false}if(document.getElementById(a).value!=""){if(a==c&&document.getElementById(b).value!="")document[b].src=d;if(a==b&&document.getElementById(c).value!="")document[b].src=d;document.getElementById(a).border="1px solid #a1a1a1";document.getElementById(a).style.background="#ffffff";document.getElementById(e).innerHTML="";document.getElementById(e).style.display="none";return true}}}function MobileDataBaseValidation(){var a="mobile",b="/ajax/check-mobile.asp?mobile="+document.getElementById(a).value;httpObj.open("GET",b,true);httpObj.onreadystatechange=function(){if(httpObj.readyState==4)if(httpObj.responseText=="--1--"){ShowCross(a);DisplayError("Mobile is already registered. Log-in.");SetValue(httpObj.responseText)}else if(httpObj.responseText=="--2--"){ShowCross(a);DisplayError("Mobile is blocked. Contact Support.");SetValue(httpObj.responseText)}else{RemoveCross(a);HideError();SetValue(0)}};httpObj.send(null)}function MobileValidation(){var c="seterror",a=false,b="mobile",d=trim(document.getElementById(b).value),e=MobileValidity(d);if(d==""){ShowCross(b);return a}else if(e){ShowCross(b);DisplayError(e);return a}else{MobileDataBaseValidation();if(document.getElementById(c).value=="--1--")return a;else if(document.getElementById(c).value=="--2--")return a}return true}function CheckMobile(){if(!MobileValidation())return false;else return true}function CallCityValue(b){var d="</option>",c='<option value="';if(b=="Other")var a=': <select name="city" id="city" class="selectstyle" onchange="javascript:ChanageCityOnSelection(this.value);" style=" width:110px; font-family:lucida grande, tahoma, verdana, arial, sans-serif; font-size:11px; border:1px solid #a1a1a1;">';else var a=': <select name="city" id="city" class="selectstyle" onBlur="javascript:CheckCountry(this.name);" onchange="javascript:ChanageCityOnSelection(this.value);" style=" width:217px; font-family:lucida grande, tahoma, verdana, arial, sans-serif; font-size:11px; border:1px solid #a1a1a1; ">';for(i=0;i<CityName.length;i++)if(CityName[i]==b)a=a+c+CityName[i]+'" selected>'+CityName[i]+d;else a=a+c+CityName[i]+'">'+CityName[i]+d;if(b=="Other"){a=a+'<option value="Other" selected>Other City</option>';a=a+'</select>&nbsp;<input name="othercity" id="othercity" type="text" style="width:97px;" onfocus="ClearCity();" onBlur="SetOtherCity();" value="--Enter a city--"/><img width="16" height="16" name="city1" src="images/blank.gif" alt="" style="margin:0px 0px 4px 5px; vertical-align:middle;"/>'}else{a=a+'<option value="Other">Other City</option>';a=a+'</select><img width="16" height="16" name="city" src="images/blank.gif" alt="" style="margin:0px 0px 4px 4px; vertical-align:middle;"/>'}return a}function ClearCity(){var a="othercity";if(document.getElementById(a).value=="--Enter a city--")document.getElementById(a).value=""}function SetCityValue(a,b){document.getElementById(a).innerHTML=b}function ChanageCityOnSelection(b){var a="show_other_city";if(b=="Other"){setcity=CallCityValue(b);document.getElementById("show_city").style.display="none";document.getElementById(a).style.display="block";SetCityValue(a,setcity);document.getElementById("othercity").focus()}}function SetOtherCity(){var b="city1",d="--Enter a city--",a="othercity";if(document.getElementById(a).value=="")document.getElementById(a).value=d;var c=document.getElementById(a).value,e=CityValidity(c);if(c==""||c==d){ShowCross(b);return false}else if(e){ShowCross(b);DisplayError(e);return false}else{RemoveCross(b);return true}return true}function CheckCity(){var a="city";if(document.getElementById(a).value==""){ShowCross(a);return false}else if(document.getElementById(a).value=="Other")if(!SetOtherCity())return false;else return true;else return true}function CheckTC(){var a="agreement";if(document.getElementById(a).checked==false){ShowCross(a);return false}else{RemoveCross(a);return true}}function CheckCaptchaCode(){var a="user_verify";cp=trim(document.getElementById(a).value);if(cp==""){ShowCross(a);return false}else if(cp!="")if(cp=="2xna3"||cp=="bpi8g"||cp=="qeuw7"||cp=="5exru"||cp=="wgy84"||cp=="8isgw"||cp=="hzr4b"||cp=="83e7c"||cp=="5qi6e"||cp=="8n4qv"||cp=="anzae"||cp=="qekxj"||cp=="5379n"||cp=="yej65"||cp=="bmexa"||cp=="dnmej"||cp=="tkz76"||cp=="i3vs3"||cp=="g224j"||cp=="gr67t"||cp=="r3w4s"||cp=="juwhw"||cp=="y8uud"||cp=="rd7x9"||cp=="suzms"){document[a].src="/images/blank.gif";document.getElementById(a).style.border="1px solid #a1a1a1";document.getElementById(a).style.background="#fff";return true}else{ShowCross(a);return false}}var timer=0,timer1=0;function gotoRegStep2(){var e="signinform",d="none",c="block",b="ValidationDiv",g="user_verify",f="username",h="maritalstatus",a=false;if(!CheckFirstName())return a;else if(!CheckLastName())return a;else if(!EmailValidation())return a;else if(!MobileValidation())return a;else if(!CheckCity())return a;else if(!CheckCountry("city"))return a;else if(!CheckDob("day"))return a;else if(!CheckDob("month"))return a;else if(!CheckDob("year"))return a;else if(!CheckSexStatus("gender"))return a;else if(!CheckSexStatus(h))return a;else if(!UserNameValidation())return a;else if(!CheckPassword())return a;else if(!CheckCaptchaCode())return a;else if(!CheckTC("agreement"))return a;var m=document.getElementById(f).value,n=document.getElementById("f_name").value,p=document.getElementById("l_name").value,r=document.getElementById("email").value,t=document.getElementById("user_pass").value,i=document.getElementById("city").value;if(i=="Other")var l=document.getElementById("othercity").value;else var l="";var s=document.getElementById("month").value,v=document.getElementById("day").value,u=document.getElementById("year").value,w=u+"-"+s+"-"+v,o=document.getElementById("gender").value,j=document.getElementById(h).value,q=document.getElementById("mobile").value,k=document.getElementById(g).value;document.getElementById(b).style.display=c;document.getElementById("form").style.display=d;document.getElementById(e).innerHTML='<p style="margin:0 auto; margin-bottom:0px; font-weight:bold;font-family:lucida grande, tahoma, verdana, arial, sans-serif;font-size:20px; color:#1e56a1;">Verification in progress</p>';var x="/ajax/registration-step1.asp?f_name="+n+"&l_name="+p+"&email="+r+"&pass="+t+"&city="+i+"&othercity="+l+"&dob="+w+"&gender="+o+"&maritalstatus="+j+"&mobile="+q+"&username="+m+"&user_verify="+k+"&register=yes";httpObj.open("GET",x,true);httpObj.onreadystatechange=function(){var a="RishiRajNigam";if(httpObj.readyState==1||httpObj.readyState==2||httpObj.readyState==3)document.getElementById(b).innerHTML="<p style='text-align:center;padding-top:40px;padding-bottom:40px; font-weight:bold; font-family:lucida grande, tahoma, verdana, arial, sans-serif; font-size:12px;'><img src='/images/loadinfo.net.gif'></p>";if(httpObj.readyState==4){strContent=httpObj.responseText;if(strContent==1||strContent==3||strContent==5||strContent==7){document.getElementById(b).innerHTML="";document.getElementById(b).style.display=d;document.getElementById(e).innerHTML='<p style="margin:0 auto; color:#000000; margin-bottom:0px; color:#1e56a1; font-weight:bold;"> <img src="/images/itsfree.gif" /></p>';document.getElementById("form").style.display=c;if(strContent==1){ShowCross(f);DisplayError("UserName is already registered.")}if(strContent==3){ShowCross("email");DisplayError("Email is already registered.")}if(strContent==5){ShowCross("mobile");DisplayError("Mobile is already registered with us.")}if(strContent==7){ShowCross(g);DisplayError("Verification Code is wrong.")}}else{document.getElementById(b).style.display=d;document.getElementById(a).innerHTML=strContent;document.getElementById(e).innerHTML='<p style="margin:0 auto; margin-bottom:0px; font-weight:bold;font-family:lucida grande, tahoma, verdana, arial, sans-serif;font-size:20px; color:#1e56a1;">Confirm Mobile</p>';document.getElementById("form1").style.display=c;document.getElementById(a).style.display=c}}};httpObj.send(null)}function ShowTimerDivNew(){document.getElementById("FirstTimeVerificationCode").style.display="block"}function MobileDataBaseValidationSecondStep(a){httpObj.open("POST",url,true);httpObj.onreadystatechange=function(){if(httpObj.readyState==4)if(httpObj.responseText=="--1--"){ShowCross(a);DisplayError("Mobile is already registered. Log-in.");SetValue(httpObj.responseText)}else if(httpObj.responseText=="--2--"){ShowCross(a);DisplayError("Mobile is blocked. Contact Support.");SetValue(httpObj.responseText)}else{RemoveCross(a);HideError();SetValue(0)}};httpObj.send(null)}function MobileValidationSecondStep(b){var c="seterror",a=false,d=trim(document.getElementById(b).value),e=MobileValidity(d);if(d==""){ShowCross(b);return a}else if(e){ShowCross(b);DisplayError(e);return a}else if(document.getElementById(c).value=="--1--")return a;else if(document.getElementById(c).value=="--2--")return a;return true}function MobileNumberSame(){var b=document.getElementById("enteredmobile").value,a=document.getElementById("confirmmobile").value;if(b!=a){DisplayError("Mobile number mismatch.");return false}else{HideError();return true}}function CheckUserMobileNo(){var a="confirmmobile",b="enteredmobile";if(!MobileValidationSecondStep(b))return false;else if(!MobileValidationSecondStep(a))return false;var d=document.getElementById(b).value,c=document.getElementById(a).value;alert(d);alert(c);var e="/ajax/send-verification-code.asp?oldmobile="+d+"&newmobile="+c;httpObj.open("GET",e,true);httpObj.onreadystatechange=function(){var e="RishiRajNigam",d="block",b="mobilebutton";if(httpObj.readyState==1||httpObj.readyState==2||httpObj.readyState==3){document.getElementById(b).value="verifying";document.getElementById(b).disabled="true"}if(httpObj.readyState==4){var c=httpObj.responseText;if(c=="--1--"||c=="--4--"||c=="--5--"){document.getElementById("form1").style.display=d;document.getElementById(b).value="confirm";document.getElementById(b).disabled="";c=="--1--"&&DisplayError("Mobile number mismatch.");if(c=="--4--"){ShowCross(a);DisplayError("Mobile is already registered.")}if(c=="--5--"){ShowCross(a);DisplayError("Mobile is blocked.")}}else{HideError();document.getElementById(e).innerHTML=c;document.getElementById("signinform").innerHTML='<p style="margin:0 auto; margin-bottom:0px; font-weight:bold;font-family:lucida grande, tahoma, verdana, arial, sans-serif;font-size:20px; color:#1e56a1;">Enter the Code</p>';document.getElementById("form1").style.display=d;document.getElementById(e).style.display=d;timer=setTimeout(function(){ShowTimerDivNew()},3e4)}}};httpObj.send(null)}function captureHitEnter(e,func_with_param){var characterCode;if(e&&e.which){e=e;characterCode=e.which}else{e=event;characterCode=e.keyCode}if(characterCode==13){eval(func_with_param);return false}else return true}function VerificationCodeDataBaseValidation(){var a="code",b="/ajax/registration-step2.asp?code="+trim(document.getElementById(a).value);httpObj.open("GET",b,true);httpObj.onreadystatechange=function(){if(httpObj.readyState==4)if(httpObj.responseText=="--1--"){ShowCross(a);DisplayError("Wrong code entered");SetValue(httpObj.responseText)}else{RemoveCross(a);HideError();SetValue(0)}};httpObj.send(null)}function CodeValidation(){var a="code",b=document.getElementById(a).value,c=CodeValidity(b);if(b==""){ShowCross(a);return false}else if(c){ShowCross(a);DisplayError("Verification code entered seems to be incorrect.");return false}else{VerificationCodeDataBaseValidation();if(document.getElementById("seterror").value=="--1--")return false}return true}function CheckCode(){if(!CodeValidation())return false;else return true}function gotoRegStep3(){var e="form2",c="none",d="form1",b="block",a="ValidationDiv";document.getElementById(a).style.display=b;if(document.getElementById(d).style.display==b){document.getElementById(d).style.display=c;var f=d}if(document.getElementById(e).style.display==b){document.getElementById(e).style.display=c;var f=e}var g="/ajax/verify-mobile-code.asp?code="+document.getElementById("code").value+"&mNumber="+document.getElementById("mobileNumber").value;httpObj.open("GET",g,true);httpObj.onreadystatechange=function(){if(httpObj.readyState==1||httpObj.readyState==2||httpObj.readyState==3)document.getElementById(a).innerHTML="<p style='text-align:center;margin-top:40px;margin-bottom:40px;'><img src='/images/loadinfo.net.gif'><br><img src='/images/loading.gif'></p>";if(httpObj.readyState==4){var d=httpObj.responseText;if(httpObj.responseText=="--1--"){document.getElementById(a).innerHTML="";document.getElementById(a).style.display=c;document.getElementById(f).style.display=b;ShowCross("code");DisplayError("Wrong code entered.")}else location.href="/profile.asp"}};httpObj.send(null)}function ResendVerificationCode(e,f){var d="signinform",a="block",b="ValidationDiv",c="none";document.getElementById("newerror").style.display=c;document.getElementById(b).style.display=a;document.getElementById("form1").style.display=c;document.getElementById(d).innerHTML='<p style="margin:0 auto; margin-bottom:0px; font-weight:bold;font-family:lucida grande, tahoma, verdana, arial, sans-serif;font-size:20px; color:#1e56a1;">Verification in progress</p>';var g=urlpath+"ResendVerificationCode.php?mobile="+e+"&code="+f;httpObj.open("POST",g,true);httpObj.onreadystatechange=function(){var e="RishiRajNigam1";if(httpObj.readyState==1||httpObj.readyState==2||httpObj.readyState==3)document.getElementById(b).innerHTML="<p style='text-align:center;padding-top:40px;padding-bottom:40px;font-weight:bold; font-family:lucida grande, tahoma, verdana, arial, sans-serif; font-size:12px;'><img src='/images/loadinfo.net.gif'><br><br>Re-sending Code to<br> your mobile...</p>";if(httpObj.readyState==4){var f=httpObj.responseText;document.getElementById(e).innerHTML=f;document.getElementById(b).style.display=c;document.getElementById(d).innerHTML='<p style="margin:0 auto; margin-bottom:0px; font-weight:bold;font-family:lucida grande, tahoma, verdana, arial, sans-serif;font-size:20px; color:#1e56a1;">Enter the Code</p>';document.getElementById("form2").style.display=a;document.getElementById(e).style.display=a;document.getElementById("ShowVerificationDiv").style.display=a;timer1=setTimeout(function(){ShowTimerDivNew1()},3e4)}};httpObj.send(null)}function ShowTimerDivNew1(){document.getElementById("SecondTimeVerificationCode").style.display="block"}function LoadNextStep(){var a="RegistrationInvite.php";window.location=a}function RedirectRegistration(){location.href="registrationstep4.php";return false}function RemoveValue(a){if(a=="user_name2"&&document.getElementById(a).value=="username")document.getElementById(a).value="";if(a=="user_pass2"&&document.getElementById(a).value=="password")document.getElementById(a).value=""}function getInputLogin(a){if(trim(document.getElementById(a).value)==""){document.getElementById(a).style.border="1px solid #d12f19";document.getElementById(a).style.background="#fff";return false}if(document.getElementById(a).value!=""){document.getElementById(a).style.border="1px solid #a1a1a1";document.getElementById(a).style.background="#fff";return true}}function Login(){var b="Signing In...",a="loginbutton",d="user_pass2",c="user_name2";if(!getInputLogin(c))return false;else if(!getInputLogin(d))return false;var f=document.getElementById(c).value,g=document.getElementById(d).value,e=document.getElementById("agreement2").checked,h="/ajax/login-verification.asp?name="+f+"&pass="+g+"&agreement="+e;document.getElementById(a).value=b;document.getElementById(a).disabled="true";httpObj.open("GET",h,true);httpObj.onreadystatechange=function(){if(httpObj.readyState==1||httpObj.readyState==2||httpObj.readyState==3){document.getElementById(a).value=b;document.getElementById(a).disabled="true"}if(httpObj.readyState==4){var c=httpObj.responseText;if(c==1){document.getElementById(a).value="Login";document.getElementById(a).disabled="";location.href="/login.asp"}else if(c==2){document.getElementById(a).value="Login";document.getElementById(a).disabled="";location.href="/code-check.asp"}else location.href="/profile.asp"}};httpObj.send(null);return false}function CheckForgotPasswordUserName(){if(!getInputLogin("user_name1"))return false;else return true}function CheckForgotPasswordMobile(){var b="forgotpassworderror",a="mobile1",c=trim(document.getElementById(a).value),d=MobileValidity(c);if(c==""){ShowCross(a);return false}else if(d){ShowCross(a);DisplayError1(d,b);return false}else{RemoveCross(a);HideError1(b);return true}}function ForgotPasswordRegistration(){var a="ForgotPaswordFormDiv",b="user_name1";if(!CheckForgotPasswordUserName())return false;else if(!CheckForgotPasswordMobile())return false;var c=document.getElementById(b).value,d=document.getElementById("mobile1").value,e=urlpath+"ForgotPassword.php?username="+c+"&mobile="+d;httpObj.open("POST",e,true);document.getElementById(a).style.display="none";httpObj.onreadystatechange=function(){var e="block",f="ForgotPaswordLoadingDiv";if(httpObj.readyState==1||httpObj.readyState==2||httpObj.readyState==3)document.getElementById(f).style.display=e;if(httpObj.readyState==4){document.getElementById(f).style.display="none";if(httpObj.responseText=="--No--"){document.getElementById(a).style.display=e;document.getElementById(b).value=c;document.getElementById("mobile1").value=d;DisplayError1("Information provided is not correct!","forgotpassworderror");return false}else{document.getElementById(a).style.display=e;document.getElementById(a).innerHTML='<p style=" align:center;margin-top:20px;margin-bottom:20px;  font-size:11px;">Your password has been sent to your email account.</p>'}}};httpObj.send(null)}function HideOverDiv(a){document.getElementById("NetworkAlertDiv").style.display="none";document.getElementById("mask_div").style.visibility="hidden";document.getElementById("city").disabled="";document.getElementById("day").disabled="";document.getElementById("month").disabled="";document.getElementById("year").disabled="";document.getElementById("gender").disabled="";document.getElementById("maritalstatus").disabled="";a=="click"&&document.getElementById("f_name").focus();var b=urlpath+"OverlayClick.php?type="+a;httpObj.open("POST",b,true);httpObj.onreadystatechange=function(){};httpObj.send(null)};