var IMG_SERVER="http://img.makaan.com";var ALERT_IMG="http://img.makaan.com/images/alert.gif";var SERVER_PATH="http://www.makaan.com";var IMG_SERVER_PROPERTY="http://www.makaan.com";var IMG_SERVER_LOGO="http://www.makaan.com";var BODY_COLOR="#D4EBFA";var TAX_RATE=10.3;var borderline="#FFFFFF";if(screen.width=="800"){var tablewidth="783"}else{var tablewidth="1007"}if(screen.width>="1024"){var tablewidths="998"}else{var tablewidths="775"}function changetab(B,A){if(A==true){if(B=="reg"){document.getElementById("menu-reg-mid").style.color="#FFFFFF";document.getElementById("menu-reg-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-reg-left").style.backgroundPosition="0px -29px";document.getElementById("menu-reg-right").style.backgroundPosition="0px -29px"}else{if(B=="search"){document.getElementById("menu-search-mid").style.color="#FFFFFF";document.getElementById("menu-search-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-search-left").style.backgroundPosition="0px -29px";document.getElementById("menu-search-right").style.backgroundPosition="0px -29px"}else{if(B=="list"){document.getElementById("menu-list-mid").style.color="#FFFFFF";document.getElementById("menu-list-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-list-left").style.backgroundPosition="0px -29px";document.getElementById("menu-list-right").style.backgroundPosition="0px -29px"}else{if(B=="req"){document.getElementById("menu-req-mid").style.color="#FFFFFF";document.getElementById("menu-req-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-req-left").style.backgroundPosition="0px -29px";document.getElementById("menu-req-right").style.backgroundPosition="0px -29px"}else{if(B=="adv"){document.getElementById("menu-adv-mid").style.color="#FFFFFF";document.getElementById("menu-adv-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-adv-left").style.backgroundPosition="0px -29px";document.getElementById("menu-adv-right").style.backgroundPosition="0px -29px"}else{if(B=="loan"){document.getElementById("menu-loan-mid").style.color="#FFFFFF";document.getElementById("menu-loan-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-loan-left").style.backgroundPosition="0px -29px";document.getElementById("menu-loan-right").style.backgroundPosition="0px -29px"}else{if(B=="blp"){document.getElementById("menu-blp-mid").style.color="#FFFFFF";document.getElementById("menu-blp-mid").style.backgroundPosition="0px -29px";document.getElementById("menu-blp-left").style.backgroundPosition="0px -29px";document.getElementById("menu-blp-right").style.backgroundPosition="0px -29px"}}}}}}}}else{if(B=="reg"){document.getElementById("menu-reg-mid").style.color="#000000";document.getElementById("menu-reg-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-reg-left").style.backgroundPosition="0px 0px";document.getElementById("menu-reg-right").style.backgroundPosition="0px 0px"}else{if(B=="search"){document.getElementById("menu-search-mid").style.color="#000000";document.getElementById("menu-search-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-search-left").style.backgroundPosition="0px 0px";document.getElementById("menu-search-right").style.backgroundPosition="0px 0px"}else{if(B=="list"){document.getElementById("menu-list-mid").style.color="#000000";document.getElementById("menu-list-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-list-left").style.backgroundPosition="0px 0px";document.getElementById("menu-list-right").style.backgroundPosition="0px 0px"}else{if(B=="req"){document.getElementById("menu-req-mid").style.color="#000000";document.getElementById("menu-req-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-req-left").style.backgroundPosition="0px 0px";document.getElementById("menu-req-right").style.backgroundPosition="0px 0px"}else{if(B=="adv"){document.getElementById("menu-adv-mid").style.color="#000000";document.getElementById("menu-adv-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-adv-left").style.backgroundPosition="0px 0px";document.getElementById("menu-adv-right").style.backgroundPosition="0px 0px"}else{if(B=="loan"){document.getElementById("menu-loan-mid").style.color="#000000";document.getElementById("menu-loan-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-loan-left").style.backgroundPosition="0px 0px";document.getElementById("menu-loan-right").style.backgroundPosition="0px 0px"}else{if(B=="blp"){document.getElementById("menu-blp-mid").style.color="#000000";document.getElementById("menu-blp-mid").style.backgroundPosition="0px 0px";document.getElementById("menu-blp-left").style.backgroundPosition="0px 0px";document.getElementById("menu-blp-right").style.backgroundPosition="0px 0px"}}}}}}}}}function validate_search(frm){var city=eval("document."+frm+".city.value");if(city==""){alert("Please select the city");eval("document."+frm+".city.focus();");return false}return true}function setBudget(H,A,F){var G;var E=(navigator.appName=="Microsoft Internet Explorer")?-1:null;var B=H.form.elements.budget;while(B.options.length){B.remove(0)}var C=H.options[H.selectedIndex].value;var I=budgetval[C];if(C!=""){for(var D=0;D<I.length;D++){G=document.createElement("option");G.text=I[D].text;G.value=I[D].value;B.add(G,E);if(C==1&&I[D].value==A){G.selected=true}else{if(I[D].value==F){G.selected=true}}}}}function setBudget2(chooser,def_sale,def_rent,find,frm_name,price_from,price_to){if(!price_from){price_from=0}if(!price_to){price_to=0}if(find==0){chooser=chooser}else{if(eval("document."+frm_name+".property_for.value")=="1"){chooser="1"}else{if(eval("document."+frm_name+".property_for.value")=="2"){chooser="2"}else{chooser="1"}}}var newElem;var where=(navigator.appName=="Microsoft Internet Explorer")?-1:null;var cityChooser=eval("document."+frm_name+".elements['budget_from']");if(find!=1){while(cityChooser.options.length){cityChooser.remove(0)}var choice=chooser;var db=budgetval[choice];newElem=document.createElement("option");if(chooser=="2"){newElem.text="<5000";newElem.value="4999"}else{newElem.text="<10 Lacs";newElem.value="999999"}cityChooser.add(newElem,where);if(choice!=""){var selfound=0;for(var i=0;i<db.length;i++){if(selfound==0&&chooser=="2"&&price_from=="4999"){newElem.selected=true;selfound=1}else{if(selfound==0&&chooser=="1"&&price_from=="999999"){newElem.selected=true;selfound=1}}newElem=document.createElement("option");newElem.text=db[i].text;newElem.value=db[i].value;if(i==(db.length-1)){newElem.text=">"+newElem.text}cityChooser.add(newElem,where);if(selfound==0&&db[i].value==price_from){newElem.selected=true;selfound=1}else{if(selfound==0&&chooser==1&&db[i].value=="3000000"){newElem.selected=true}else{if(selfound==0&&chooser==2&&db[i].value=="15000"){newElem.selected=true}}}}}}var cityChooser2=eval("document."+frm_name+".elements['budget_to']");while(cityChooser2.options.length){cityChooser2.remove(0)}var choice=chooser;var db=budgetval[choice];var start=0;if(find==0){if(chooser==1){start=4}else{start=3}}else{start=cityChooser.selectedIndex}var maxoptions=cityChooser.options.length-1;if(start==0||start==maxoptions){newElem=document.createElement("option");newElem.text="Max Price";newElem.value="";cityChooser2.add(newElem,where);cityChooser2.disabled=true}else{if(choice!=""){var selfound=0;for(var i=start;i<db.length;i++){newElem=document.createElement("option");newElem.text=db[i].text;newElem.value=db[i].value;cityChooser2.add(newElem,where);if(db[i].value==price_to){newElem.selected=true;selfound=1}else{if(selfound==0&&choice==1&&db[i].value==def_sale){newElem.selected=true}else{if(selfound==0&&db[i].value==def_rent){newElem.selected=true}}}}cityChooser2.disabled=false}}}function submitonce(A){if(document.all||document.getElementById){for(i=0;i<A.length;i++){var B=A.elements[i];if(B.type.toLowerCase()=="submit"||B.type.toLowerCase()=="reset"||B.name.toLowerCase()=="submit"){B.disabled=true}}}}function check_block_email(A){if(A==""){return"Please enter your email."}else{if(A.indexOf("@shaadi.com")!=-1||A.indexOf("@makaan.com")!=-1||A.indexOf("@shadi.com")!=-1||A.indexOf("@peoplegroup.in")!=-1||A.indexOf("@peoplegroup.net")!=-1||A.indexOf("@makan.com")!=-1||A.indexOf("@2bhk.com")!=-1||A.indexOf("@mauj.com")!=-1||A.indexOf("@shaaditimes.com")!=-1||A.indexOf("@shaditimes.com")!=-1||A.indexOf("@peopleinteractive.in")!=-1){return"This email is not allowed, please enter an alternate email."}else{return""}}}function clear_div(B){var A=document.getElementById(B);if(A){A.innerHTML=""}}function validateNumber(A){if(A.length<1){return false}chk1="1234567890";for(i=0;i!=A.length;i++){ch1=A.charAt(i);rtn1=chk1.indexOf(ch1);if(rtn1==-1){return false;break}}return true}function validatesymbol(formName,fieldName){var doc="document.";a=eval(doc+formName+"."+fieldName);fieldValue=eval(doc+formName+"."+fieldName+".value");chk1="!@# $%^*+=|~`{}[]:;<>?/_,()";chk3="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";for(j=0;j!=fieldValue.length;j++){ch1=fieldValue.charAt(j);ch2=fieldValue.charAt(0);rtn1=chk1.indexOf(ch1);rtn3=chk3.indexOf(ch2);if(rtn3<0){eval(doc+formName+"."+fieldName+".focus()");return false;break}else{if(rtn1!=-1){eval(doc+formName+"."+fieldName+".focus()");return false;break}}}return true}function reg_validatesymbol(formName,fieldName){var doc="document.";a=eval(doc+formName+"."+fieldName);fieldValue=eval(doc+formName+"."+fieldName+".value");chk1="!# $%^*+=&|~`{}[]:;<>?/,()";chk3="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890@._-";for(j=0;j!=fieldValue.length;j++){ch1=fieldValue.charAt(j);ch2=fieldValue.charAt(0);rtn1=chk1.indexOf(ch1);rtn3=chk3.indexOf(ch2);if(rtn3<0){eval(doc+formName+"."+fieldName+".focus()");return false;break}else{if(rtn1!=-1){eval(doc+formName+"."+fieldName+".focus()");return false;break}}}return true}function clear_checkbox(frm,field,data){var val=eval("document."+frm+"."+field+".value");if(data==val){eval("document."+frm+"."+field+".value=''")}}function is_valid_day(A,B,D){if(((D%400)==0||(D%4)==0)&&(D%100)!=0){var C="312931303130313130313031"}else{var C="312831303130313130313031"}if(A!=-1){if(parseInt(B)>parseInt(C.substring(2*A,2*A+2))){return false}}return true}var i,j,strlen;var strchar=new String("");function LTrim(A){A=new String(A);for(i=0;i<A.length;i++){strchar=A.charAt(i);if((strchar==" ")||(strchar=="\t")||(strchar=="\n")||(strchar=="\r")){A=A.substr(i+1);i--}else{break}}return A}function RTrim(A){A=new String(A);for(i=A.length-1;i>-1;i--){strchar=A.charAt(i);if((strchar==" ")||(strchar=="\t")||(strchar=="\n")||(strchar=="\r")){A=A.substr(0,i)}else{break}}return A}function Trim(A){return LTrim(RTrim(A))}function validatesymbolwithspace(formName,fieldName){var doc="document.";a=eval(doc+formName+"."+fieldName);fieldValue=eval(doc+formName+"."+fieldName+".value");chk1="!@#$%^*+=|~`{}[]:;<>?/,1234567890";chk3="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(j=0;j!=fieldValue.length;j++){ch1=fieldValue.charAt(j);ch2=fieldValue.charAt(0);rtn1=chk1.indexOf(ch1);rtn3=chk3.indexOf(ch2);if(rtn3<0){eval(doc+formName+"."+fieldName+".focus()");return false;break}else{if(rtn1!=-1){eval(doc+formName+"."+fieldName+".focus()");return false;break}}}return true}function check_name(D){var C=D;var B="!@#&$%^*+=|~`{}[]:;<>?/,";var E="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var A=true;for(j=0;j!=C.length;j++){ch1=C.charAt(j);ch2=C.charAt(0);rtn1=B.indexOf(ch1);rtn3=E.indexOf(ch2);if(rtn3<0){A=false;break}else{if(rtn1!=-1){A=false;break}}}return A}function check_name_num(D){var C=D;var B="!@#&$%^*+=|~`{}[]:;<>?/,1234567890";var E="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var A=true;for(j=0;j!=C.length;j++){ch1=C.charAt(j);ch2=C.charAt(0);rtn1=B.indexOf(ch1);rtn3=E.indexOf(ch2);if(rtn3<0){A=false;break}else{if(rtn1!=-1){A=false;break}}}return A}function validatesymbolalphanumericwithspace(formName,fieldName){var doc="document.";a=eval(doc+formName+"."+fieldName);fieldValue=eval(doc+formName+"."+fieldName+".value");chk1="!@#$%^*+=|~`{}[]:;<>?/,";chk3="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890";for(j=0;j!=fieldValue.length;j++){ch1=fieldValue.charAt(j);ch2=fieldValue.charAt(0);rtn1=chk1.indexOf(ch1);rtn3=chk3.indexOf(ch2);if(rtn3<0){eval(doc+formName+"."+fieldName+".focus()");return false;break}else{if(rtn1!=-1){eval(doc+formName+"."+fieldName+".focus()");return false;break}}}return true}function validatesymbolalcitylocalitycheck(formName,fieldName){var doc="document.";a=eval(doc+formName+"."+fieldName);fieldValue=eval(doc+formName+"."+fieldName+".value");chk1="!@#$%^*+=|~`{}[]:;<>?/,1234567890";chk3="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(j=0;j!=fieldValue.length;j++){ch1=fieldValue.charAt(j);ch2=fieldValue.charAt(0);rtn1=chk1.indexOf(ch1);rtn3=chk3.indexOf(ch2);if(rtn3<0){eval(doc+formName+"."+fieldName+".focus()");return false;break}else{if(rtn1!=-1){eval(doc+formName+"."+fieldName+".focus()");return false;break}}}return true}function check_other_city(D,B,A){var F=document.getElementById(B);var C=D.indexOf("other");if(C==0){F.style.display=""}else{F.style.display="none"}if(A!=""){var E=document.getElementById(A);E.style.display="none"}}function change_other_location(A,C){var B=document.getElementById(C);if(A=="other"){B.style.display=""}else{B.style.display="none"}}function check_character_limit(frm,field,show_div,maxKeys,break_it){var str=eval("document."+frm+"."+field+".value");var showstr="";var len=str.length;var showstr=len+" characters of "+maxKeys+" entered";if(parseInt(len)>parseInt(maxKeys)){str=str.substring(0,maxKeys);eval("document."+frm+"."+field+".value='"+str+"'");showstr="(Max "+maxKeys+" Characters)"}document.getElementById(show_div).innerHTML=showstr}function cleardivs(){var A=document.getElementsByTagName("div");for(var B=0;B<A.length;B++){if(A[B].className=="texterror"){A[B].innerHTML="&nbsp;"}}}function isValidEmail(A){if(!(/^[^a-zA-Z]/.test(A))&&(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(A))){return true}else{return false}}function changecountrycode(new_value,form,target_field,target_field2){var myString="+"+new String(new_value);var splitString=myString.split("|");eval("document."+form+"."+target_field+".value='"+splitString[0]+"'");if(target_field2!=""){eval("document."+form+"."+target_field2+".value='"+splitString[0]+"'")}}function ValidateNo(E,C){for(var D=0;D<E.length;D++){var B=E.charAt(D);var F=false;for(var A=0;A<C.length;A++){if(B==C.charAt(A)){F=true}}if(!F){return false}}return true}function chk_isoption_selected(formname,fieldname){fieldlength=parseInt(eval("document."+formname+"."+fieldname+".length"));for(i=0;i<fieldlength;i++){if(eval("document."+formname+"."+fieldname+"["+i+"].checked")){return true}}return false}function hasWhiteSpace(A){var B=A.split(" ");if(B.length>1){return true}else{return false}}function isLogin(){cleardivs();var str=document.frm_login.login.value;var tmp_arr=document.getElementsByTagName("div");var isok=true;var set_focus="";if(str==""){document.frm_login.login.focus();tmp_arr.div_login.innerHTML="<img src='"+ALERT_IMG+"' width='10' align='absmiddle' height='10' vspace='3' border=0>&nbsp;Please enter an username";isok=false;if(set_focus==""){set_focus="login"}}var str2=document.frm_login.password.value;if(str2==""){document.frm_login.password.focus();tmp_arr.div_password.innerHTML="<img src='"+ALERT_IMG+"' width='10' align='absmiddle' height='10' vspace='3' border=0>&nbsp;Please enter a password";isok=false;if(set_focus==""){set_focus="password"}}if(isok==false){eval("document.frm_login."+set_focus+".focus();");return false}else{return true}}function formatNumber(B,C){var A=1;for(i=1;i<=C;i++){A=A*10}var D=(Math.round(B*A)/A).toFixed(C);return D}function isNumberKey(B,C){if(!C){C=0}var A=(B.which)?B.which:event.keyCode;if(A>31&&(A<48||A>57)&&A!=46&&C==1){return false}else{if(A>31&&(A<48||A>57)&&C==0){return false}}return true}function acceptNumber(B,G){if(!G){G=0}var A=(B.which)?B.which:event.keyCode;var C="0";if(G=="0"){var F=["48","49","50","51","52","53","54","55","56","57","96","97","98","99","100","101","102","103","104","105","8","46","13","9","116","37","38","39","40"]}else{var F=["48","49","50","51","52","53","54","55","56","57","96","97","98","99","100","101","102","103","104","105","8","46","13","9","116","37","38","39","40","190","110"]}var E=F.length;for(var D=0;D<E;D++){if(F[D]==A){C="1"}}if(C=="1"){return true}else{return false}}function createAjaxObject(D){var B=new Array();B[D]=false;try{B[D]=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{B[D]=new ActiveXObject("Microsoft.XMLHTTP")}catch(A){B[D]=false}}if(!B[D]&&typeof XMLHttpRequest!="undefined"){B[D]=new XMLHttpRequest()}return B[D]}onerror=handleErrors;var msg=null;function handleErrors(C,B,A){document.status="";return true}function trim(B){var A=B;return A.replace(/^\s+/,"").replace(/\s+$/,"")}function ltrim(A){return A.replace(/^\s*/,"")}function rtrim(A){return A.replace(/\s*$/,"")}function ValidateNo(E,C){for(var D=0;D<E.length;D++){var B=E.charAt(D);var F=false;for(var A=0;A<C.length;A++){if(B==C.charAt(A)){F=true}}if(!F){return false}}return true}function checkforgot(){if(document.frmforgot.email.value==""){if(document.frmforgot.username.value==""){alert("Please enter username !");document.frmforgot.username.focus();return false}}if(document.frmforgot.email.value!=""){if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(frmforgot.email.value)){}else{alert("Invalid E-mail Address ! Please Re-Enter ");document.frmforgot.email.focus();return(false)}}}function validatesymbolwithspace(formName,fieldName){var doc="document.";a=eval(doc+formName+"."+fieldName);fieldValue=eval(doc+formName+"."+fieldName+".value");chk1="!@#$%^*+=|~`{}[]:;<>?/,1234567890";chk3="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(j=0;j!=fieldValue.length;j++){ch1=fieldValue.charAt(j);ch2=fieldValue.charAt(0);rtn1=chk1.indexOf(ch1);rtn3=chk3.indexOf(ch2);if(rtn3<0){eval(doc+formName+"."+fieldName+".focus()");return false;break}else{if(rtn1!=-1){eval(doc+formName+"."+fieldName+".focus()");return false;break}}}return true}function format_indian_currency(E){myvalue=E.split(".");if(myvalue[0].length>3){orginalnum=myvalue[0];num="";for(var C=orginalnum.length-1;C>=0;C--){num+=orginalnum.charAt(C)}var A=3;var B;B="";for(var D=(num.length-1);D>=0;D--){if(D%A==0&&D>0){B+=",";A=2}B+=num.charAt(D)}if(num.length%2==0){return B}else{return B.substr(1)}}else{return myvalue[0]}}function noenter(C,B,D,A){if(!A){A=0}if((window.event&&window.event.keyCode==13)||(C&&C.which==13)){if(B=="1"){return check_contactemail_form(D)}else{if(B=="2"){return check_contactsms_form(D)}else{if(B=="3"){return check_login(A)}else{if(B=="4"){doshortlist(D)}else{if(B=="5"){return check_viewpagelogin()}else{return false}}}}}}}function advertisesolution(){document.getElementById("msg_error").innerHTML="&nbsp;";if(document.frm_adds.name.value==""){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your name.";return false}else{if(document.frm_adds.name.value.length<"4"){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter minimum 4 chr.";return false}else{if(!check_name(document.frm_adds.name.value)){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your name without any special characters.";return false}else{if(validatesymbolwithspace("frm_adds","name","abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890","!@#$%^*+=|~{}[];<>?/,()")==false){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your name without any special characters.";return false}}}}if(document.frm_adds.city.value==""){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select your city.";return false}if(document.frm_adds.mobile.value==""){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your mobile number.";return false}if(document.frm_adds.mobile.value.length<6){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid mobile number.";return false}else{if(isNaN(document.frm_adds.mobile.value)&&document.frm_adds.mobile.value!=""){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid mobile number.";return false}else{if(document.frm_adds.mobile.value.substring(0,1)!=9&&document.frm_adds.mobile.value.substring(0,1)!=8&&document.frm_adds.mobile.value.substring(0,1)!=7){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid mobile number.";return false}}}if(document.frm_adds.email.value==""){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your email.";return false}else{if(!isValidEmail(document.frm_adds.email.value)){document.getElementById("msg_error").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid email.";return false}}document.getElementById("asubmit").disabled=true;document.getElementById("asubmit").src=IMG_SERVER+"/images/submit-upper-deact.gif";return true}function check_contact_value(propertyid){var sendermessage=eval("document.frm_search.msg3_"+propertyid+".value");if(sendermessage!=""){document.getElementById("div_err-message_"+propertyid).innerHTML="";makerequest("/ssi/ajax/check-abusive.php?value="+escape(sendermessage),"div_err-message_"+propertyid)}}function advertisesolution_mailer(){var A=0;document.getElementById("msg_name").innerHTML="";document.getElementById("msg_mobile").innerHTML="";document.getElementById("msg_email").innerHTML="";document.getElementById("msg_city").innerHTML="";if(document.frm_adds.name.value==""){document.getElementById("msg_name").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your name.";A+=1}else{if(document.frm_adds.name.value.length<"4"){document.getElementById("msg_name").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter minimum 2 chr.";A+=1}else{if(!check_name(document.frm_adds.name.value)){document.getElementById("msg_name").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your name without any special characters.";A+=1}else{if(validatesymbolwithspace("frm_adds","name","abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890","!@#$%^*+=|~{}[];<>?/,()")==false){document.getElementById("msg_name").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your name without any special characters.";A+=1}}}}if(document.frm_adds.mobile.value==""){document.getElementById("msg_mobile").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your contact number.";A+=1}if(document.frm_adds.mobile.value.length<"6"){document.getElementById("msg_mobile").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid contact number.";A+=1}else{if(isNaN(document.frm_adds.mobile.value)&&document.frm_adds.mobile.value!=""){document.getElementById("msg_mobile").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid mobile number.";A+=1}}if(document.frm_adds.city.value==""){document.getElementById("msg_city").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select your city.";A+=1}else{if(document.frm_adds.city.value=="OTH"&&document.frm_adds.city_other.value==""){document.getElementById("msg_city").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your city.";A+=1}else{if(validatesymbolwithspace("frm_adds","city_other","abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890","!@#$%^*+=|~{}[];<>?/,()")==false){document.getElementById("msg_city").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your city without any special characters.";A+=1}}}if(document.frm_adds.email.value==""){document.getElementById("msg_email").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your email.";A+=1}if(!isValidEmail(document.frm_adds.email.value)&&document.frm_adds.email.value!=""){document.getElementById("msg_email").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid email.";A+=1}if(A>0){return false}else{return true}}function opt_other_city(A){if(A=="OTH"){document.getElementById("other_city").style.display=""}else{document.getElementById("other_city").style.display="none"}};
