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(I,A,G){var H;var F=(navigator.appName=="Microsoft Internet Explorer")?-1:null;var B=I.form.elements.budget;while(B.options.length){B.remove(0)}var C=I.options[I.selectedIndex].value;var J=budgetval[C];if(C!=""){for(var D=0;D<J.length;D++){H=document.createElement("option");H.text=J[D].text;H.value=J[D].value;B.add(H,F);if(C==1&&J[D].value==A){H.selected=true}else{if(J[D].value==G){H.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 isLeapYear(A){return new Date(A,2-1,29).getDate()==29}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 showdiv_temp(desc_div,divimg){var tmp_arr=document.getElementsByTagName("div");for(var i=0;i<tmp_arr.length;i++){if(tmp_arr[i].className=="icon"){tmp_arr[i].innerHTML="&nbsp;&nbsp;&nbsp;"}}if(divimg!=""){var imgname='<img src="'+IMG_SERVER+'/images/icon.gif" width="15" height="13" alt="Locator" title="Locator"/>';eval("document.getElementById('"+divimg+"').innerHTML='"+imgname+"'")}}function showleft_icon(divimg){var tmp_arr=document.getElementsByTagName("div");for(var i=0;i<tmp_arr.length;i++){if(tmp_arr[i].className=="icon"){tmp_arr[i].innerHTML="&nbsp;"}}if(divimg!=""){var imgname='<img src="'+IMG_SERVER+'/images/icon.gif" width="15" height="13" alt="Locator" title="Locator"/>';eval("document.getElementById('"+divimg+"').innerHTML='"+imgname+"'")}}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 F="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var A=true;for(j=0;j!=C.length;j++){ch1=C.charAt(j);ch2=C.charAt(0);rtn1=B.indexOf(ch1);rtn3=F.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 F="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var A=true;for(j=0;j!=C.length;j++){ch1=C.charAt(j);ch2=C.charAt(0);rtn1=B.indexOf(ch1);rtn3=F.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 G=document.getElementById(B);var C=D.indexOf("other");if(C==0){G.style.display=""}else{G.style.display="none"}if(A!=""){var F=document.getElementById(A);F.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(F,C){for(var D=0;D<F.length;D++){var B=F.charAt(D);var G=false;for(var A=0;A<C.length;A++){if(B==C.charAt(A)){G=true}}if(!G){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 hasWhiteSpace12(A){reWhiteSpace=new RegExp(/^\s+$/);alert(reWhiteSpace);if(reWhiteSpace.test(A)){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 addCommas(B){B=B.replace(/,/g,"");A=/^(\s*)([\W\w]*)(\b\s*$)/;if(A.test(B)){B=B.replace(A,"$2")}var A=new RegExp("(-?[0-9]+)([0-9]{3})");while(A.test(B)){B=B.replace(A,"$1,$2")}return B}function removeCharacters(C,B){var A=new RegExp(B,"gi");C=C.replace(/,/g,"");return C.replace(A,"")}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,H){if(!H){H=0}var A=(B.which)?B.which:event.keyCode;var C="0";if(H=="0"){var G=["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 G=["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 F=G.length;for(var D=0;D<F;D++){if(G[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 checkforgetpassprocess(A){makerequestfastfree("/ssi/ajax/forgot-password-process-fast-free.php?id="+A,"div_forgetpassform")}function checkallmemberdetails(C,B,A){makerequest("ssi/ajax/member_details.php?id="+C+"&column="+B+"&is_premium="+A,"div_"+C)}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 return_divmessages(A){msg='<table width="80%" border="0" cellpadding="0" cellspacing="0"><tr><td><img src="'+IMG_SERVER+'/images/divbordertop_left.gif" width="21" height="23"></td><td>&nbsp;</td><td><img src="'+IMG_SERVER+'/images/divbordertop_right.gif" width="21" height="23" align="right"></td></tr><tr><td colspan="3" align="center" class="smalltext brown">&nbsp;';msg+=A;msg+='</td></tr><tr><td><img src="'+IMG_SERVER+'/images/divborderbottom_left.gif" width="21" height="23"></td><td>&nbsp;</td><td><img src="'+IMG_SERVER+'/images/divborderbottom_right.gif" width="21" height="23" align="right"></td></tr></table>';return msg}function format_indian_currency(F){myvalue=F.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 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 check_sms_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 check_login(A){if(!A){A=0}if(document.frm_search.userid.value==""&&document.frm_search.password.value==""){document.getElementById("div_loginmsg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your username and password.";document.frm_search.userid.focus()}else{if(document.frm_search.userid.value==""){document.getElementById("div_loginmsg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your username.";document.frm_search.userid.focus()}else{if(document.frm_search.password.value==""){document.getElementById("div_loginmsg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your password.";document.frm_search.password.focus()}else{var B=document.frm_search.show.value;var D=document.frm_search.propertyid.value;document.getElementById("div_loginmsg").innerHTML="";var C="/ssi/ajax/ajax-content.php?process=login&userid="+document.frm_search.userid.value+"&password="+document.frm_search.password.value;if(A==1){ajaxlogin(C,"div_loginmsg","","","shortlist",B,D,A)}else{ajaxlogin(C,"div_loginmsg","","","shortlist",B,D)}}}}return false}function opt_other_city(A){if(A=="OTH"){document.getElementById("other_city").style.display=""}else{document.getElementById("other_city").style.display="none"}}function clearValidation(frm){formObj=eval("document."+frm);var msg="";var val="1";for(var i=1;i<formObj.length;i++){fldObj=formObj.elements[i];if(fldObj.type.toUpperCase()=="TEXT"||fldObj.type.toUpperCase()=="SELECT"||fldObj.type.toUpperCase()=="SELECT-ONE"||fldObj.type.toUpperCase()=="TEXTAREA"||fldObj.type.toUpperCase()=="CHECKBOX"){fldObj.className="textcontrol"}}}function checkemailcondition(){var A="@";x=document.frm_search.contact_email.value;ctrl=x.split(A);if(ctrl[1]=="rediff.com"){document.frm_search.contact_email.value=ctrl[0]+"@rediffmail.com"}return true}var xmlhttp=false;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){xmlhttp=false}}if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){xmlhttp=new XMLHttpRequest()}Array.prototype.inArray=function(B){var A;for(A=0;A<this.length;A++){if(this[A]===B){return true}}return false};function makerequest(serverPage,objID){var obj=document.getElementById(objID);try{xmlhttp.open("GET",serverPage,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var text=xmlhttp.responseText.substr(0,(xmlhttp.responseText.length-1));if(text==""){text="&nbsp;"}obj.innerHTML=text;mystr=xmlhttp.responseText.substr(0,(xmlhttp.responseText.length-1));var thelength=xmlhttp.responseText.length;var last_char=xmlhttp.responseText.charAt(thelength-1);if(eval("last_char")==0){return false}else{return true}}else{document.getElementById(objID).innerHTML='<table width="100%"><tr><td height="10" valign="center" align="center" class="text" style="color:000000;"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr></table>'}};xmlhttp.send(null)}catch(e){}}function makeajaxrequest(B,A){var D=document.getElementById(A);try{xmlhttp.open("GET",B,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var G="";G=xmlhttp.responseText;var H=G.length;var F=G.charAt(H-1);if(F=="."){G=G.substr(0,(G.length-1))}D.innerHTML=G}else{document.getElementById(A).innerHTML="Processing.....please wait"}};xmlhttp.send(null)}catch(C){}}function ajaxrequest(B,A){var D=document.getElementById(A);try{xmlhttp.open("GET",B,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){D.innerHTML=xmlhttp.responseText}};xmlhttp.send(null)}catch(C){}}function validatesymbolwithspaceurl(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 check_user_type(val){if(val=="1"){for(i=0;i<br_array.length;i++){eval("document.getElementById('"+br_array[i]+"').style.display = 'none'")}for(i=0;i<ind_array.length;i++){eval("document.getElementById('"+ind_array[i]+"').style.display = ''")}}else{for(i=0;i<br_array.length;i++){eval("document.getElementById('"+br_array[i]+"').style.display = ''")}for(i=0;i<ind_array.length;i++){eval("document.getElementById('"+ind_array[i]+"').style.display = 'none'")}}if(val=="1"||val=="2"){document.getElementById("countryall").style.display="";document.getElementById("countrycorporate").style.display="none";document.getElementById("cityall").style.display="";document.getElementById("citycorporate").style.display="none"}else{if(val=="3"||val=="4"){document.getElementById("countryall").style.display="none";document.getElementById("countrycorporate").style.display="";document.getElementById("cityall").style.display="none";document.getElementById("citycorporate").style.display=""}}if(val=="4"||val=="1"){document.getElementById("row_url").style.display="none"}else{document.getElementById("row_url").style.display=""}}function check_registration_form(){var chk_len=document.registration_frm.member_type.length;formObj=eval("document.registration_frm");var errnum=0;var focus_field="";for(var counter=0;counter<chk_len;counter++){if(document.registration_frm.member_type[counter].checked==true){var mem_type=document.registration_frm.member_type[counter].value}}var dt=new Date();var year=dt.getUTCFullYear();for(var i=1;i<formObj.length;i++){fldObj=formObj.elements[i];if(fldObj.type.toUpperCase()=="TEXT"||fldObj.type.toUpperCase()=="SELECT"||fldObj.type.toUpperCase()=="SELECT-ONE"||fldObj.type.toUpperCase()=="TEXTAREA"||fldObj.type.toUpperCase()=="CHECKBOX"){fldObj.className="textcontrol"}}if(document.registration_frm.name.value==""||document.registration_frm.name.value=="Your Name"){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your name.";document.registration_frm.name.focus()}document.registration_frm.name.className="errorcontrol";errnum++}if(document.registration_frm.name.value!=""&&!check_name(document.registration_frm.name.value)){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your name without any special characters.";document.registration_frm.name.focus()}document.registration_frm.name.className="errorcontrol";errnum++}else{if(document.registration_frm.name.value!=""&&!check_name_num(document.registration_frm.name.value)){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your name without any numeric characters.";document.registration_frm.name.focus()}document.registration_frm.name.className="errorcontrol";errnum++}}if(document.registration_frm.name.value!=""&&document.registration_frm.name.value.length<=1){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a correct name .";document.registration_frm.name.focus()}document.registration_frm.name.className="errorcontrol";errnum++}if(mem_type==2||mem_type==3||mem_type==4){if(document.registration_frm.company_name.value==""||document.registration_frm.company_name.value=="Company Name"||validatesymbolalphanumericwithspace("registration_frm","company_name")==false){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your company name without any special characters.";document.registration_frm.company_name.focus()}document.registration_frm.company_name.className="errorcontrol";errnum++}else{if(consecutiveDigits(document.registration_frm.company_name.value)){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid company name.";document.registration_frm.company_name.focus()}document.registration_frm.company_name.className="errorcontrol";errnum++}}}if(mem_type==2||mem_type==3||mem_type==4){if(document.registration_frm.address.value==""||document.registration_frm.address.value=="Company Address"){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your address without any special characters.";document.registration_frm.address.focus()}document.registration_frm.address.className="errorcontrol";errnum++}else{if(consecutiveDigits(document.registration_frm.address.value)){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid address.";document.registration_frm.address.focus()}document.registration_frm.address.className="errorcontrol";errnum++}}}if(mem_type==3||mem_type==4){if(document.registration_frm.country_name2.value=="0"){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select your country.";document.registration_frm.country_name2.focus()}document.registration_frm.country_name2.className="errorcontrol";errnum++}if(document.registration_frm.city2.value==""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select your city.";document.registration_frm.city2.focus()}document.registration_frm.city2.className="errorcontrol";errnum++}else{if(document.registration_frm.city2.value.indexOf("other")!=-1&&(document.registration_frm.city_other.value==""||document.registration_frm.city_other.value=="Please enter the city name")){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your city.";document.registration_frm.city_other.focus()}document.registration_frm.city2.className="errorcontrol";errnum++}}if(document.registration_frm.city2.value.indexOf("other")!=-1&&(document.registration_frm.city_other.value!=""&&!check_name(document.registration_frm.city_other.value))){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid city.";document.registration_frm.city_other.focus()}document.registration_frm.city2.className="errorcontrol";errnum++}}else{if(document.registration_frm.country_name.value=="0"){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select your country.";document.registration_frm.country_name.focus()}document.registration_frm.country_name.className="errorcontrol";errnum++}if(document.registration_frm.city.value==""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select your city.";document.registration_frm.city.focus()}document.registration_frm.city.className="errorcontrol";errnum++}else{if(document.registration_frm.city.value.indexOf("other")!=-1&&(document.registration_frm.city_other.value==""||document.registration_frm.city_other.value=="Please enter the city name")){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your city.";document.registration_frm.city.focus()}document.registration_frm.city.className="errorcontrol";errnum++}}if(document.registration_frm.city.value.indexOf("other")!=-1&&(document.registration_frm.city_other.value!=""&&!check_name(document.registration_frm.city_other.value))){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter valid city.";document.registration_frm.city.focus()}document.registration_frm.city.className="errorcontrol";errnum++}}if(mem_type==2&&document.registration_frm.url.value==""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your webpage name.";document.registration_frm.url.focus()}document.registration_frm.url.className="errorcontrol";errnum++}if(mem_type==2||mem_type==3){if(document.registration_frm.url.value!=""&&validatesymbolwithspaceurl("registration_frm","url")==false){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your webpage name without any special characters.";document.registration_frm.url.focus()}document.registration_frm.url.className="errorcontrol";errnum++}}if(mem_type==1){if(document.registration_frm.dob_year.value=="YYYY"||document.registration_frm.dob_year.value==""||validateNumber(document.registration_frm.dob_year.value)==false||Trim(document.registration_frm.dob_year.value.length)!=4){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your year of birth.";document.registration_frm.dob_year.focus()}document.registration_frm.dob_year.className="errorcontrol";errnum++}var dob_year=parseInt(Trim(document.registration_frm.dob_year.value));if((parseInt(dob_year)<parseInt(year-100))||(parseInt(dob_year)>parseInt(year))){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid year of birth.";document.registration_frm.dob_year.focus()}document.registration_frm.dob_year.className="errorcontrol";errnum++}if(!is_valid_day(document.registration_frm.dob_month.value-1,document.registration_frm.dob_day.value,document.registration_frm.dob_year.value)){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid date of birth.";document.registration_frm.dob_month.focus()}document.registration_frm.dob_month.className="errorcontrol";errnum++}if(document.registration_frm.dob_day.value=="DD"||document.registration_frm.dob_day.value==""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your date of birth.";document.registration_frm.dob_day.focus()}document.registration_frm.dob_day.className="errorcontrol";errnum++}var flg=validateNumber(document.registration_frm.dob_day.value);if(!flg||document.registration_frm.dob_day.value==0){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your date of birth.";document.registration_frm.dob_day.focus()}document.registration_frm.dob_day.className="errorcontrol";errnum++}}if(document.registration_frm.mobile.value==""&&document.registration_frm.phone.value==""){if(errnum==0){document.getElementById("div_msg").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your mobile/landline.";document.registration_frm.mobile.focus()}document.registration_frm.mobile.className="errorcontrol";errnum++}else{if(!ValidateNo(document.registration_frm.mobile.value,"1234567890,-/+")&&document.registration_frm.mobile.value!=""){if(errnum==0){document.getElementById("div_msg").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid mobile.";document.registration_frm.mobile.focus()}document.registration_frm.mobile.className="errorcontrol";errnum++}else{if(isNaN(document.registration_frm.area_code.value)&&document.registration_frm.area_code.value!=""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid area code.";document.registration_frm.area_code.focus()}document.registration_frm.area_code.className="errorcontrol";errnum++}else{if(document.registration_frm.area_code.value!=""&&document.registration_frm.phone.value==""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid phone.";document.registration_frm.area_code.focus()}document.registration_frm.area_code.className="errorcontrol";errnum++}else{if(document.registration_frm.area_code.value==""&&document.registration_frm.phone.value!=""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your area code.";document.registration_frm.area_code.focus()}document.registration_frm.area_code.className="errorcontrol";errnum++}else{if(!ValidateNo(document.registration_frm.phone.value,"1234567890,-/+")&&document.registration_frm.phone.value!=""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid phone.";document.registration_frm.phone.focus()}document.registration_frm.phone.className="errorcontrol";errnum++}}}}}}if(document.registration_frm.email.value==""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter e-mail.";document.registration_frm.email.focus()}document.registration_frm.email.className="errorcontrol";errnum++}else{if(!isValidEmail(document.registration_frm.email.value)){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter e-mail.";document.registration_frm.email.focus()}document.registration_frm.email.className="errorcontrol";errnum++}}if(document.registration_frm.verificationcode.value==""||document.registration_frm.verificationcode.value=="-- Please enter the code as seen above --"||document.registration_frm.verificationcode.length>6){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter the verification code as seen above.";document.registration_frm.verificationcode.focus()}document.registration_frm.verificationcode.className="errorcontrol";errnum++}else{if(document.registration_frm.verificationcode.value.length!=6&&document.registration_frm.verificationcode.value!=""){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter the correct verification code as seen above.";document.registration_frm.verificationcode.focus()}document.registration_frm.verificationcode.className="errorcontrol";errnum++}}if(!document.registration_frm.terms.checked){if(errnum==0){document.getElementById("div_msg").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please accept privacy policy and terms of use agreement.";document.registration_frm.terms.focus()}document.registration_frm.terms.className="errorcontrol";errnum++}if(errnum>0){return false}else{document.getElementById("submit_image").src=IMG_SERVER+"/images/submit_process2.gif";document.getElementById("submit_image").disabled=true;return true}}function checkemailcondition(){var A="@";x=document.registration_frm.email.value;ctrl=x.split(A);if(ctrl[1]=="rediff.com"){document.registration_frm.email.value=ctrl[0]+"@rediffmail.com"}return true}function change_url_value(){if(document.registration_frm.username.value!=""){if(document.registration_frm.name.value!=""){xname=document.registration_frm.name.value}else{xname=false}if(document.registration_frm.dob_year.value!=""){xyear=document.registration_frm.dob_year.value}else{xyear=false}document.getElementById("div_usercheck").innerHTML="";var C=document.registration_frm.member_type.length;for(var A=0;A<C;A++){if(document.registration_frm.member_type[A].checked==true){var D=document.registration_frm.member_type[A].value}}if(D==1||D==2){var B=document.registration_frm.country_name.options[document.registration_frm.country_name.selectedIndex].text}else{var B=document.registration_frm.country_name2.options[document.registration_frm.country_name2.selectedIndex].text}makerequest("/ssi/ajax/check-availability.php?type=userid&xname="+xname+"&dob_year="+xyear+"&value="+escape(document.registration_frm.username.value)+"&country="+B,"div_usercheck")}else{document.getElementById("div_usercheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a username.";document.registration_frm.loginname.focus();return false}}function check_webpage_value(A){if(document.registration_frm.url.value!=""){document.getElementById("div_msg").innerHTML="";makerequest("/ssi/ajax/check-webpage-availability.php?memberid="+A+"&type=userid&value="+escape(document.registration_frm.url.value),"div_msg")}}function check_member_url(memberid){var msgdiv="div_"+memberid;var url=eval("document.member_frm.url"+memberid+".value");if(url!=""){document.getElementById(msgdiv).innerHTML="";makerequest("/ssi/ajax/check-webpage-availability.php?memberid="+memberid+"&type=userid&value="+escape(url),msgdiv)}}var x_offset_tooltip=5;var y_offset_tooltip=0;var ajax_tooltipObj=false;var ajax_tooltipObj_iframe=false;var ajax_tooltip_MSIE=false;if(navigator.userAgent.indexOf("MSIE")>=0){ajax_tooltip_MSIE=true}function ajax_showTooltip(A,B){if(!ajax_tooltipObj){ajax_tooltipObj=document.createElement("DIV");ajax_tooltipObj.style.position="absolute";ajax_tooltipObj.id="ajax_tooltipObj";ajax_tooltipObj.style.zIndex="200";document.body.appendChild(ajax_tooltipObj);var C=document.createElement("DIV");C.className="ajax_tooltip_arrow";C.id="ajax_tooltip_arrow";ajax_tooltipObj.appendChild(C);var D=document.createElement("DIV");D.className="ajax_tooltip_content";ajax_tooltipObj.appendChild(D);D.id="ajax_tooltip_content";if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe=document.createElement('<IFRAME frameborder="0">');ajax_tooltipObj_iframe.style.position="absolute";ajax_tooltipObj_iframe.border="0";ajax_tooltipObj_iframe.frameborder=0;ajax_tooltipObj_iframe.style.backgroundColor="#FFF";ajax_tooltipObj_iframe.src="about:blank";D.appendChild(ajax_tooltipObj_iframe);ajax_tooltipObj_iframe.style.left="0px";ajax_tooltipObj_iframe.style.top="0px"}}ajax_tooltipObj.style.display="block";document.getElementById("ajax_tooltip_content").innerHTML=A;if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe.style.width=ajax_tooltipObj.clientWidth+"px";ajax_tooltipObj_iframe.style.height=ajax_tooltipObj.clientHeight+"px"}ajax_positionTooltip(B)}function ajax_positionTooltip(B){var C=(ajaxTooltip_getLeftPos(B)+B.offsetWidth);var A=ajaxTooltip_getTopPos(B);var D=document.getElementById("ajax_tooltip_content").offsetWidth+document.getElementById("ajax_tooltip_arrow").offsetWidth;ajax_tooltipObj.style.left=C+"px";ajax_tooltipObj.style.top=A+"px"}function ajax_hideTooltip(){ajax_tooltipObj.style.display="none"}function ajaxTooltip_getTopPos(A){var B=A.offsetTop;while((A=A.offsetParent)!=null){if(A.tagName!="HTML"){B+=A.offsetTop}}return B}function ajaxTooltip_getLeftPos(A){var B=A.offsetLeft;while((A=A.offsetParent)!=null){if(A.tagName!="HTML"){B+=A.offsetLeft}}return B}function consecutiveDigits(A){var B=A.split(" ").join("");if(/(\d){7,}/.test(B)){return true}else{return false}};
