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 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}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 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]}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 makerequestfastfree(B,A){var D=document.getElementById(A);try{xmlhttp.open("GET",B,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){D.innerHTML=xmlhttp.responseText}else{document.getElementById(A).innerHTML='<table width="40%" border="0" align="rignt"  style="border:1px solid #48A1CB;"><tr><td colspan="2" class="text" width = "20%"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr><tr><td align="center">&nbsp;</td><td align="center">&nbsp;</td></tr></table>'}};xmlhttp.send(null)}catch(C){}}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 makeajaxpostrequest(B,A){var D=document.getElementById(A);try{xmlhttp.open("POST",B,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){D.innerHTML=xmlhttp.responseText}};xmlhttp.send(null)}catch(C){}}function ajaxlogin(serverPage,objID,type,mode,currentpage,show,propertyid,mobilepage){if(currentpage==""||currentpage=="undefined"){currentpage="listing"}if(!mobilepage){mobilepage=0}var obj=document.getElementById(objID);try{xmlhttp.open("GET",serverPage,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){mystr=xmlhttp.responseText.substr(0,(xmlhttp.responseText.length-1));var thelength=xmlhttp.responseText.length;var last_char=xmlhttp.responseText.charAt(thelength-1);if(currentpage=="saveagetalert"){var getmessage="";getmessage=xmlhttp.responseText;var temp=new Array();temp=getmessage.split("##$$##");output=temp[0].substr(temp[0].length-4,temp[0].length);if(output=="DONE"){if(document.getElementById("div_getalert")){document.getElementById("div_getalert").innerHTML=temp[0].substr(0,temp[0].length-4)}if(document.getElementById("div_welcome")){document.getElementById("div_welcome").innerHTML="Hi <b>"+temp[1]+"</b>&nbsp;&nbsp;"}if(document.getElementById("div_toplinks")){document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>'}if(document.getElementById("div_register_tab")){document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>'}if(document.getElementById("div_msg")){document.getElementById("div_msg").innerHTML=""}if(document.getElementById("div_msg2")){document.getElementById("div_msg2").innerHTML=""}}else{output=getmessage.substr(getmessage.length-1,getmessage.length);if(eval(output)=="0"||eval(output)==0){document.getElementById("div_msg2").innerHTML="";document.getElementById("div_msg2").innerHTML=getmessage.substr(0,getmessage.length-1)}else{document.getElementById("div_msg2").innerHTML=getmessage}}}else{if(eval(last_char)=="0"){obj.innerHTML=mystr}else{var b=xmlhttp.responseText;var temp=new Array();temp=b.split("#");if(currentpage=="cl"){var msg="<table border = '0' width='100%' cellpadding='0' cellspacing='0' >";var note=note1=notefr="";var frflag=" & ";msg+="<tr><td valign='top'><b class='bl1h'></b><b class='bl2h'></b><b class='bl3h'></b><b class='bl4h'></b><div style='border-left:1px solid #A7C4E3; border-right:1px solid #A7C4E3;'><div><table width='100%' style='background:#BCDEFA;'>";msg+="<tr style='line-height:20px;'><td class = 'columnhead paddingleft20' width='30%'>Balance Listing : </td><td class = 'columnhead paddingleft20'><b>";if(temp[15]=="0"||temp[16]=="0"){if(temp[18]=="1"){msg+="Fast Response - <span id='fr_balance'>1</span>&nbsp;&nbsp;";msg+="<br>Fast Response - <span id='fr_obalance'>"+temp[1]+"*</span>";notefr+="<b><span id='fr2_obalance'>"+temp[1]+"</span> Fast Response Listing(s)</b>"}else{msg+="Fast Response - <span id='fr_balance'>"+temp[1]+"</span>"}}else{if(temp[18]=="1"){msg+="Fast Response - <span id='fr_balance'>1</span>&nbsp;&nbsp;";msg+="<br>Fast Response - <span id='fr_obalance'>"+temp[1]+"*</span>";notefr+="<b><span id='fr2_obalance'>"+temp[1]+"</span> Fast Response Listing(s)</b>"}else{msg+="Fast Response - <span id='fr_balance'>"+temp[1]+"</span>"}if(temp[1]>0){note1=" & <b> 1 Fast Response Listing(s)</b>"}}if(temp[15]=="0"){msg+=" &nbsp&nbsp; </b></td><td class = 'columnhead paddingleft20'><b>Basic - <span id='bas_balance'>"+temp[13]+"</span>"}else{msg+=" &nbsp&nbsp; </b></td><td class = 'columnhead paddingleft20'><b>Basic - Unlimited";note+="<tr><td colspan='3' style='background:#BCDEFA;height:30px;' align='left' class = 'columnhead paddingleft20'><img src='http://img.makaan.com/images/arrow-right.gif' align='absmiddle' /> You have <b>Unlimited Basic Listing</b><span id='tr_topinfo1'>"+note1+"</span> to list property in any cities except  Delhi, Mumbai, Hyderabad, Bangalore, Kolkata and Pune.</td></tr>";if(temp[13]>0||temp[18]=="1"){var notebasic="";if(temp[13]>0){var notebasic="<b>"+temp[13]+" Basic Listing</b>";msg+=" &nbsp&nbsp;<br>Basic - <span id='bas_balance'>"+temp[13]+"*</span></b>"}note+="<tr id='tr_topinfo2'><td colspan='3' style='background:#BCDEFA;height:20px;' align='left' class = 'columnhead paddingleft20'><img src='http://img.makaan.com/images/arrow-right.gif' align='absmiddle' /> *You have "+notebasic+notefr+" for  Delhi, Mumbai, Hyderabad, Bangalore, Kolkata and Pune.</td></tr>"}else{msg+="<span id='bas_balance' style='display:none;'>0</span>"}}msg+="</b></td></tr>";document.getElementById("div_login_table").innerHTML="";document.getElementById("div_login_table").innerHTML=msg;if(note!=""){document.getElementById("div_login_table").innerHTML+=note}document.getElementById("div_login_table").innerHTML+="</table></div>";document.getElementById("div_login_table").innerHTML+="</div></div><b class='bl4bh'></b><b class='bl3bh'></b><b class='bl2bh'></b><b class='bl1h'></b></td></tr></table>";document.listproperty_frm.member_id.value=temp[0];document.listproperty_frm.loggedin.value=temp[0];document.listproperty_frm.m_type.value=temp[17];document.listproperty_frm.basicbalance.value=temp[13];document.listproperty_frm.frbalance.value=temp[1];document.listproperty_frm.freemarketfruser.value=temp[16];document.listproperty_frm.freemarketbasicuser.value=temp[15];document.listproperty_frm.contact_name.value=temp[2];document.listproperty_frm.contact_email.value=temp[4];document.listproperty_frm.mob_country_code.value=Trim(temp[5]);document.listproperty_frm.mobile1.value=temp[6];if(temp[7]!=""&&temp[8]!=""){document.listproperty_frm.ph_country_code.value=temp[7];document.listproperty_frm.contact_mobile2.value=temp[8]}document.listproperty_frm.ph_area_code.value=temp[9];document.listproperty_frm.phone1.value=temp[10];if(temp[11]!=""&&temp[12]!=""){document.listproperty_frm.ph_area_code2.value=temp[11];document.listproperty_frm.contact_phone2.value=temp[12]}document.getElementById("div_welcome").innerHTML="Hi <b>"+temp[2]+"</b>&nbsp;&nbsp;";document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>';document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>';document.getElementById("login-details").innerHTML="Listing Details";document.getElementById("cityall").style.display="none";document.getElementById("citycorporate").style.display="none";document.getElementById("tr_member_cother").style.display="none";enableFormElement();listingblockchange();document.getElementById("sfr").innerHTML="Fast Response";document.getElementById("sbas").innerHTML="Basic";showhide()}else{if(currentpage=="freecl"){var msg="<table border = '0' width='100%' cellpadding='0' cellspacing='0' >";var note=note1=notefr="";var frflag=" & ";msg+="<tr><td valign='top'><b class='bl1h'></b><b class='bl2h'></b><b class='bl3h'></b><b class='bl4h'></b><div style='border-left:1px solid #A7C4E3; border-right:1px solid #A7C4E3;'><div><table width='100%' style='background:#BCDEFA;'>";msg+="<tr style='line-height:20px;'><td class = 'columnhead paddingleft20' width='30%' align='center'><b>Anniversary Offer:</b> List your property for FREE.<span id='fr_balance' style='display:none;'>200</span><span id='bas_balance' style='display:none;'>200</span></td></tr>";document.getElementById("div_login_table").innerHTML="";document.getElementById("div_login_table").innerHTML=msg;document.getElementById("div_login_table").innerHTML+="</table></div>";document.getElementById("div_login_table").innerHTML+="</div></div><b class='bl4bh'></b><b class='bl3bh'></b><b class='bl2bh'></b><b class='bl1h'></b></td></tr></table>";document.listproperty_frm.member_id.value=temp[0];document.listproperty_frm.loggedin.value=temp[0];document.listproperty_frm.m_type.value=temp[17];document.listproperty_frm.basicbalance.value="200";document.listproperty_frm.frbalance.value="200";document.listproperty_frm.freemarketfruser.value="0";document.listproperty_frm.freemarketbasicuser.value="0";document.listproperty_frm.contact_name.value=temp[2];document.listproperty_frm.contact_email.value=temp[4];document.listproperty_frm.mob_country_code.value=Trim(temp[5]);document.listproperty_frm.mobile1.value=temp[6];if(temp[7]!=""&&temp[8]!=""){document.listproperty_frm.ph_country_code.value=temp[7];document.listproperty_frm.contact_mobile2.value=temp[8]}document.listproperty_frm.ph_area_code.value=temp[9];document.listproperty_frm.phone1.value=temp[10];if(temp[11]!=""&&temp[12]!=""){document.listproperty_frm.ph_area_code2.value=temp[11];document.listproperty_frm.contact_phone2.value=temp[12]}document.getElementById("div_welcome").innerHTML="Hi <b>"+temp[2]+"</b>&nbsp;&nbsp;";document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>';document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>';document.getElementById("login-details").innerHTML="Listing Details";document.getElementById("cityall").style.display="none";document.getElementById("citycorporate").style.display="none";document.getElementById("tr_member_cother").style.display="none";enableFormElement();listingblockchange();document.getElementById("sfr").innerHTML="Fast Response";document.getElementById("sbas").innerHTML="Basic";showhide();if(document.listproperty_frm.contact_mobile2.value!=""){document.getElementById("addmore1").style.display="none";document.getElementById("added1").style.display=""}else{document.listproperty_frm.ph_country_code.value=""}if(document.listproperty_frm.contact_phone2.value!=""){document.getElementById("addmore2").style.display="none";document.getElementById("added2").style.display=""}else{document.listproperty_frm.ph_area_code2.value=""}}else{if(currentpage=="listing"){var msg="<table border = '0' width='95%' cellpadding='0' cellspacing='0' class='staticorangetb'>";msg+="<tr style='line-height:20px;'><td width='100%' class = 'columnhead paddingleft20'>";msg+="Welcome <b>"+temp[2]+"</b>,</td></tr><tr style='line-height:20px;'	><td class = 'columnhead paddingleft20'>";if(mode=="fast"){if(temp[15]=="0"||temp[16]=="0"){msg+="Balance Fast Response Listing(s) are <b>"+temp[1]+"</b>"}else{msg+="Balance Fast Response Listing(s) is "+temp[1]+". You can use it to list property in any cities except  Delhi, Mumbai, Hyderabad, Bangalore, Kolkata and Pune.";document.listproperty_frm.city.onchange=function(){makerequest("/ssi/ajax/display-locations.php?cityid="+this.value,"div_loc");check_other_city(this.value,"tr_city_other","tr_location_other");showhidelistin(this.value)}}}else{if(mode=="fastfree"){msg+="List Fast Response Listing for free*<div class='orange' align='right' style='padding-right:10px;'>* Special offer!&nbsp;&nbsp; This offer is valid only for listing done till midnight of 30th June, 2008&nbsp;&nbsp;</div>"}else{if(temp[15]=="0"){msg+="Balance Basic Listing(s) are <b>"+temp[13]+"</b>"}else{msg+="You have <b>Unlimited Basic Listing</b> . You can use them to list property in any cities except  Delhi, Mumbai, Hyderabad, Bangalore, Kolkata and Pune.";document.listproperty_frm.city.onchange=function(){makerequest("/ssi/ajax/display-locations.php?cityid="+this.value,"div_loc");check_other_city(this.value,"tr_city_other","tr_location_other");showhidelistin(this.value)}}}}msg+="</td></tr></table>";document.listproperty_frm.loginuser.value=temp[0];document.listproperty_frm.availListing.value=temp[1];document.getElementById("div_login_table").innerHTML="";document.getElementById("div_login_table").innerHTML=msg;document.listproperty_frm.contact_name.value=temp[2];document.listproperty_frm.contact_email.value=temp[4];document.listproperty_frm.mob_country_code.value=temp[5];document.listproperty_frm.mobile1.value=temp[6];if(temp[7]!=""&&temp[8]!=""){document.listproperty_frm.ph_country_code.value=temp[7];document.listproperty_frm.contact_mobile2.value=temp[8]}document.listproperty_frm.ph_area_code.value=temp[9];document.listproperty_frm.phone1.value=temp[10];if(temp[11]!=""&&temp[12]!=""){document.listproperty_frm.ph_area_code2.value=temp[11];document.listproperty_frm.contact_phone2.value=temp[12]}document.getElementById("div_welcome").innerHTML="Hi <b>"+temp[2]+"</b>&nbsp;&nbsp;";document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>';document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>';if(mode=="fast"){if(temp[1]!="0"&&temp[1]!=""){document.getElementById("div_frame").style.display="none"}}else{if(mode!="fastfree"){if(temp[13]!="0"&&temp[13]!=""){document.getElementById("div_frame").innerHTML="";document.getElementById("div_frame").style.display="none"}else{if(temp[15]=="1"){document.getElementById("div_frame").style.display="none"}else{document.getElementById("div_frame").style.display=""}}}}enableFormElement()}else{if(currentpage=="requirement"){if(document.getElementById("div_toplinks")){document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href=\'/makaan-iq/iq.php\' class=\'toplinks\' target=_blank>MakaanIQ</a><img src=\'http://img.makaan.com/images/new.jpg\' align=\'absmiddle\' />|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>'}if(document.getElementById("div_register_tab")){document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>'}document.getElementById("div_welcome").innerHTML="Hi <b>"+temp[2]+"</b>&nbsp;&nbsp;";document.getElementById("tr_rl1").style.display="none";document.getElementById("tr_rl2").style.display="none";document.getElementById("tr_f1").style.display="";document.getElementById("tr_f2").style.display="";document.requiremant_frm.loginuser.value=temp[0];disable_fields();document.getElementById("tr_edit").style.display=""}else{if(currentpage=="blead"){window.location="/buyer-leads-plus/manage-leads.php?action=search&creqid="+type}else{if(currentpage=="shortlist"){if(document.getElementById("div_welcome")!=null&&document.getElementById("div_welcome")!="undefined"){document.getElementById("div_welcome").innerHTML="Hi <b>"+temp[2]+"</b>&nbsp;&nbsp;"}document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>';if(document.getElementById("div_register_tab")!=null&&document.getElementById("div_register_tab")!="undefined"){document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>'}document.getElementById("div_login").innerHTML="";if(show=="1"){showsms("/search/shortlist.php?show=1","div_all")}else{if(show=="2"){showsms("/search/shortlist.php?show=2","div_all2")}else{if(mobilepage=="1"){showsms("/search/mobileshortlist.php?pid="+propertyid,"div_"+propertyid)}else{showsms("/search/shortlist.php?pid="+propertyid,"div_"+propertyid)}}}}else{if(currentpage=="homeshortlist"){document.getElementById("div_all").innerHTML="";showsms("/search/short-list-popup.php?pid="+propertyid,"div_all");window.opener.location.reload()}else{if(currentpage=="shortlistviewpage"){if(document.getElementById("div_welcome")!=null&&document.getElementById("div_welcome")!="undefined"){document.getElementById("div_welcome").innerHTML="Hi <b>"+temp[2]+"</b>&nbsp;&nbsp;"}document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>';if(document.getElementById("div_register_tab")!=null&&document.getElementById("div_register_tab")!="undefined"){document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;"><span class="menu-mid textnopad" style=\'font-size:15px;\'><b>My Makaan Account</b> </span></a>'}document.getElementById("div_login").innerHTML="";if(show=="1"){showsms("/search/shortlist-propertylisting.php?show=1","div_all")}else{if(show=="2"){showsms("/search/shortlist-propertylisting.php?show=2","div_all2")}else{showsms("/search/shortlist-propertylisting.php?pid="+propertyid,"div_"+propertyid)}}}else{if(currentpage=="ppc_banner"){document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>';document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>';document.getElementById("div_login").innerHTML="";document.getElementById("div_content").innerHTML="<font class='text'>Welcome <b>"+temp[2]+"</b>&nbsp;&nbsp;</font>"}else{document.getElementById("div_welcome").innerHTML="Hi <b>"+temp[2]+"</b>&nbsp;&nbsp;";document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>';document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>';document.getElementById("div_login").innerHTML=""}}}}}}}}}}}}else{if(document.getElementById(objID)){document.getElementById(objID).innerHTML="Processing.....please wait"}}};xmlhttp.send(null)}catch(e){}}function makeajaxrequesnumber(B,A){var D=document.getElementById(A);try{xmlhttp.open("GET",B,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){D.innerHTML=xmlhttp.responseText}else{D.innerHTML="<table border=0 width='100%'><tr><td valign='top' class='columnhead' width='30%'></td><td   width='1%' ></td><td  width='79%' valign='middle'><font style='font-size:9px'>Processing.....please wait</font></td> </tr></table>"}};xmlhttp.send(null)}catch(C){}}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 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 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 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 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 opt_other_city(A){if(A=="OTH"){document.getElementById("other_city").style.display=""}else{document.getElementById("other_city").style.display="none"}}var n="";function validatenumberforwords(A){var B=(A);if(B.length==0||isNaN(B)||B.indexOf(".")!=-1){return"Please enter a valid number."}else{return convert(B)}}function d1(A){switch(A){case"0":n="";break;case"1":n=" One ";break;case"2":n=" Two ";break;case"3":n=" Three ";break;case"4":n=" Four ";break;case"5":n=" Five ";break;case"6":n=" Six ";break;case"7":n=" Seven ";break;case"8":n=" Eight ";break;case"9":n=" Nine ";break;default:n="Invalid"}return n}function d2(A){switch(A){case"0":n="";break;case"1":n="Ten";break;case"2":n=" Twenty ";break;case"3":n=" Thirty ";break;case"4":n=" Forty ";break;case"5":n=" Fifty ";break;case"6":n=" Sixty ";break;case"7":n=" Seventy ";break;case"8":n=" Eighty ";break;case"9":n=" Ninety ";break;default:n="Invalid"}return n}function d3(x){switch(eval(x)){case 0:n=" Ten ";break;case 1:n=" Eleven ";break;case 2:n=" Twelve ";break;case 3:n=" Thirteen ";break;case 4:n=" Fourteen ";break;case 5:n=" Fifteen ";break;case 6:n=" Sixteen ";break;case 7:n=" Seventeen ";break;case 8:n=" Eighteen ";break;case 9:n=" Nineteen ";break;case 10:n=" Ten ";break;case 11:n=" Eleven ";break;case 12:n=" Twelve ";break;case 13:n=" Thirteen ";break;case 14:n=" Fourteen ";break;case 15:n=" Fifteen ";break;case 16:n=" Sixteen ";break;case 17:n=" Seventeen ";break;case 18:n=" Eighteen ";break;case 19:n=" Nineteen ";break;default:n="Invalid"}return n}function currency(A){switch(A){case"3":n=" Hundred ";break;case"4":n=" Thousand ";break;case"5":n=" Thousand ";break;case"6":n=" Lacs ";break;case"7":n=" Lacs ";break;case"8":n=" Crore ";break;case"9":n=" Crore ";break;default:n="Invalid"}return n}function convert(input){var inputlength=input.length;digit=new Array(inputlength);for(i=0;i<inputlength;i++){digit[inputlength-i]=input.charAt(i)}var carryforward="";var str_display="";switch(inputlength){case 1:str_display=d1(digit[1]);break;case 2:if(eval(digit[2]+digit[1])<20){str_display=d3(eval(digit[2]+digit[1]))}else{str_display=d2(digit[2])+d1(digit[1])}break;case 3:myval="";str_display="";if(eval(digit[2]+digit[1])>20){myval=d2(digit[2])+d1(digit[1])}else{if(eval(digit[2]+digit[1])<=9){myval=d1(digit[1])}else{if(eval(digit[2]+digit[1])>9&&eval(digit[2]+digit[1])%10==0){myval=d2(digit[2])}else{if(eval(digit[2]+digit[1])>9&&eval(digit[2]+digit[1])<20){myval=d3(digit[1])}}}}andvariable="";if(eval(digit[2]+digit[1])>1){andvariable=" And "}if(d1(digit[3])!=""){str_display=str_display+d1(digit[3])+currency("3")+andvariable}if(myval!=""){str_display=str_display+myval}break;case 4:andvariable="";if(eval(digit[2]+digit[1])>1&&input>eval(digit[2]+digit[1])){andvariable=" And "}str_display="";if(d1(digit[4])!=""){str_display=str_display+d1(digit[4])+currency("4")}if(d1(digit[3])!=""){str_display=str_display+d1(digit[3])+currency("3")}str_display=str_display+andvariable+d2(digit[2])+d1(digit[1]);break;case 5:andvariable="";if(eval(digit[2]+digit[1])>1&&input>eval(digit[2]+digit[1])){andvariable=" And "}carryforward="";if(eval(digit[5])>1&&eval(digit[4]+digit[5])%10==0){carryforward=d2(eval(digit[5]))}else{if(eval(digit[5])==1){carryforward=d3(eval(digit[4]))}else{carryforward=d2(digit[5])+d1(digit[4])}}if(carryforward!=""){str_display=carryforward+currency("4")}if(d1(digit[3])!=""){str_display=str_display+d1(digit[3])+currency("3")}str_display=str_display+andvariable+d2(digit[2])+d1(digit[1]);break;case 6:andvariable="";if(eval(digit[2]+digit[1])>1&&input>eval(digit[2]+digit[1])){andvariable=" And "}carryforward="";if(eval(digit[6])>1&&eval(digit[5]+digit[6])%10==0){carryforward=carryforward+d2(eval(digit[6]))}else{if(eval(digit[6])<=9&&eval(digit[6])>0){carryforward=carryforward+d1(digit[6])}else{carryforward=carryforward+d1(digit[6])}}if(carryforward!=""){carryforward=carryforward+currency("6")}carryforward_thausand="";strarr_thau="";strarr_thau=digit[5]+digit[4];if(eval(digit[5])>1&&eval(digit[4]+digit[5])%10==0){carryforward_thausand=carryforward_thausand+d2(digit[5])}else{if(eval(digit[5])==1){carryforward_thausand=carryforward_thausand+d3(digit[4])}else{if(eval(strarr_thau)<=9){carryforward_thausand=carryforward_thausand+d1(digit[4])}else{if(eval(strarr_thau)>9&&eval(strarr_thau)<20){carryforward_thausand=carryforward_thausand+d3(digit[4])}else{carryforward_thausand=carryforward_thausand+d2(digit[5])+d1(digit[4])}}}}current="";if(carryforward_thausand!=""){current=carryforward_thausand+currency("4")}str_display=carryforward+current;if(d1(digit[3])!=""){str_display=str_display+d1(digit[3])+currency("3")}str_display=str_display+andvariable+d2(digit[2])+d1(digit[1]);break;case 7:andvariable="";if(eval(digit[2]+digit[1])>1&&input>eval(digit[2]+digit[1])){andvariable=" And "}carryforward="";strarr="";strarr=digit[7]+digit[6];if(eval(digit[7])>1&&eval(digit[6]+digit[7])%10==0){carryforward=carryforward+d2(eval(digit[7]))}else{if(eval(digit[7])==1){carryforward=carryforward+d3(eval(digit[6]))}else{if(eval(strarr)>20){carryforward=carryforward+d2(digit[7])+d1(digit[6])}else{carryforward=carryforward+d1(digit[7])}}}if(carryforward!=""){carryforward=carryforward+currency("6")}carryforward_thausand="";if(eval(digit[5])>1&&eval(digit[4]+digit[5])%10==0){carryforward_thausand=d2(eval(digit[5]))}else{if(eval(digit[5])==1){carryforward_thausand=d3(eval(digit[4]))}else{carryforward_thausand=d2(digit[5])+d1(digit[4])}}if(carryforward_thausand!=""){carryforward_thausand=carryforward_thausand+currency("4")}str_display=carryforward+carryforward_thausand;if(d1(digit[3])!=""){str_display=str_display+d1(digit[3])+currency("3")}str_display=str_display+andvariable+d2(digit[2])+d1(digit[1]);break;case 8:andvariable="";if(eval(digit[2]+digit[1])>1&&input>eval(digit[2]+digit[1])){andvariable=" And "}carryforward="";if(eval(digit[8])>0){carryforward=carryforward+d1(digit[8])}if(carryforward!=""){carryforward=carryforward+currency("8")}strarr_lac="";strarr_lac=digit[7]+digit[6];carryforward_lac="";if(eval(digit[7])>1&&eval(digit[6]+digit[7])%10==0){carryforward_lac=d2(eval(digit[7]))}else{if(eval(digit[7])==1){carryforward_lac=d3(eval(digit[6]))}else{if(eval(strarr_lac)>20){carryforward_lac=d2(digit[7])+d1(digit[6])}else{if(eval(strarr_lac)<=9){carryforward_lac=d1(digit[6])}else{if(eval(strarr_lac)>9&&eval(strarr_lac)<20){carryforward_lac=d3(digit[7])}else{carryforward_lac=d1(digit[7])}}}}}if(carryforward_lac!=""){carryforward_lac=carryforward_lac+currency("6")}carryforward=carryforward+carryforward_lac;carryforward_thausand="";if(eval(digit[5])>1&&eval(digit[4]+digit[5])%10==0){carryforward_thausand=d2(eval(digit[5]))}else{if(eval(digit[5])==1){carryforward_thausand=d3(eval(digit[4]))}else{carryforward_thausand=d2(digit[5])+d1(digit[4])}}if(carryforward_thausand!=""){carryforward_thausand=carryforward_thausand+currency("4")}str_display=carryforward+carryforward_thausand;if(d1(digit[3])!=""){str_display=str_display+d1(digit[3])+currency("3")}str_display=str_display+andvariable+d2(digit[2])+d1(digit[1]);break;case 9:andvariable="";if(eval(digit[2]+digit[1])>1&&input>eval(digit[2]+digit[1])){andvariable=" And "}carryforward="";strarr_crore="";strarr_crore=digit[9]+digit[8];if(eval(digit[9])>1&&eval(strarr_crore)%10==0){carryforward=carryforward+d2(digit[9])}else{if(eval(strarr_crore)>20){carryforward=carryforward+d2(digit[9])+d1(digit[8])}else{if(eval(digit[9])==1&&eval(strarr_crore)<=9){carryforward=carryforward+d1(digit[9])}else{if(eval(strarr_crore)>9&&eval(strarr_crore)<20){carryforward=carryforward+d3(digit[8])}else{carryforward=carryforward+d1(digit[9])}}}}if(carryforward!=""){carryforward=carryforward+currency("9")}strarr_lac="";strarr_lac=digit[7]+digit[6];carryforward_lac="";if(eval(digit[7])>1&&eval(digit[6]+digit[7])%10==0){carryforward_lac=d2(eval(digit[7]))}else{if(eval(digit[7])==1){carryforward_lac=d3(eval(digit[6]))}else{if(eval(strarr_lac)>20){carryforward_lac=d2(digit[7])+d1(digit[6])}else{if(eval(strarr_lac)<=9){carryforward_lac=d1(digit[6])}else{if(eval(strarr_lac)>9&&eval(strarr_lac)<20){carryforward_lac=d3(digit[6])}else{carryforward_lac=d1(digit[7])}}}}}if(carryforward_lac!=""){carryforward_lac=carryforward_lac+currency("6")}carryforward=carryforward+carryforward_lac;carryforward_thausand="";if(eval(digit[5])>1&&eval(digit[4]+digit[5])%10==0){carryforward_thausand=d2(eval(digit[5]))}else{if(eval(digit[5])==1){carryforward_thausand=d3(eval(digit[4]))}else{carryforward_thausand=d2(digit[5])+d1(digit[4])}}if(carryforward_thausand!=""){carryforward_thausand=carryforward_thausand+currency("4")}str_display=carryforward+carryforward_thausand;if(d1(digit[3])!=""){str_display=str_display+d1(digit[3])+currency("3")}str_display=str_display+andvariable+d2(digit[2])+d1(digit[1]);break;default:return"Invalid Entry/Too Long"}return str_display}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"}if(fldObj.name=="userradio"&&fldObj.checked&&document.getElementById("tr_f2").style.display!=""){val=fldObj.value;change_user_type(val)}}document.getElementById("locality_id").className="textcontrol"}var ptimeval=new Object();ptimeval["1"]=[{value:"0",text:"Less than 6 months"},{value:"1",text:"6 - 12 months"},{value:"2",text:"More than 12 months"}];ptimeval["2"]=[{value:"3",text:"Ready to move-in"},{value:"4",text:"30 - 60 days"},{value:"5",text:"More than 60 days"}];function showtimebox(G,A){var F;var C=(navigator.appName=="Microsoft Internet Explorer")?-1:null;var H=document.listproperty_frm.elements.possessiontime;while(H.options.length){H.remove(0)}F=document.createElement("option");F.text="--- Time to Possession ---";F.value="";H.add(F,C);if(G=="Rent"){var B=ptimeval["2"]}else{var B=ptimeval["1"]}for(var D=0;D<B.length;D++){F=document.createElement("option");F.text=B[D].text;F.value=B[D].value;H.add(F,C);if(B[D].value==A){F.selected=true}}}function check_price_type(){if(document.listproperty_frm.property_for[1].checked==true){document.getElementById("price_type").innerHTML="per month";document.getElementById("s9").innerHTML='Rent (Rs.) <font color="red">&nbsp;*&nbsp;</font>';document.getElementById("smsg").innerHTML="Rent (In Words)";document.getElementById("tr_possessiontime").style.display="";showtimebox("Rent")}else{document.getElementById("price_type").innerHTML="";document.getElementById("s9").innerHTML='Total Price (Rs.) <font color="red">&nbsp;*&nbsp;</font><sub>(Approx.)</sub>';document.getElementById("smsg").innerHTML="Total Price (In Words)";document.getElementById("tr_possessiontime").style.display="none";showtimebox("Sale");if(document.listproperty_frm.property_type_id.value=="2"||document.listproperty_frm.property_type_id.value=="10"){document.getElementById("tr_possessiontime").style.display="none"}else{if(document.listproperty_frm.age_of_construction.value=="0"){document.getElementById("tr_possessiontime").style.display=""}}}}function check_list_property_form(frm,com_id,res_id,farm_id,warehouse_id){var res_plot=4;var com_land=10;var farm_house=7;var ware_house=13;var independent_bunglow=6;var com_office=11;var business_center=12;var inductrial_setup=14;var com_shop=15;var com_other=16;var count_bug=0;var focus_field="";var tmp_arr=document.getElementsByTagName("div");for(var i=0;i<tmp_arr.length;i++){if(tmp_arr[i].className=="texterror"){tmp_arr[i].innerHTML="&nbsp;"}}var selected=document.listproperty_frm.property_type_id.value;if(document.listproperty_frm.property_type_id.value==""){document.getElementById("div_propertyidcheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select property type";if(eval(count_bug)==0){document.listproperty_frm.property_type_id.focus()}count_bug+=1;if(focus_field==""){focus_field="property_type_id"}}if(document.listproperty_frm.city.value==""){document.getElementById("div_citycheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select a city";count_bug+=1;if(focus_field==""){focus_field="city"}}var separator="_";cityvalue=document.listproperty_frm.city.value.split(separator);if((cityvalue[0]=="other"||cityvalue[0]=="Other")&&(document.listproperty_frm.city_other.value==""||document.listproperty_frm.city_other.value=="Please enter other city")){document.getElementById("div_othercitycheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter other city";count_bug+=1;if(focus_field==""){focus_field="city_other"}}if(document.listproperty_frm.locality_id.value==""){document.getElementById("div_locationcheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select the locality";count_bug+=1;if(focus_field==""){focus_field="locality_id"}}if((document.listproperty_frm.locality_id.value=="other"||document.listproperty_frm.locality_id.value=="Other")&&(document.listproperty_frm.locality_other.value=="Please enter other locality"||document.listproperty_frm.locality_other.value=="")){document.getElementById("div_otherlocationcheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a locality";count_bug+=1;if(focus_field==""){focus_field="locality_other"}}if((selected==res_plot||selected==com_land)&&(document.listproperty_frm.area_unit.value==""||document.listproperty_frm.area_unit.value=="Unit")){document.getElementById("div_areacheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please check the area unit";count_bug+=1}if(document.listproperty_frm.area_value.value==""||isNaN(document.listproperty_frm.area_value.value)){document.getElementById("div_areacheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please check the area/unit";count_bug+=1;if(focus_field==""){focus_field="area_value"}}if(document.listproperty_frm.area_value.value=="0"){document.getElementById("div_areacheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please provide a valid area/unit";count_bug+=1;if(focus_field==""){focus_field="area_value"}}else{if(document.listproperty_frm.area_value.value.indexOf(".")!="-1"){document.getElementById("div_areacheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please provide area/unit without decimals";count_bug+=1;if(focus_field==""){focus_field="area_value"}}}if(document.listproperty_frm.price.value==""||document.listproperty_frm.price.value=="0"||document.listproperty_frm.price.value=="0.00"||isNaN(document.listproperty_frm.price.value)){document.getElementById("div_pricecheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid price";count_bug+=1;if(focus_field==""){focus_field="price"}}else{if(document.listproperty_frm.price.value.indexOf(".")!="-1"){document.getElementById("div_pricecheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter the price without decimals";count_bug+=1;if(focus_field==""){focus_field="price"}}}if(document.listproperty_frm.is_negotiable[0].checked==false&&document.listproperty_frm.is_negotiable[1].checked==false){document.getElementById("div_negotiablecheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please choose whether the price is negotiable.";count_bug+=1}if(selected!=res_plot&&selected!=com_land&&selected!=com_office&&selected!=business_center&&selected!=com_shop&&selected!=com_other&&selected!=ware_house&&selected!=inductrial_setup){if(document.listproperty_frm.bedroom.value==""){document.getElementById("div_bedcheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please provide no. of bedroom";count_bug+=1;if(focus_field==""){focus_field="bedroom"}}}if(selected!=res_plot&&selected!=com_land&&selected!=independent_bunglow&&selected!=farm_house&&selected!=ware_house&&selected!=inductrial_setup){if(document.listproperty_frm.number_of_floor.value==""||isNaN(document.listproperty_frm.number_of_floor.value)){document.getElementById("div_numfloorcheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select the floor number";count_bug+=1;if(focus_field==""){focus_field="number_of_floor"}}}if(selected!=res_plot&&selected!=com_land&&selected!=independent_bunglow&&selected!=farm_house&&selected!=ware_house&&selected!=inductrial_setup){if(parseInt(document.listproperty_frm.number_of_floor.value)>parseInt(document.listproperty_frm.total_floor.value)){document.getElementById("div_numfloorcheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Total floors in building should be more than or equal to your floor";count_bug+=1;if(focus_field==""){focus_field="number_of_floor"}}}if(document.listproperty_frm.contact_more_info.value!=""){check_description_value()}if(document.listproperty_frm.contact_name.value==""||document.listproperty_frm.contact_name.value=="Contact Name"||validatesymbolwithspace("listproperty_frm","contact_name")==false){document.getElementById("div_cnamecheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid name";count_bug+=1;if(focus_field==""){focus_field="contact_name"}}if(document.listproperty_frm.mob_country_code.value==""&&document.listproperty_frm.mobile1.value!=""){document.getElementById("msg_phone").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid country code.";count_bug+=1;if(focus_field==""){focus_field="mobile1"}}if(document.listproperty_frm.mob_country_code.value!=""&&document.listproperty_frm.mobile1.value==""){document.getElementById("msg_phone").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid mobile.";count_bug+=1;if(focus_field==""){focus_field="mobile1"}}if(document.listproperty_frm.mobile1.value==""&&document.listproperty_frm.contact_mobile2.value==""){document.getElementById("msg_phone").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid mobile.";count_bug+=1;if(focus_field==""){focus_field="mobile1"}}else{if(!ValidateNo(document.listproperty_frm.mobile1.value,"1234567890,-/+")&&document.listproperty_frm.mobile1.value!=""){document.getElementById("msg_phone").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid mobile.";count_bug+=1;if(focus_field==""){focus_field="mobile1"}}else{if(!ValidateNo(document.listproperty_frm.contact_mobile2.value,"1234567890,-/+")&&document.listproperty_frm.contact_mobile2.value!=""){document.getElementById("msg_phone").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional mobile.";count_bug+=1;if(focus_field==""){focus_field="contact_mobile2"}}else{if(!ValidateNo(document.listproperty_frm.mob_country_code.value,"1234567890,-/+")&&document.listproperty_frm.mob_country_code.value!=""){document.getElementById("msg_phone").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid country code.";count_bug+=1;if(focus_field==""){focus_field="mob_country_code"}}else{if(!ValidateNo(document.listproperty_frm.ph_country_code.value,"1234567890,-/+")&&document.listproperty_frm.ph_country_code.value!=""){document.getElementById("msg_phone").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional country code.";count_bug+=1;if(focus_field==""){focus_field="ph_country_code"}}else{if(document.listproperty_frm.ph_country_code.value!=""&&document.listproperty_frm.contact_mobile2.value==""){document.getElementById("msg_phone").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional mobile.";count_bug+=1;if(focus_field==""){focus_field="contact_mobile2"}}else{if(document.listproperty_frm.ph_country_code.value==""&&document.listproperty_frm.contact_mobile2.value!=""){document.getElementById("msg_phone").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your additional country code.";count_bug+=1;if(focus_field==""){focus_field="contact_mobile2"}}else{if(!ValidateNo(document.listproperty_frm.contact_mobile2.value,"1234567890,-/+")&&document.listproperty_frm.contact_mobile2.value!=""){document.getElementById("msg_phone").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional mobile.";count_bug+=1;if(focus_field==""){focus_field="contact_mobile2"}}}}}}}}}if(isNaN(document.listproperty_frm.ph_area_code.value)&&document.listproperty_frm.ph_area_code.value!=""){document.getElementById("msg_mobile_add").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid area code.";count_bug+=1;if(focus_field==""){focus_field="ph_area_code"}}else{if(document.listproperty_frm.ph_area_code.value!=""&&document.listproperty_frm.phone1.value==""){document.getElementById("msg_mobile_add").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid landline.";count_bug+=1;if(focus_field==""){focus_field="phone1"}}else{if(document.listproperty_frm.ph_area_code.value==""&&document.listproperty_frm.phone1.value!=""){document.getElementById("msg_mobile_add").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your area code.";count_bug+=1;if(focus_field==""){focus_field="phone1"}}else{if(!ValidateNo(document.listproperty_frm.phone1.value,"1234567890,-/+")&&document.listproperty_frm.phone1.value!=""){document.getElementById("msg_mobile_add").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid landline.";count_bug+=1;if(focus_field==""){focus_field="phone1"}}}}}if(isNaN(document.listproperty_frm.ph_area_code2.value)&&document.listproperty_frm.ph_area_code2.value!=""){document.getElementById("msg_mobile_add").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional area code.";count_bug+=1;if(focus_field==""){focus_field="ph_area_code2"}}else{if(document.listproperty_frm.ph_area_code2.value!=""&&document.listproperty_frm.contact_phone2.value==""){document.getElementById("msg_mobile_add").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional landline.";count_bug+=1;if(focus_field==""){focus_field="ph_area_code2"}}else{if(document.listproperty_frm.ph_area_code2.value==""&&document.listproperty_frm.contact_phone2.value!=""){document.getElementById("msg_mobile_add").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your additional area code.";count_bug+=1;if(focus_field==""){focus_field="ph_area_code2"}}else{if(!ValidateNo(document.listproperty_frm.contact_phone2.value,"1234567890,-/+")&&document.listproperty_frm.contact_phone2.value!=""){document.getElementById("msg_mobile_add").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional landline.";count_bug+=1;if(focus_field==""){focus_field="contact_phone2"}}}}}if(listproperty_frm.contact_email.value!=""){if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(listproperty_frm.contact_email.value)){}else{document.getElementById("div_cemailcheck").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid e-mail.";count_bug+=1;if(focus_field==""){focus_field="contact_email"}}}if(count_bug>0){eval("document.listproperty_frm."+focus_field+".focus();");return false}else{return true}}function check_listing_block(){clearValidation("listproperty_frm");var res_plot=4;var com_land=10;var farm_house=7;var ware_house=13;var independent_bunglow=6;var com_office=11;var business_center=12;var inductrial_setup=14;var com_shop=15;var com_other=16;var res_other=9;var count_bug=0;document.getElementById("div_msg1").innerHTML="&nbsp;";var selected=document.listproperty_frm.property_type_id.value;if(document.listproperty_frm.property_type_id.value==""){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select property type";if(eval(count_bug)==0){document.listproperty_frm.property_type_id.focus()}count_bug+=1;document.listproperty_frm.property_type_id.className="errorcontrol"}if(document.listproperty_frm.project_name.value!=""&&!check_name(document.listproperty_frm.project_name.value)){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter project / society name without any special characters.";document.listproperty_frm.project_name.focus()}document.listproperty_frm.project_name.className="errorcontrol";count_bug+=1}if(document.listproperty_frm.city.value==""){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select a city";document.listproperty_frm.city.focus()}document.listproperty_frm.city.className="errorcontrol";count_bug+=1}var separator="_";cityvalue=document.listproperty_frm.city.value.split(separator);if((cityvalue[0]=="other"||cityvalue[0]=="Other")&&(document.listproperty_frm.city_other.value==""||document.listproperty_frm.city_other.value=="Please enter other city")){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter other city";document.listproperty_frm.city_other.focus()}document.listproperty_frm.city_other.className="errorcontrol";count_bug+=1}if(document.listproperty_frm.editing!=null&&document.listproperty_frm.editing!="undefined"&&document.listproperty_frm.editing.value=="1"){}else{if(document.getElementById("locality_id").value==""){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select the locality"}document.getElementById("locality_id").className="errorcontrol";count_bug+=1}}if((document.getElementById("locality_id").value=="other"||document.getElementById("locality_id").value=="Other")&&(document.getElementById("locality_other").value=="Please enter other locality"||document.getElementById("locality_other").value=="")){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a locality";document.getElementById("locality_other").focus()}document.getElementById("locality_other").className="errorcontrol";count_bug+=1}if((selected==4||selected==10||selected==6||selected==9||selected==16||selected==7)&&(document.listproperty_frm.area_unit.value==""||document.listproperty_frm.area_unit.value=="Unit")){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select the area unit";document.listproperty_frm.area_unit.focus()}document.listproperty_frm.area_unit.className="errorcontrol";count_bug+=1}if(document.listproperty_frm.area_value.value==""||isNaN(document.listproperty_frm.area_value.value)){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter the area";document.listproperty_frm.area_value.focus()}document.listproperty_frm.area_value.className="errorcontrol";count_bug+=1}if(document.listproperty_frm.area_value.value=="0"){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please provide a valid area/unit";document.listproperty_frm.area_value.focus()}document.listproperty_frm.area_value.className="errorcontrol";count_bug+=1}else{if(document.listproperty_frm.area_value.value.indexOf(".")!="-1"){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please provide valid area/unit without decimals";document.listproperty_frm.area_value.focus()}document.listproperty_frm.area_value.className="errorcontrol";count_bug+=1}}if(document.listproperty_frm.price.value==""||document.listproperty_frm.price.value=="0"||document.listproperty_frm.price.value=="0.00"||isNaN(document.listproperty_frm.price.value)){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid price";document.listproperty_frm.price.focus()}document.listproperty_frm.price.className="errorcontrol";count_bug+=1}else{if(document.listproperty_frm.price.value.indexOf(".")!="-1"){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter the price without decimals";document.listproperty_frm.price.focus()}document.listproperty_frm.price.className="errorcontrol";count_bug+=1}}if(document.listproperty_frm.is_negotiable[0].checked==false&&document.listproperty_frm.is_negotiable[1].checked==false){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please choose whether the price is negotiable."}document.listproperty_frm.is_negotiable.className="errorcontrol";count_bug+=1}if(selected!=4&&selected!=10&&selected!=11&&selected!=12&&selected!=15&&selected!=16&&selected!=13&&selected!=14){if(document.listproperty_frm.bedroom.value==""){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please provide no. of bedroom";document.listproperty_frm.bedroom.focus()}count_bug+=1;document.listproperty_frm.bedroom.className="errorcontrol"}}if((selected==3||selected==5||selected==8||selected==9||selected==11||selected==12||selected==15)&&document.listproperty_frm.number_of_floor.value==""){if(eval(count_bug)==0){document.getElementById("div_msg1").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select floor number";document.listproperty_frm.number_of_floor.focus()}document.listproperty_frm.number_of_floor.className="errorcontrol";count_bug+=1}if(count_bug==0){if(document.listproperty_frm.member_id.value==0){for(i=0;i<2;i++){document.frm_login.usertype[i].disabled=true}}setBlock("1","2");setImage("1","0")}return false}function check_optional_details(){clearValidation("listproperty_frm");var P=4;var Q=10;var J=7;var F=13;var N=6;var A=11;var H=12;var I=14;var L=15;var O=16;var B=9;var C=0;document.getElementById("div_msg2").innerHTML="&nbsp;";var D=document.listproperty_frm.property_type_id.value;if(D!=P&&D!=Q&&D!=N&&D!=J&&D!=F&&D!=I){if(parseInt(document.listproperty_frm.number_of_floor.value)>parseInt(document.listproperty_frm.total_floor.value)){document.getElementById("div_msg2").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Total floors in building should be more than or equal to your floor";document.listproperty_frm.total_floor.className="errorcontrol";C+=1}}if(document.listproperty_frm.contact_more_info.value!=""){if(C==0){document.getElementById("div_msg2").innerHTML=""}var G=document.listproperty_frm.contact_more_info.value;var M=createAjaxObject("1");var K="/ssi/ajax/check-abusive.php?value="+escape(document.listproperty_frm.contact_more_info.value);M.open("GET",K,true);M.onreadystatechange=function(){if(M.readyState==4){var R=M.responseText;if(R!=""){document.getElementById("div_msg2").innerHTML=R;return false}else{if(C==0){document.getElementById("div_msg2").innerHTML="";setBlock("2","3");setImage("2","0");return true}else{return false}}}else{}};M.send(null)}else{if(C==0){setBlock("2","3");setImage("2","0");return true}}return false}function check_contact_details(){clearValidation("listproperty_frm");var count_bug=0;var mid=document.listproperty_frm.member_id.value;document.getElementById("div_msg3").innerHTML="&nbsp;";if(document.listproperty_frm.contact_name.value==""||document.listproperty_frm.contact_name.value=="Contact Name"||validatesymbolwithspace("listproperty_frm","contact_name")==false){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid name";document.listproperty_frm.contact_name.focus()}document.listproperty_frm.contact_name.className="errorcontrol";count_bug+=1}if(mid=="0"){len=document.listproperty_frm.member_type.length;for(i="0";i<len;i++){if(document.listproperty_frm.member_type[i].checked==true){mtype=document.listproperty_frm.member_type[i].value}}if(mtype=="1"||mtype=="2"){cityField=document.listproperty_frm.member_city}else{cityField=document.listproperty_frm.member_city2}if(cityField.value==""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please select your city.";cityField.focus()}cityField.className="errorcontrol";count_bug+=1}}if(document.listproperty_frm.mob_country_code.value==""&&document.listproperty_frm.mobile1.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid country code.";document.listproperty_frm.mob_country_code.focus()}document.listproperty_frm.mob_country_code.className="errorcontrol";count_bug+=1}if(document.listproperty_frm.mob_country_code.value!=""&&document.listproperty_frm.mobile1.value==""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid mobile.";document.listproperty_frm.mobile1.focus()}document.listproperty_frm.mobile1.className="errorcontrol";count_bug+=1}if(document.listproperty_frm.mobile1.value==""&&document.listproperty_frm.contact_mobile2.value==""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid mobile.";document.listproperty_frm.mobile1.focus()}document.listproperty_frm.mobile1.className="errorcontrol";count_bug+=1}else{if(!ValidateNo(document.listproperty_frm.mobile1.value,"1234567890,-/+")||(document.listproperty_frm.mobile1.value.substring(0,1)!="9"&&document.listproperty_frm.mobile1.value.substring(0,1)!="8")){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid mobile.";document.listproperty_frm.mobile1.focus()}document.listproperty_frm.mobile1.className="errorcontrol";count_bug+=1}else{if((!ValidateNo(document.listproperty_frm.contact_mobile2.value,"1234567890,-/+")||(document.listproperty_frm.contact_mobile2.value.substring(0,1)!="9"&&document.listproperty_frm.contact_mobile2.value.substring(0,1)!="8"))&&document.listproperty_frm.contact_mobile2.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="&nbsp;&nbsp;<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional mobile.";document.listproperty_frm.contact_mobile2.focus()}document.listproperty_frm.contact_mobile2.className="errorcontrol";count_bug+=1}else{if(!ValidateNo(document.listproperty_frm.mob_country_code.value,"1234567890,-/+")&&document.listproperty_frm.mob_country_code.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid country code.";document.listproperty_frm.mob_country_code.focus()}document.listproperty_frm.mob_country_code.className="errorcontrol";count_bug+=1}else{if(!ValidateNo(document.listproperty_frm.ph_country_code.value,"1234567890,-/+")&&document.listproperty_frm.ph_country_code.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional country code.";document.listproperty_frm.ph_country_code.focus()}document.listproperty_frm.ph_country_code.className="errorcontrol";count_bug+=1}else{if(document.listproperty_frm.ph_country_code.value!=""&&document.listproperty_frm.contact_mobile2.value==""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional mobile.";document.listproperty_frm.contact_mobile2.focus()}document.listproperty_frm.contact_mobile2.className="errorcontrol";count_bug+=1}else{if(document.listproperty_frm.ph_country_code.value==""&&document.listproperty_frm.contact_mobile2.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your additional country code.";document.listproperty_frm.contact_mobile2.focus()}document.listproperty_frm.contact_mobile2.className="errorcontrol";count_bug+=1}else{if(!ValidateNo(document.listproperty_frm.contact_mobile2.value,"1234567890,-/+")&&document.listproperty_frm.contact_mobile2.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional mobile.";document.listproperty_frm.contact_mobile2.focus()}document.listproperty_frm.contact_mobile2.className="errorcontrol";count_bug+=1}}}}}}}}if(isNaN(document.listproperty_frm.ph_area_code.value)&&document.listproperty_frm.ph_area_code.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid area code.";document.listproperty_frm.ph_area_code.focus()}document.listproperty_frm.ph_area_code.className="errorcontrol";count_bug+=1}else{if(document.listproperty_frm.ph_area_code.value!=""&&document.listproperty_frm.phone1.value==""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid landline.";document.listproperty_frm.phone1.focus()}document.listproperty_frm.phone1.className="errorcontrol";count_bug+=1}else{if(document.listproperty_frm.ph_area_code.value==""&&document.listproperty_frm.phone1.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your area code.";document.listproperty_frm.phone1.focus()}document.listproperty_frm.phone1.className="errorcontrol";count_bug+=1}else{if(!ValidateNo(document.listproperty_frm.phone1.value,"1234567890,-/+")&&document.listproperty_frm.phone1.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid landline.";document.listproperty_frm.phone1.focus()}document.listproperty_frm.phone1.className="errorcontrol";count_bug+=1}}}}if(isNaN(document.listproperty_frm.ph_area_code2.value)&&document.listproperty_frm.ph_area_code2.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional area code.";document.listproperty_frm.ph_area_code2.focus()}document.listproperty_frm.ph_area_code2.className="errorcontrol";count_bug+=1}else{if(document.listproperty_frm.ph_area_code2.value!=""&&document.listproperty_frm.contact_phone2.value==""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional landline.";document.listproperty_frm.ph_area_code2.focus()}document.listproperty_frm.ph_area_code2.className="errorcontrol";count_bug+=1}else{if(document.listproperty_frm.ph_area_code2.value==""&&document.listproperty_frm.contact_phone2.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your additional area code.";document.listproperty_frm.ph_area_code2.focus()}document.listproperty_frm.ph_area_code2.className="errorcontrol";count_bug+=1}else{if(!ValidateNo(document.listproperty_frm.contact_phone2.value,"1234567890,-/+")&&document.listproperty_frm.contact_phone2.value!=""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter your valid additional landline.";document.listproperty_frm.contact_phone2.focus()}document.listproperty_frm.contact_phone2.className="errorcontrol";count_bug+=1}}}}if(document.listproperty_frm.contact_email.value==""){if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid e-mail.";document.listproperty_frm.contact_email.focus()}document.listproperty_frm.contact_email.className="errorcontrol";count_bug+=1}else{if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(listproperty_frm.contact_email.value)){}else{if(eval(count_bug)==0){document.getElementById("div_msg3").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter a valid e-mail.";document.listproperty_frm.contact_email.focus()}document.listproperty_frm.contact_email.className="errorcontrol";count_bug+=1}}if(document.listproperty_frm.freelisting!=null&&document.listproperty_frm.freelisting!="undefined"&&document.listproperty_frm.freelisting.value=="1"){if(count_bug==0){var frbalance=parseInt(document.getElementById("fr_balance").innerHTML);if((frbalance-1)>0){var mType=document.listproperty_frm.m_type.value;if(mType==""){len=document.listproperty_frm.member_type.length;for(i="0";i<len;i++){if(document.listproperty_frm.member_type[i].checked==true){mType=document.listproperty_frm.member_type[i].value}}}if(mType=="1"){var yesnoHtml="<div id='hcontentarea' align='center'><span align='center' style='font-size:11px;width:270px;' class='textnopad'><b>Anniversary Offer: You have balance "+(frbalance-1)+" free listings</b><br><br></span><span align='center' style='font-size:14px;width:270px;' class='textnopad'><b>Do you want to submit more<br>property listings?</b></span><p style='text-align:center'><span id='YesText'><a href='javascript:void' onclick='submit_listing(\"yes\", \"1\"); return false;' class='hrefheaderunderline' style='color:#0C80AF;' ><b>Yes</b></a></span>&nbsp;&nbsp;&nbsp;&nbsp;<input type='image' id='No' src='"+IMG_SERVER+'/images/list-property/no-thanks.gif\' onclick=\'submit_listing("no", "1");\'/></p></div>'}else{var yesnoHtml="<div id='hcontentarea' align='center'><span align='center' style='font-size:11px;width:270px;' class='textnopad'><b>Anniversary Offer: You have balance "+(frbalance-1)+" free listings</b><br><br></span><span align='center' style='font-size:14px;width:270px;' class='textnopad'><b>Do you want to submit more<br>property listings?</b></span><p style='text-align:center'><input type='image' id='Yes' src='"+IMG_SERVER+"/images/list-property/yes.gif' onclick='submit_listing(\"yes\", \"1\");' /><span id='NoText'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='javascript:void' onclick='submit_listing(\"no\", \"1\"); return false;' class='hrefheaderunderline' style='color:#0C80AF;' ><b>No Thanks</b></a></span></p></div>"}}}}else{if(document.listproperty_frm.editing!=null&&document.listproperty_frm.editing!="undefined"&&document.listproperty_frm.editing.value=="1"){if(count_bug==0){if(document.listproperty_frm.updating!=null&&document.listproperty_frm.updating!="undefined"&&document.listproperty_frm.updating.value=="1"){document.getElementById("div_msg3").innerHTML="";setBlock("3","4");setImage("3","0")}else{var ajxObj=createAjaxObject("6");var serverPage="/ssi/ajax/check-availability.php?type=cl&memberid="+escape(mid)+"&mobile="+escape(document.listproperty_frm.mobile1.value)+"&email="+escape(document.listproperty_frm.contact_email.value);ajxObj.open("GET",serverPage,true);ajxObj.onreadystatechange=function(){if(ajxObj.readyState==4){var text=ajxObj.responseText;if(text!=""){var e=text.substr(0,1);document.getElementById("div_msg3").innerHTML=text.substr(1,(text.length));if(e=="m"){document.listproperty_frm.mobile1.focus();document.listproperty_frm.mobile1.className="errorcontrol"}else{document.listproperty_frm.contact_email.focus();document.listproperty_frm.contact_email.className="errorcontrol"}count_bug+=1}else{document.getElementById("div_msg3").innerHTML="";document.listproperty_frm.submit()}}else{document.getElementById("div_msg3").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>'}};ajxObj.send(null)}return true}return false}else{var mType=document.listproperty_frm.m_type.value;if(mType==""){len=document.listproperty_frm.member_type.length;for(i="0";i<len;i++){if(document.listproperty_frm.member_type[i].checked==true){mType=document.listproperty_frm.member_type[i].value}}}if(mType=="1"){var yesnoHtml="<div id='hcontentarea'><p align='center' style='font-size:16px;width:270px;' class='textnopad'><br><b>Do you want to submit more<br>property listings?<br><br></b></p><p style='text-align:center'><span id='YesText'><a href='javascript:void' onclick='submit_listing(\"yes\"); return false;' class='hrefheaderunderline' style='color:#0C80AF;' ><b>Yes</b></a></span>&nbsp;&nbsp;&nbsp;&nbsp;<input type='image' id='No' src='"+IMG_SERVER+"/images/list-property/no-thanks.gif' onclick='submit_listing(\"no\");'/></p></div>"}else{var yesnoHtml="<div id='hcontentarea'><p align='center' style='font-size:16px;width:270px;' class='textnopad'><br><b>Do you want to submit more<br>property listings?<br><br></b></p><p style='text-align:center'><input type='image' id='Yes' src='"+IMG_SERVER+"/images/list-property/yes.gif' onclick='submit_listing(\"yes\");' /><span id='NoText'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='javascript:void' onclick='submit_listing(\"no\"); return false;' class='hrefheaderunderline' style='color:#0C80AF;' ><b>No Thanks</b></a></span></p></div>"}}}if(count_bug==0){var ajxObj=createAjaxObject("4");if(mid=="0"){var serverPage="/ssi/ajax/check-availability.php?type=cl&mobile="+escape(document.listproperty_frm.mobile1.value)+"&email="+escape(document.listproperty_frm.contact_email.value)}else{var serverPage="/ssi/ajax/check-availability.php?type=cl&memberid="+escape(mid)+"&mobile="+escape(document.listproperty_frm.mobile1.value)+"&email="+escape(document.listproperty_frm.contact_email.value)}ajxObj.open("GET",serverPage,true);ajxObj.onreadystatechange=function(){if(ajxObj.readyState==4){var text=ajxObj.responseText;if(text!=""){var e=text.substr(0,1);document.getElementById("div_msg3").innerHTML=text.substr(1,(text.length));if(e=="m"){document.listproperty_frm.mobile1.focus();document.listproperty_frm.mobile1.className="errorcontrol"}else{document.listproperty_frm.contact_email.focus();document.listproperty_frm.contact_email.className="errorcontrol"}count_bug+=1}else{document.getElementById("div_msg3").innerHTML="";document.getElementById("hiddenModalContent").innerHTML=yesnoHtml;var locherf="#pagetop";document.location=locherf;if(document.listproperty_frm.freelisting!=null&&document.listproperty_frm.freelisting!="undefined"&&document.listproperty_frm.freelisting.value=="1"){var frbalance=parseInt(document.getElementById("fr_balance").innerHTML);if((frbalance-1)>0){tb_show("","#TB_inline?height=165&amp;width=300&amp;inlineId=hiddenModalContent&amp;modal=true",null)}else{submit_listing("no","1");return false}}else{tb_show("","#TB_inline?height=165&amp;width=300&amp;inlineId=hiddenModalContent&amp;modal=true",null)}}}else{document.getElementById("div_msg3").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>'}};ajxObj.send(null)}return false}function add_to_array(B){var A=ajx_submit();if(B=="yes"){setBlock("3","1");setImage("1","1");setImage("2","1");setImage("3","1")}else{setBlock("3","4");setImage("3","0")}}function change_res_com_land(){var L;L=4;var J;J=6;var H;H=7;var B;B=9;var M;M=10;var A;A=11;var G;G=12;var D;D=13;var F;F=14;var I;I=15;var K;K=16;var C;C=document.listproperty_frm.property_type_id.value;if(C==16){document.getElementById("floor_star").innerHTML=""}else{document.getElementById("floor_star").innerHTML="&nbsp;*&nbsp;"}if(C==L||C==M||C==B||C==K||C==J||C==H){document.getElementById("unit_combo").style.display="";document.getElementById("sqfeet").style.display="none"}else{document.getElementById("unit_combo").style.display="none";document.getElementById("sqfeet").style.display=""}if(C==L||C==M){document.getElementById("tr_bedrooms").style.display="none";document.getElementById("tr_bathrooms").style.display="none";document.getElementById("tr_furnished").style.display="none";document.getElementById("tr_age_of_construction").style.display="none";document.getElementById("tr_number_of_floor").style.display="none";document.getElementById("tr_total_floor").style.display="none";document.getElementById("tr_features").style.display="none";document.getElementById("tr_features_all").style.display="none"}else{if(C==J||C==H){document.getElementById("tr_bedrooms").style.display="";document.getElementById("tr_bathrooms").style.display="";document.getElementById("tr_furnished").style.display="";document.getElementById("tr_age_of_construction").style.display="";document.getElementById("tr_number_of_floor").style.display="none";document.getElementById("tr_total_floor").style.display="none";document.getElementById("tr_features").style.display="";document.getElementById("tr_features_all").style.display=""}else{if(C==A||C==G||C==I||C==K){document.getElementById("tr_bedrooms").style.display="none";document.getElementById("tr_bathrooms").style.display="none";document.getElementById("tr_furnished").style.display="";document.getElementById("tr_age_of_construction").style.display="";document.getElementById("tr_number_of_floor").style.display="";document.getElementById("tr_total_floor").style.display="";document.getElementById("tr_features").style.display="";document.getElementById("tr_features_all").style.display=""}else{if(C==D||C==F){document.getElementById("tr_bedrooms").style.display="none";document.getElementById("tr_bathrooms").style.display="none";document.getElementById("tr_furnished").style.display="";document.getElementById("tr_age_of_construction").style.display="";document.getElementById("tr_number_of_floor").style.display="none";document.getElementById("tr_total_floor").style.display="none";document.getElementById("tr_features").style.display="";document.getElementById("tr_features_all").style.display=""}else{document.getElementById("tr_bedrooms").style.display="";document.getElementById("tr_bathrooms").style.display="";document.getElementById("tr_furnished").style.display="";document.getElementById("tr_age_of_construction").style.display="";document.getElementById("tr_number_of_floor").style.display="";document.getElementById("tr_total_floor").style.display="";document.getElementById("tr_features").style.display="";document.getElementById("tr_features_all").style.display=""}}}}}function change_asking_price(res_id,com_id,farm_id,warehouse_id){var res_plot;res_plot=4;var independent_bunglow;independent_bunglow=6;var farm_house;farm_house=7;var res_other;res_other=9;var com_land;com_land=10;var com_office;com_office=11;var business_center;business_center=12;var ware_house;ware_house=13;var inductrial_setup;inductrial_setup=14;var com_shop;com_shop=15;var com_other;com_other=16;var area_value;area_value=0;if(document.listproperty_frm.area_value.value!=""&&document.listproperty_frm.area_value.value!="undefined"){area_value=document.listproperty_frm.area_value.value}var price_value;price_value=0;if(document.listproperty_frm.price.value!=""){price_value=document.listproperty_frm.price.value}var selected=document.listproperty_frm.property_type_id.value;if(selected!=res_plot&&selected!=com_land&&selected!=independent_bunglow&&selected!=farm_house&&selected!=res_other&&selected!=com_other){document.getElementById("unit_combo").style.display="none"}else{document.getElementById("unit_combo").style.display=""}if(area_value!=""&&eval(area_value)>0&&!isNaN(area_value)&&price_value!=""&&eval(price_value)>0&&!isNaN(price_value)){var asking=(parseInt(price_value)/parseInt(area_value));msg="<b>Rate (Price / Area)</b> for your property is <strong class='orange'>Rs. "+asking.toFixed(0);if(document.listproperty_frm.area_unit.value!=""&&document.listproperty_frm.area_unit.value!="Unit"){msg+=" / "+document.listproperty_frm.area_unit.value}if((selected==res_id||selected==com_id)&&document.listproperty_frm.area_unit.value=="Unit"){msg+=" / Unit Area"}if((document.listproperty_frm.area_unit.value=="Unit"||document.listproperty_frm.area_unit.value=="")&&selected!=res_id&&selected!=com_id){msg+=" / Sq.Ft"}document.getElementById("div_show_price").innerHTML=msg+"</strong>"}else{document.getElementById("div_show_price").innerHTML="<b>Rate (Price / Area)</b> for your property is <strong class='orange'>Rs. 0 / Unit Area</strong>"}}function check_description_value(){if(document.listproperty_frm.contact_more_info.value!=""){document.getElementById("div_msg2").innerHTML="";var A=makerequest("/ssi/ajax/check-abusive.php?value="+escape(document.listproperty_frm.contact_more_info.value),"div_msg2")}}var http_request=false;function makePOSTRequest(url,parameters,val,lt){var http_request=false;try{http_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){http_request=false}}if(!http_request&&typeof XMLHttpRequest!="undefined"){http_request=new XMLHttpRequest()}if(!http_request){alert("Cannot create XMLHTTP instance");return false}http_request.onreadystatechange=function(){if(http_request.readyState==4){if(http_request.status==200){document.body.scroll="yes";var response=http_request.responseText;var statusDigit=response.substr(0,1);var arr_status=response.split("#");if(statusDigit=="e"){var errorBlock=arr_status[1];var errorField=arr_status[2];var errorCode=arr_status[3];var regDigit=arr_status[4];var regName=arr_status[5];var regMType=arr_status[6];if(regDigit!="0"){updateLoginStatus(regName);document.listproperty_frm.member_id.value=regDigit;document.listproperty_frm.m_type.value=regMType}if(eval("document.listproperty_frm."+errorField)!=null&&eval("document.listproperty_frm."+errorField)!="undefined"){eval("document.listproperty_frm."+errorField+".focus();");eval("document.listproperty_frm."+errorField+".className='errorcontrol'")}if(errorBlock==1){document.getElementById("div_msg1").innerHTML=errorCode;document.getElementById("step_1").className="hide";document.getElementById("block_1").className="show";document.getElementById("step_2").className="show";document.getElementById("block_2").className="hide";document.getElementById("step_3").className="show";document.getElementById("block_3").className="hide"}else{if(errorBlock==2){document.getElementById("div_msg2").innerHTML=errorCode;document.getElementById("step_1").className="show";document.getElementById("block_1").className="hide";document.getElementById("step_2").className="hide";document.getElementById("block_2").className="show";document.getElementById("step_3").className="show";document.getElementById("block_3").className="hide"}else{if(errorBlock==3){document.getElementById("div_msg3").innerHTML=errorCode;document.getElementById("step_1").className="show";document.getElementById("block_1").className="hide";document.getElementById("step_2").className="show";document.getElementById("block_2").className="hide";document.getElementById("step_3").className="hide";document.getElementById("block_3").className="show"}}}tb_remove()}else{var propertyStatus=arr_status[0];var propertyId=arr_status[1];var freecityList=arr_status[2];if(freecityList==0){if(lt=="0"){if(propertyId!="-1"){document.listproperty_frm.listedbasic.value=parseInt(document.listproperty_frm.listedbasic.value)+1}if(document.getElementById("tr_topinfo2")!=null&&document.getElementById("tr_topinfo2")!="undefined"){document.getElementById("tr_topinfo2").style.display="none"}}else{if(propertyId!="-1"){document.listproperty_frm.listedfr.value=parseInt(document.listproperty_frm.listedfr.value)+1}}}else{if(lt=="1"){if(propertyId!="-1"){document.listproperty_frm.listedfr.value=parseInt(document.listproperty_frm.listedfr.value)+1}}}var regDigit=arr_status[3];var regName=arr_status[4];var regMType=arr_status[5];if(regDigit!="0"){document.listproperty_frm.m_type.value=regMType;updateLoginStatus(regName);document.listproperty_frm.member_id.value=regDigit;document.getElementById("login-details").innerHTML="Listing Details"}if(document.listproperty_frm.str_pid.value=="0"){document.listproperty_frm.str_pid.value=propertyId}else{document.listproperty_frm.str_pid.value+=","+propertyId}if(val=="yes"){var basicBalance=parseInt(document.listproperty_frm.basicbalance.value);var frBalance=parseInt(document.listproperty_frm.frbalance.value);if(document.listproperty_frm.freemarketfruser.value=="1"&&freecityList==0){frBalance=0}else{if(document.listproperty_frm.freemarketfruser.value=="1"&&freecityList==1){document.listproperty_frm.freemarketfruser.value="0"}}var listedBasic=parseInt(document.listproperty_frm.listedbasic.value);var listedFr=parseInt(document.listproperty_frm.listedfr.value);if((basicBalance>=listedBasic&&listedBasic>0)||(frBalance>=listedFr&&listedFr>0)){if(document.getElementById("fr_balance")!=null&&document.getElementById("fr_balance")!="undefined"){if(freecityList=="1"||(document.listproperty_frm.freemarketfruser.value=="0"&&document.listproperty_frm.freemarketfruserwithpaid.value=="0")){if(propertyId!="-1"){var fbalance=parseInt(frBalance)-parseInt(listedFr);if(fbalance<0){fbalance=0}document.getElementById("fr_balance").innerHTML=fbalance}var fbalance=parseInt(frBalance)-parseInt(listedFr);if(fbalance<0){fbalance=0}document.getElementById("fr_balance").innerHTML=fbalance;if(freecityList=="1"&&document.getElementById("tr_topinfo1")!=null&&document.getElementById("tr_topinfo1")!="undefined"){document.getElementById("tr_topinfo1").innerHTML=""}}else{if(document.listproperty_frm.freemarketfruserwithpaid.value=="1"&&freecityList=="0"){if(document.getElementById("fr_obalance")!=null&&document.getElementById("fr_obalance")!="undefined"){var fbalance=parseInt(document.getElementById("fr_obalance").innerHTML)-1;document.getElementById("fr_obalance").innerHTML=fbalance;document.getElementById("fr2_obalance").innerHTML=fbalance}}}}if(document.getElementById("bas_balance")!=null&&document.getElementById("bas_balance")!="undefined"){var bbalance=parseInt(basicBalance)-parseInt(listedBasic);if(bbalance<0){bbalance=0}document.getElementById("bas_balance").innerHTML=bbalance}}else{if(basicBalance<listedBasic&&listedBasic>0&&document.listproperty_frm.freemarketbasicuser.value!="1"){var basic_amount=parseInt(document.listproperty_frm.basic_amount.value);document.getElementById("sbas").innerHTML="Basic (Rs."+basic_amount+")"}else{if(frBalance<listedFr&&listedFr>0){var frl_amount=parseInt(document.listproperty_frm.frl_amount.value);document.getElementById("sfr").innerHTML="Fast Response (Rs."+frl_amount+")"}}}if(document.listproperty_frm.askprice.value=="0"&&document.getElementById("step_4").className=="show"){document.listproperty_frm.askprice.value="1"}showhide();clearfields();tb_remove();setBlock("3","1");setImage("1","1");setImage("2","1");setImage("3","1")}else{var basicBalance=parseInt(document.listproperty_frm.basicbalance.value);var frBalance=parseInt(document.listproperty_frm.frbalance.value);var listedBasic=parseInt(document.listproperty_frm.listedbasic.value);var listedFr=parseInt(document.listproperty_frm.listedfr.value);if(document.listproperty_frm.freemarketfruser.value=="1"&&freecityList==0){frBalance=0}else{if(document.listproperty_frm.freemarketfruserwithpaid.value=="1"&&freecityList==0){var fbalance=parseInt(document.getElementById("fr_obalance").innerHTML)-1;if(fbalance<0){fbalance=0}document.getElementById("fr_obalance").innerHTML=fbalance;document.getElementById("fr2_obalance").innerHTML=fbalance}else{if(document.listproperty_frm.freemarketfruser.value=="1"&&freecityList==1){document.getElementById("fr_balance").innerHTML="0";document.listproperty_frm.freemarketfruser.value=="0";document.getElementById("tr_topinfo1").innerHTML=""}else{if(document.getElementById("fr_balance")!=null&&document.getElementById("fr_balance")!="undefined"){if(propertyId!="-1"){var fbalance=parseInt(frBalance)-parseInt(listedFr);if(fbalance<0){fbalance=0}document.getElementById("fr_balance").innerHTML=fbalance}var fbalance=parseInt(frBalance)-parseInt(listedFr);if(fbalance<0){fbalance=0}document.getElementById("fr_balance").innerHTML=fbalance}}}}if(document.getElementById("bas_balance")!=null&&document.getElementById("bas_balance")!="undefined"){var bbalance=parseInt(basicBalance)-parseInt(listedBasic);if(bbalance<0){bbalance=0}document.getElementById("bas_balance").innerHTML=bbalance}if(basicBalance<listedBasic&&listedBasic>0&&frBalance<listedFr&&listedFr>0){tb_remove();setBlock("3","4");setImage("3","0");var basic_amount=parseInt(document.listproperty_frm.basic_amount.value);document.listproperty_frm.payment.value="2";document.getElementById("basic-block").style.display="none";document.getElementById("fr-block").style.display="none";document.getElementById("both-block").style.display="";var basicpurchase=listedBasic-basicBalance;document.getElementById("listingsbothb").innerHTML=basicpurchase;document.getElementById("bbprice").innerHTML=basicpurchase*basic_amount;document.getElementById("bbpit").innerHTML=formatNumber(((basicpurchase*basic_amount)+TAX_RATE*(basicpurchase*basic_amount)/100),2);var frpurchase=listedFr-frBalance;document.getElementById("listingsbothf").innerHTML=frpurchase;document.getElementById("bfprice").innerHTML=frpurchase*parseInt(document.getElementById("bla").innerHTML);document.getElementById("bfpit").innerHTML=formatNumber(((frpurchase*parseInt(document.getElementById("bla").innerHTML))+TAX_RATE*(frpurchase*parseInt(document.getElementById("bla").innerHTML))/100),2);document.getElementById("listingsbothsum").innerHTML=parseInt(parseInt(basicpurchase)+parseInt(frpurchase));document.getElementById("bsumprice").innerHTML=parseInt(document.getElementById("bbprice").innerHTML)+parseInt(document.getElementById("bfprice").innerHTML);document.getElementById("bsumpit").innerHTML=formatNumber((parseFloat(document.getElementById("bbpit").innerHTML)+parseFloat(document.getElementById("bfpit").innerHTML)),2)}else{if(basicBalance<listedBasic&&listedBasic>0){tb_remove();setBlock("3","4");setImage("3","0");var basic_amount=parseInt(document.listproperty_frm.basic_amount.value);document.listproperty_frm.payment.value="0";document.getElementById("basic-block").style.display="";document.getElementById("fr-block").style.display="none";document.getElementById("both-block").style.display="none";var basicpurchase=listedBasic-basicBalance;document.getElementById("listingsb").innerHTML=basicpurchase;document.getElementById("bprice").innerHTML=basicpurchase*basic_amount;document.getElementById("bpit").innerHTML=formatNumber(((basicpurchase*basic_amount)+TAX_RATE*(basicpurchase*basic_amount)/100),2);if(document.listproperty_frm.m_type.value!="1"){document.listproperty_frm.bamount[2].checked=true}}else{if(frBalance<listedFr&&listedFr>0){tb_remove();setBlock("3","4");setImage("3","0");document.listproperty_frm.payment.value="1";document.getElementById("basic-block").style.display="none";document.getElementById("fr-block").style.display="";document.getElementById("both-block").style.display="none";var frpurchase=listedFr-frBalance;document.getElementById("listings").innerHTML=frpurchase;document.getElementById("fprice").innerHTML=frpurchase*parseInt(document.getElementById("la").innerHTML);document.getElementById("fpit").innerHTML=formatNumber(((frpurchase*parseInt(document.getElementById("la").innerHTML))+TAX_RATE*(frpurchase*parseInt(document.getElementById("la").innerHTML))/100),2);if(document.listproperty_frm.m_type.value!="1"){document.listproperty_frm.famount[2].checked=true}}else{var fastcode="";var url="";if(document.listproperty_frm.fastcode!=null&&document.listproperty_frm.fastcode!="undefined"){fastcode=document.listproperty_frm.fastcode.value;url="/property/create-listing-confirm.php?fastcode="+fastcode+"&pid="+document.listproperty_frm.str_pid.value}else{url="/property/create-listing-confirm.php?pid="+document.listproperty_frm.str_pid.value}document.location=url}}}}}}else{alert("There was a problem with the request.")}}};http_request.open("POST",url,true);http_request.setRequestHeader("Content-type","application/x-www-form-urlencoded");http_request.setRequestHeader("Content-length",parameters.length);http_request.setRequestHeader("Connection","close");http_request.send(parameters)}function check_payment_details(){var C="";var B="";var H="";var G=0;var D=0;var A=document.listproperty_frm.cmpn.value;var I=document.listproperty_frm.str_pid.value;var F="";if(document.listproperty_frm.loggedin.value=="0"){F="&n=1"}if(document.listproperty_frm.payment.value==0){if(document.listproperty_frm.m_type.value!="1"){len=document.listproperty_frm.bamount.length;for(i="0";i<len;i++){if(document.listproperty_frm.bamount[i].checked==true){H=document.listproperty_frm.bamount[i].value}}}else{H="2"}if(H==""){document.getElementById("div_msg4").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please choose listing pack";B++}if(H=="0"){C="BL010";G=10}else{if(H=="1"){C="BL005";G=5}else{C="BL001";G=document.getElementById("listingsb").innerHTML;if(G==""||G==0){if(B==0){document.getElementById("div_msg4").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter number of listings"}B++}}}if(B==0){document.location="/property/listing-payment-process.php?pid="+I+"&cmpn="+A+"&prodcode="+C+"&numlb="+G+F}}else{if(document.listproperty_frm.payment.value==1){if(document.listproperty_frm.m_type.value!="1"){len=document.listproperty_frm.famount.length;for(i="0";i<len;i++){if(document.listproperty_frm.famount[i].checked==true){H=document.listproperty_frm.famount[i].value}}}else{H="2"}if(H==""){document.getElementById("div_msg4").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please choose listing pack";B++}if(H=="0"){C="FL010";D=10}else{if(H=="1"){C="FL005";D=5}else{C="FL001";D=document.getElementById("listings").innerHTML;if(D==""||D==0){if(B==0){document.getElementById("div_msg4").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter number of listings"}B++}}}if(B==0){var J="";if(document.listproperty_frm.updating!=null&&document.listproperty_frm.updating!="undefined"&&document.listproperty_frm.updating.value=="1"){J="&act=b2f"}document.location="/property/listing-payment-process.php?pid="+I+"&cmpn="+A+"&prodcode="+C+"&numlf="+D+J+F}}else{if(document.listproperty_frm.payment.value==2){C="FB001";G=document.getElementById("listingsbothb").innerHTML;D=document.getElementById("listingsbothf").innerHTML;if(G==""||G==0||D==""||D==0){if(B==0){document.getElementById("div_msg4").innerHTML="<img src='"+ALERT_IMG+"' width='10' height='10' align='absmiddle' vspace='3' border=0>&nbsp;Please enter number of listings"}B++}if(B==0){document.location="/property/listing-payment-process.php?pid="+I+"&cmpn="+A+"&prodcode="+C+"&numlb="+G+"&numlf="+D+F}}}}return false}function updateLoginStatus(A){document.getElementById("div_welcome").innerHTML="Hi <b>"+A+"</b>&nbsp;&nbsp;";document.getElementById("div_toplinks").innerHTML='<a href="/" class="toplinks" >Home</a>&nbsp;|&nbsp;<a href="/help/about-us.php" class="toplinks" >About Us</a>&nbsp;|&nbsp;<a href="/help/faq.php" class="toplinks" >FAQ\'s</a>&nbsp;|&nbsp;<a href="/help/contact-us.php" class="toplinks" >Contact Us</a>&nbsp;|&nbsp;<a href="/member/logout.php" class="toplinks" >Logout</a>';document.getElementById("div_register_tab").innerHTML='<a href="/member/my-makaan-account.php" class="hrefheader" style="color:#000;font-size:13px;text-decoration:none;"><span class="menu-left" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-left"></span><span class="menu-mid textnopad" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-mid"><b><span class="tabtext">My Makaan Account</span></b> </span><span class="menu-right" onmouseover="changetab(\'reg\', true);" onmouseout="changetab(\'reg\', false);" id="menu-reg-right"></span></a>';var B="<table border = '0' width='100%' cellpadding='0' cellspacing='0' ><tr><td valign='top'><b class='bl1h'></b><b class='bl2h'></b><b class='bl3h'></b><b class='bl4h'></b><div style='border-left:1px solid #A7C4E3; border-right:1px solid #A7C4E3;'><div><table width='100%' style='background:#BCDEFA;'><tr style='line-height:20px;'><td class = 'columnhead paddingleft20' width='38%'>Balance Listing : </td><td class = 'columnhead paddingleft20' width='35%'><b>Fast Response - 0&nbsp&nbsp; </b></td><td class = 'columnhead paddingleft20'><b>Basic - 0</b></td></tr></table></div></div></div><b class='bl4bh'></b><b class='bl3bh'></b><b class='bl2bh'></b><b class='bl1h'></b></td></tr></table>";document.getElementById("cityall").style.display="none";document.getElementById("citycorporate").style.display="none";document.getElementById("tr_member_cother").style.display="none";document.getElementById("tr_member_type").style.display="none";document.getElementById("div_login_table").innerHTML=B;document.getElementById("login-details").innerHTML="Listing Details";listingblockchange()}function member_type_change(A){if(A=="1"||A=="2"){document.getElementById("cityall").style.display="";document.getElementById("citycorporate").style.display="none";document.listproperty_frm.member_city.options[0].selected=true;document.getElementById("tr_member_cother").style.display="none"}else{if(A=="3"||A=="4"){document.getElementById("cityall").style.display="none";document.getElementById("citycorporate").style.display="";document.listproperty_frm.member_city2.options[0].selected=true;document.getElementById("tr_member_cother").style.display="none"}}}function submit_listing(D,G){if(!G){G=0}if(G==1){var K=parseInt(document.getElementById("fr_balance").innerHTML);if((K-1)>0){var F="<p align='center' style='width:270px;font-size:12px'><input type='image' name='imageField' src='"+IMG_SERVER+"/images/list-property/big-loading.gif'/></p>";document.getElementById("hcontentarea").innerHTML=F}}else{var F="<p align='center' style='width:270px;font-size:12px'><input type='image' name='imageField' src='"+IMG_SERVER+"/images/list-property/big-loading.gif'/></p>";document.getElementById("hcontentarea").innerHTML=F}var A="/ssi/ajax/list-property.php";var B=H=len=lt=tt=pt=project=address=city=ocity=locality=lother=area=unit=price=nego=bed=floor=bathrooms=totalfloor=age=furnish=facing=ownership=ame=desc=name=c1=m1=c2=m2=a1=p1=a2=p2=email=cmpn="";var C=mcity=mcityother=varextra=loggedin=stmp="";len=document.listproperty_frm.listing_type.length;for(H="0";H<len;H++){if(document.listproperty_frm.listing_type[H].checked==true){lt=document.listproperty_frm.listing_type[H].value}}len=document.listproperty_frm.property_for.length;for(H="0";H<len;H++){if(document.listproperty_frm.property_for[H].checked==true){tt=document.listproperty_frm.property_for[H].value}}pt=document.listproperty_frm.property_type_id.value;project=document.listproperty_frm.project_name.value;address=document.listproperty_frm.property_address.value;city=document.listproperty_frm.city.value;ocity=document.listproperty_frm.city_other.value;locality=document.listproperty_frm.locality_id.value;lother=document.getElementById("locality_other").value;area=document.listproperty_frm.area_value.value;unit=document.listproperty_frm.area_unit.value;price=document.listproperty_frm.price.value;len=document.listproperty_frm.is_negotiable.length;for(H="0";H<len;H++){if(document.listproperty_frm.is_negotiable[H].checked==true){nego=document.listproperty_frm.is_negotiable[H].value}}bed=document.listproperty_frm.bedroom.value;floor=document.listproperty_frm.number_of_floor.value;bathrooms=document.listproperty_frm.bathrooms.value;totalfloor=document.listproperty_frm.total_floor.value;age=document.listproperty_frm.age_of_construction.value;ptime=document.listproperty_frm.possessiontime.value;furnish=document.listproperty_frm.furnished.value;facing=document.listproperty_frm.facing.value;ownership=document.listproperty_frm.ownership_type.value;for(var H=0;H<document.listproperty_frm.amenities.length;H++){if(document.listproperty_frm.amenities[H].checked){ame+=document.listproperty_frm.amenities[H].value+"|"}}if(ame!=""){ame=ame.substr(0,(ame.length-1))}desc=document.listproperty_frm.contact_more_info.value;name=document.listproperty_frm.contact_name.value;c1=document.listproperty_frm.mob_country_code.value;m1=document.listproperty_frm.mobile1.value;c2=document.listproperty_frm.ph_country_code.value;m2=document.listproperty_frm.contact_mobile2.value;a1=document.listproperty_frm.ph_area_code.value;p1=document.listproperty_frm.phone1.value;a2=document.listproperty_frm.ph_area_code2.value;p2=document.listproperty_frm.contact_phone2.value;cmpn=document.listproperty_frm.cmpn.value;memid=document.listproperty_frm.member_id.value;if(document.listproperty_frm.member_id.value=="0"){len=document.listproperty_frm.member_type.length;for(H="0";H<len;H++){if(document.listproperty_frm.member_type[H].checked==true){C=document.listproperty_frm.member_type[H].value}}if(C=="1"||C=="2"){mcity=document.listproperty_frm.member_city.value}else{mcity=document.listproperty_frm.member_city2.value}mcityother=document.listproperty_frm.member_cother.value;varextra="&mcity="+encodeURI(mcity)+"&mcityother="+encodeURI(mcityother)+"&mtype="+encodeURI(C)}email=document.listproperty_frm.contact_email.value;loggedin=document.listproperty_frm.loggedin.value;var J="";if(document.listproperty_frm.fastcode!=null&&document.listproperty_frm.fastcode!="undefined"){J=document.listproperty_frm.fastcode.value}var I=Math.floor(Math.random()*11);B="lt="+encodeURI(lt)+"&tt="+encodeURI(tt)+"&pt="+encodeURI(pt)+"&project="+encodeURI(project)+"&address="+encodeURI(address)+"&city="+encodeURI(city)+"&ocity="+encodeURI(ocity)+"&locality="+encodeURI(locality)+"&lother="+encodeURI(lother)+"&area="+encodeURI(area)+"&unit="+encodeURI(unit)+"&price="+encodeURI(price)+"&nego="+encodeURI(nego)+"&bed="+encodeURI(bed)+"&floor="+encodeURI(floor)+"&bathrooms="+encodeURI(bathrooms)+"&totalfloor="+encodeURI(totalfloor)+"&age="+encodeURI(age)+"&furnish="+encodeURI(furnish)+"&facing="+encodeURI(facing)+"&ownership="+encodeURI(ownership)+"&ame="+encodeURI(ame)+"&desc="+encodeURI(desc)+"&name="+encodeURI(name)+"&c1="+encodeURI(c1)+"&m1="+encodeURI(m1)+"&c2="+encodeURI(c2)+"&m2="+encodeURI(m2)+"&a1="+encodeURI(a1)+"&p1="+encodeURI(p1)+"&a2="+encodeURI(a2)+"&p2="+encodeURI(p2)+"&email="+encodeURI(email)+"&cmpn="+encodeURI(cmpn)+"&ptime="+encodeURI(ptime)+"&loggedin="+encodeURI(loggedin)+"&freelisting="+encodeURI(G)+"&fastcode="+encodeURI(J)+"&memid="+encodeURI(memid)+"&random="+encodeURI(I)+"";B+=varextra;makePOSTRequest(A,B,D,lt)}function clearfields(){document.getElementById("property_type_id").options[0].selected=true;document.listproperty_frm.project_name.value="";document.listproperty_frm.property_address.value="";document.getElementById("city").options[0].selected=true;document.listproperty_frm.city_other.value="";document.getElementById("locality_id").options[0].selected=true;document.listproperty_frm.locality_other.value="";document.getElementById("div_loc").innerHTML="<select name='locality_id' id='locality_id' class='textcontrol' style='width:175px;'><option value=''>-- Select Locality --</option></select>";document.listproperty_frm.area_value.value="";document.getElementById("area_unit").options[0].selected=true;document.listproperty_frm.price.value="";converttoword(document.listproperty_frm.price.value,"div_convertprice");document.getElementById("div_show_price").innerHTML="<b>Rate (Price / Area)</b> for your property is <strong class='orange'>Rs. 0 / Unit Area</strong>";len=document.listproperty_frm.is_negotiable.length;for(A="0";A<len;A++){if(document.listproperty_frm.is_negotiable[A].checked==true){document.listproperty_frm.is_negotiable[A].checked=false}}document.getElementById("bedroom").options[0].selected=true;document.getElementById("number_of_floor").options[0].selected=true;document.getElementById("bathrooms").options[0].selected=true;document.getElementById("total_floor").options[0].selected=true;document.getElementById("age_of_construction").options[0].selected=true;document.getElementById("possessiontime").options[0].selected=true;document.getElementById("furnished").options[0].selected=true;document.getElementById("facing").options[0].selected=true;document.getElementById("ownership_type").options[0].selected=true;for(var A=0;A<document.listproperty_frm.amenities.length;A++){if(document.listproperty_frm.amenities[A].checked){document.listproperty_frm.amenities[A].checked=false}}document.getElementById("char_count").innerHTML=" - Most property buyers like to know a detailed description of the property before contacting.";document.listproperty_frm.contact_more_info.value="";if(document.listproperty_frm.contact_mobile2.value!=""){document.getElementById("addmore1").style.display="";document.getElementById("added1").style.display="none"}else{document.listproperty_frm.ph_country_code.value=""}if(document.listproperty_frm.contact_phone2.value!=""){document.getElementById("addmore2").style.display="";document.getElementById("added2").style.display="none"}else{document.listproperty_frm.ph_area_code2.value=""}change_res_com_land();check_price_type();return}function change_postime(A){if(document.listproperty_frm.property_for["0"].checked==true){if(A=="0"){document.getElementById("tr_possessiontime").style.display=""}else{document.getElementById("tr_possessiontime").style.display="none"}}}function change_floor(A){if(A=="-10"){document.getElementById("tr_age_of_construction").style.display="none"}else{document.getElementById("tr_age_of_construction").style.display=""}}function showhide(H){var B=parseInt(document.listproperty_frm.basicbalance.value);var C=parseInt(document.listproperty_frm.frbalance.value);var A=parseInt(document.listproperty_frm.listedbasic.value);var G=parseInt(document.listproperty_frm.listedfr.value);var F=parseInt(document.listproperty_frm.frl_amount.value);var D=parseInt(document.listproperty_frm.basic_amount.value);if(document.listproperty_frm.askprice.value!="1"){document.getElementById("step_4").className="hide"}if(document.listproperty_frm.member_id.value!="0"){if(H==1){if(C<=G){document.getElementById("step_4").className="show";document.getElementById("sfr").innerHTML="Fast Response (Rs."+F+")"}if(document.listproperty_frm.freemarketfruser.value=="1"){showhidelistin(document.listproperty_frm.city.value)}}else{if(H==0&&document.listproperty_frm.freemarketbasicuser.value=="1"){if(document.listproperty_frm.askprice.value!="1"){document.getElementById("step_4").className="hide";document.getElementById("sbas").innerHTML="Basic"}showhidelistin(document.listproperty_frm.city.value)}else{if(H==0){if(B<=A){document.getElementById("step_4").className="show";document.getElementById("sbas").innerHTML="Basic (Rs."+D+")"}}else{if(C==0){document.getElementById("sfr").innerHTML="Fast Response (Rs."+F+")"}if(document.listproperty_frm.listing_type["0"].checked==true){if(C<=G){document.getElementById("step_4").className="show";document.getElementById("sfr").innerHTML="Fast Response (Rs."+F+")"}}if(B==0){document.getElementById("sbas").innerHTML="Basic (Rs."+D+")"}if(document.listproperty_frm.listing_type["1"].checked==true){if(B<=A){document.getElementById("step_4").className="show";document.getElementById("sbas").innerHTML="Basic (Rs."+D+")"}if(document.listproperty_frm.freemarketbasicuser.value=="1"){if(document.listproperty_frm.askprice.value!="1"){document.getElementById("step_4").className="hide";document.getElementById("sbas").innerHTML="Basic"}showhidelistin(document.listproperty_frm.city.value)}}}}}}else{document.getElementById("step_4").className="show";document.getElementById("sfr").innerHTML="Fast Response (Rs."+F+")";document.getElementById("sbas").innerHTML="Basic (Rs."+D+")"}}function showhidelistin(B){var A=0;var F=parseInt(document.listproperty_frm.frl_amount.value);var D=parseInt(document.listproperty_frm.basic_amount.value);var C=new Array("M1","S5","S3","S1","S2","S4","S6","S11","S10","S8","S9","S7","S12","M14","M2","S283","S290","S284","S285","S286","S287","S288","S289","S291","S292","S299","M4","S33","S31","S29","S30","S32","S34","M3","S27","S25","S23","S24","S26","S28","M6","S42","S40","S41","S43");for(i=0;i<2;i++){if(document.listproperty_frm.listing_type[i].checked==true){A=document.listproperty_frm.listing_type[i].value}}if(A==0){if(C.inArray(B)){document.getElementById("step_4").className="show";document.getElementById("sbas").innerHTML="Basic (Rs."+D+")"}else{if(document.listproperty_frm.askprice.value!="1"){document.getElementById("step_4").className="hide";document.getElementById("sbas").innerHTML="Basic"}}}else{if(document.listproperty_frm.freemarketfruser.value=="1"){if(C.inArray(B)){document.getElementById("step_4").className="show";document.getElementById("sfr").innerHTML="Fast Response (Rs."+F+")"}else{if(document.listproperty_frm.askprice.value!="1"){document.getElementById("step_4").className="hide";document.getElementById("sfr").innerHTML="Fast Response"}}}}}function checkExist(A,B){var C=createAjaxObject("5");C.open("GET",A,true);C.onreadystatechange=function(){if(C.readyState==4){var D=C.responseText;if(D!=""){document.getElementById("div_msg3").innerHTML=D;if(B=="m"){document.listproperty_frm.mobile1.focus();document.listproperty_frm.mobile1.className="errorcontrol"}else{document.listproperty_frm.contact_email.focus();document.listproperty_frm.contact_email.className="errorcontrol"}count_bug+=1}else{if(B=="m"){document.listproperty_frm.mobile1.className="textcontrol"}else{document.listproperty_frm.contact_email.className="textcontrol"}document.getElementById("div_msg3").innerHTML=""}}else{document.getElementById("div_msg3").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>'}};C.send(null)}function listingblockchange(){if(document.listproperty_frm.m_type.value=="1"){document.getElementById("tr_basicblock1").style.display="none";document.getElementById("tr_basicblock2").style.display="none";document.getElementById("span_basicradio").style.display="none";document.getElementById("tr_frblock1").style.display="none";document.getElementById("tr_frblock2").style.display="none";document.getElementById("span_frradio").style.display="none"}}(function(){var X=this,AC,G=X.jQuery,T=X.$,U=X.jQuery=X.$=function(B,A){return new U.fn.init(B,A)},N=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,AD=/^.[^:#\[\.,]*$/;U.fn=U.prototype={init:function(b,B){b=b||document;if(b.nodeType){this[0]=b;this.length=1;this.context=b;return this}if(typeof b==="string"){var C=N.exec(b);if(C&&(C[1]||!B)){if(C[1]){b=U.clean([C[1]],B)}else{var A=document.getElementById(C[3]);if(A&&A.id!=C[3]){return U().find(b)}var D=U(A||[]);D.context=document;D.selector=b;return D}}else{return U(B).find(b)}}else{if(U.isFunction(b)){return U(document).ready(b)}}if(b.selector&&b.context){this.selector=b.selector;this.context=b.context}return this.setArray(U.isArray(b)?b:U.makeArray(b))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(A){return A===AC?Array.prototype.slice.call(this):this[A]},pushStack:function(C,A,D){var B=U(C);B.prevObject=this;B.context=this.context;if(A==="find"){B.selector=this.selector+(this.selector?" ":"")+D}else{if(A){B.selector=this.selector+"."+A+"("+D+")"}}return B},setArray:function(A){this.length=0;Array.prototype.push.apply(this,A);return this},each:function(A,B){return U.each(this,A,B)},index:function(A){return U.inArray(A&&A.jquery?A[0]:A,this)},attr:function(C,A,B){var D=C;if(typeof C==="string"){if(A===AC){return this[0]&&U[B||"attr"](this[0],C)}else{D={};D[C]=A}}return this.each(function(b){for(C in D){U.attr(B?this.style:this,C,U.prop(this,D[C],B,b,C))}})},css:function(B,A){if((B=="width"||B=="height")&&parseFloat(A)<0){A=AC}return this.attr(B,A,"curCSS")},text:function(A){if(typeof A!=="object"&&A!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(A))}var B="";U.each(A||this,function(){U.each(this.childNodes,function(){if(this.nodeType!=8){B+=this.nodeType!=1?this.nodeValue:U.fn.text([this])}})});return B},wrapAll:function(B){if(this[0]){var A=U(B,this[0].ownerDocument).clone();if(this[0].parentNode){A.insertBefore(this[0])}A.map(function(){var C=this;while(C.firstChild){C=C.firstChild}return C}).append(this)}return this},wrapInner:function(A){return this.each(function(){U(this).contents().wrapAll(A)})},wrap:function(A){return this.each(function(){U(this).wrapAll(A)})},append:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.appendChild(A)}})},prepend:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.insertBefore(A,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this)})},after:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this.nextSibling)})},end:function(){return this.prevObject||U([])},push:[].push,sort:[].sort,splice:[].splice,find:function(B){if(this.length===1){var A=this.pushStack([],"find",B);A.length=0;U.find(B,this[0],A);return A}else{return this.pushStack(U.unique(U.map(this,function(C){return U.find(B,C)})),"find",B)}},clone:function(B){var D=this.map(function(){if(!U.support.noCloneEvent&&!U.isXMLDoc(this)){var c=this.outerHTML;if(!c){var b=this.ownerDocument.createElement("div");b.appendChild(this.cloneNode(true));c=b.innerHTML}return U.clean([c.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(B===true){var A=this.find("*").andSelf(),C=0;D.find("*").andSelf().each(function(){if(this.nodeName!==A[C].nodeName){return}var d=U.data(A[C],"events");for(var b in d){for(var c in d[b]){U.event.add(this,b,d[b][c],d[b][c].data)}}C++})}return D},filter:function(A){return this.pushStack(U.isFunction(A)&&U.grep(this,function(B,C){return A.call(B,C)})||U.multiFilter(A,U.grep(this,function(B){return B.nodeType===1})),"filter",A)},closest:function(C){var A=U.expr.match.POS.test(C)?U(C):null,B=0;return this.map(function(){var D=this;while(D&&D.ownerDocument){if(A?A.index(D)>-1:U(D).is(C)){U.data(D,"closest",B);return D}D=D.parentNode;B++}})},not:function(B){if(typeof B==="string"){if(AD.test(B)){return this.pushStack(U.multiFilter(B,this,true),"not",B)}else{B=U.multiFilter(B,this)}}var A=B.length&&B[B.length-1]!==AC&&!B.nodeType;return this.filter(function(){return A?U.inArray(this,B)<0:this!=B})},add:function(A){return this.pushStack(U.unique(U.merge(this.get(),typeof A==="string"?U(A):U.makeArray(A))))},is:function(A){return !!A&&U.multiFilter(A,this).length>0},hasClass:function(A){return !!A&&this.is("."+A)},val:function(C){if(C===AC){var g=this[0];if(g){if(U.nodeName(g,"option")){return(g.attributes.value||{}).specified?g.value:g.text}if(U.nodeName(g,"select")){var b=g.selectedIndex,B=[],A=g.options,c=g.type=="select-one";if(b<0){return null}for(var f=c?b:0,D=c?b+1:A.length;f<D;f++){var d=A[f];if(d.selected){C=U(d).val();if(c){return C}B.push(C)}}return B}return(g.value||"").replace(/\r/g,"")}return AC}if(typeof C==="number"){C+=""}return this.each(function(){if(this.nodeType!=1){return}if(U.isArray(C)&&/radio|checkbox/.test(this.type)){this.checked=(U.inArray(this.value,C)>=0||U.inArray(this.name,C)>=0)}else{if(U.nodeName(this,"select")){var h=U.makeArray(C);U("option",this).each(function(){this.selected=(U.inArray(this.value,h)>=0||U.inArray(this.text,h)>=0)});if(!h.length){this.selectedIndex=-1}}else{this.value=C}}})},html:function(A){return A===AC?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(A)},replaceWith:function(A){return this.after(A).remove()},eq:function(A){return this.slice(A,+A+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(A){return this.pushStack(U.map(this,function(B,C){return A.call(B,C,B)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(D,A,B){if(this[0]){var b=(this[0].ownerDocument||this[0]).createDocumentFragment(),f=U.clean(D,(this[0].ownerDocument||this[0]),b),c=b.firstChild;if(c){for(var d=0,g=this.length;d<g;d++){B.call(C(this[d],c),this.length>1||d>0?b.cloneNode(true):b)}}if(f){U.each(f,F)}}return this;function C(k,h){return A&&U.nodeName(k,"table")&&U.nodeName(h,"tr")?(k.getElementsByTagName("tbody")[0]||k.appendChild(k.ownerDocument.createElement("tbody"))):k}}};U.fn.init.prototype=U.fn;function F(B,A){if(A.src){U.ajax({url:A.src,async:false,dataType:"script"})}else{U.globalEval(A.text||A.textContent||A.innerHTML||"")}if(A.parentNode){A.parentNode.removeChild(A)}}function AE(){return +new Date}U.extend=U.fn.extend=function(){var C=arguments[0]||{},b=1,D=arguments.length,f=false,c;if(typeof C==="boolean"){f=C;C=arguments[1]||{};b=2}if(typeof C!=="object"&&!U.isFunction(C)){C={}}if(D==b){C=this;--b}for(;b<D;b++){if((c=arguments[b])!=null){for(var d in c){var B=C[d],A=c[d];if(C===A){continue}if(f&&A&&typeof A==="object"&&!A.nodeType){C[d]=U.extend(f,B||(A.length!=null?[]:{}),A)}else{if(A!==AC){C[d]=A}}}}}return C};var AH=/z-?index|font-?weight|opacity|zoom|line-?height/i,R=document.defaultView||{},M=Object.prototype.toString;U.extend({noConflict:function(A){X.$=T;if(A){X.jQuery=G}return U},isFunction:function(A){return M.call(A)==="[object Function]"},isArray:function(A){return M.call(A)==="[object Array]"},isXMLDoc:function(A){return A.nodeType===9&&A.documentElement.nodeName!=="HTML"||!!A.ownerDocument&&U.isXMLDoc(A.ownerDocument)},globalEval:function(A){if(A&&/\S/.test(A)){var B=document.getElementsByTagName("head")[0]||document.documentElement,C=document.createElement("script");C.type="text/javascript";if(U.support.scriptEval){C.appendChild(document.createTextNode(A))}else{C.text=A}B.insertBefore(C,B.firstChild);B.removeChild(C)}},nodeName:function(A,B){return A.nodeName&&A.nodeName.toUpperCase()==B.toUpperCase()},each:function(b,A,c){var d,D=0,C=b.length;if(c){if(C===AC){for(d in b){if(A.apply(b[d],c)===false){break}}}else{for(;D<C;){if(A.apply(b[D++],c)===false){break}}}}else{if(C===AC){for(d in b){if(A.call(b[d],d,b[d])===false){break}}}else{for(var B=b[0];D<C&&A.call(B,D,B)!==false;B=b[++D]){}}}return b},prop:function(B,A,C,D,b){if(U.isFunction(A)){A=A.call(B,D)}return typeof A==="number"&&C=="curCSS"&&!AH.test(b)?A+"px":A},className:{add:function(B,A){U.each((A||"").split(/\s+/),function(D,C){if(B.nodeType==1&&!U.className.has(B.className,C)){B.className+=(B.className?" ":"")+C}})},remove:function(B,A){if(B.nodeType==1){B.className=A!==AC?U.grep(B.className.split(/\s+/),function(C){return !U.className.has(A,C)}).join(" "):""}},has:function(A,B){return A&&U.inArray(B,(A.className||A).toString().split(/\s+/))>-1}},swap:function(B,C,A){var b={};for(var D in C){b[D]=B.style[D];B.style[D]=C[D]}A.call(B);for(var D in C){B.style[D]=b[D]}},css:function(b,d,C,f){if(d=="width"||d=="height"){var A,c={position:"absolute",visibility:"hidden",display:"block"},B=d=="width"?["Left","Right"]:["Top","Bottom"];function D(){A=d=="width"?b.offsetWidth:b.offsetHeight;if(f==="border"){return}U.each(B,function(){if(!f){A-=parseFloat(U.curCSS(b,"padding"+this,true))||0}if(f==="margin"){A+=parseFloat(U.curCSS(b,"margin"+this,true))||0}else{A-=parseFloat(U.curCSS(b,"border"+this+"Width",true))||0}})}if(b.offsetWidth!==0){D()}else{U.swap(b,c,D)}return Math.max(0,Math.round(A))}return U.curCSS(b,d,C)},curCSS:function(b,f,d){var B,g=b.style;if(f=="opacity"&&!U.support.opacity){B=U.attr(g,"opacity");return B==""?"1":B}if(f.match(/float/i)){f=I}if(!d&&g&&g[f]){B=g[f]}else{if(R.getComputedStyle){if(f.match(/float/i)){f="float"}f=f.replace(/([A-Z])/g,"-$1").toLowerCase();var A=R.getComputedStyle(b,null);if(A){B=A.getPropertyValue(f)}if(f=="opacity"&&B==""){B="1"}}else{if(b.currentStyle){var D=f.replace(/\-(\w)/g,function(k,h){return h.toUpperCase()});B=b.currentStyle[f]||b.currentStyle[D];if(!/^\d+(px)?$/i.test(B)&&/^\d/.test(B)){var c=g.left,C=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;g.left=B||0;B=g.pixelLeft+"px";g.left=c;b.runtimeStyle.left=C}}}}return B},clean:function(d,B,D){B=B||document;if(typeof B.createElement==="undefined"){B=B.ownerDocument||B[0]&&B[0].ownerDocument||document}if(!D&&d.length===1&&typeof d[0]==="string"){var b=/^<(\w+)\s*\/?>$/.exec(d[0]);if(b){return[B.createElement(b[1])]}}var c=[],f=[],A=B.createElement("div");U.each(d,function(l,g){if(typeof g==="number"){g+=""}if(!g){return}if(typeof g==="string"){g=g.replace(/(<(\w+)[^>]*?)\/>/g,function(r,q,s){return s.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:q+"></"+s+">"});var m=g.replace(/^\s+/,"").substring(0,10).toLowerCase();var k=!m.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!m.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||m.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!m.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!m.indexOf("<td")||!m.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!m.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!U.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];A.innerHTML=k[1]+g+k[2];while(k[0]--){A=A.lastChild}if(!U.support.tbody){var h=/<tbody/i.test(g),o=!m.indexOf("<table")&&!h?A.firstChild&&A.firstChild.childNodes:k[1]=="<table>"&&!h?A.childNodes:[];for(var p=o.length-1;p>=0;--p){if(U.nodeName(o[p],"tbody")&&!o[p].childNodes.length){o[p].parentNode.removeChild(o[p])}}}if(!U.support.leadingWhitespace&&/^\s/.test(g)){A.insertBefore(B.createTextNode(g.match(/^\s*/)[0]),A.firstChild)}g=U.makeArray(A.childNodes)}if(g.nodeType){c.push(g)}else{c=U.merge(c,g)}});if(D){for(var C=0;c[C];C++){if(U.nodeName(c[C],"script")&&(!c[C].type||c[C].type.toLowerCase()==="text/javascript")){f.push(c[C].parentNode?c[C].parentNode.removeChild(c[C]):c[C])}else{if(c[C].nodeType===1){c.splice.apply(c,[C+1,0].concat(U.makeArray(c[C].getElementsByTagName("script"))))}D.appendChild(c[C])}}return f}return c},attr:function(C,c,B){if(!C||C.nodeType==3||C.nodeType==8){return AC}var b=!U.isXMLDoc(C),A=B!==AC;c=b&&U.props[c]||c;if(C.tagName){var d=/href|src|style/.test(c);if(c=="selected"&&C.parentNode){C.parentNode.selectedIndex}if(c in C&&b&&!d){if(A){if(c=="type"&&U.nodeName(C,"input")&&C.parentNode){throw"type property can't be changed"}C[c]=B}if(U.nodeName(C,"form")&&C.getAttributeNode(c)){return C.getAttributeNode(c).nodeValue}if(c=="tabIndex"){var D=C.getAttributeNode("tabIndex");return D&&D.specified?D.value:C.nodeName.match(/(button|input|object|select|textarea)/i)?0:C.nodeName.match(/^(a|area)$/i)&&C.href?0:AC}return C[c]}if(!U.support.style&&b&&c=="style"){return U.attr(C.style,"cssText",B)}if(A){C.setAttribute(c,""+B)}var f=!U.support.hrefNormalized&&b&&d?C.getAttribute(c,2):C.getAttribute(c);return f===null?AC:f}if(!U.support.opacity&&c=="opacity"){if(A){C.zoom=1;C.filter=(C.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(B)+""=="NaN"?"":"alpha(opacity="+B*100+")")}return C.filter&&C.filter.indexOf("opacity=")>=0?(parseFloat(C.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}c=c.replace(/-([a-z])/ig,function(h,g){return g.toUpperCase()});if(A){C[c]=B}return C[c]},trim:function(A){return(A||"").replace(/^\s+|\s+$/g,"")},makeArray:function(A){var C=[];if(A!=null){var B=A.length;if(B==null||typeof A==="string"||U.isFunction(A)||A.setInterval){C[0]=A}else{while(B){C[--B]=A[B]}}}return C},inArray:function(B,A){for(var D=0,C=A.length;D<C;D++){if(A[D]===B){return D}}return -1},merge:function(B,b){var D=0,C,A=B.length;if(!U.support.getAll){while((C=b[D++])!=null){if(C.nodeType!=8){B[A++]=C}}}else{while((C=b[D++])!=null){B[A++]=C}}return B},unique:function(A){var c=[],d={};try{for(var b=0,D=A.length;b<D;b++){var B=U.data(A[b]);if(!d[B]){d[B]=true;c.push(A[b])}}}catch(C){c=A}return c},grep:function(b,A,c){var D=[];for(var C=0,B=b.length;C<B;C++){if(!c!=!A(b[C],C)){D.push(b[C])}}return D},map:function(c,A){var b=[];for(var D=0,C=c.length;D<C;D++){var B=A(c[D],D);if(B!=null){b[b.length]=B}}return b.concat.apply([],b)}});var P=navigator.userAgent.toLowerCase();U.browser={version:(P.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(P),opera:/opera/.test(P),msie:/msie/.test(P)&&!/opera/.test(P),mozilla:/mozilla/.test(P)&&!/(compatible|webkit)/.test(P)};U.each({parent:function(A){return A.parentNode},parents:function(A){return U.dir(A,"parentNode")},next:function(A){return U.nth(A,2,"nextSibling")},prev:function(A){return U.nth(A,2,"previousSibling")},nextAll:function(A){return U.dir(A,"nextSibling")},prevAll:function(A){return U.dir(A,"previousSibling")},siblings:function(A){return U.sibling(A.parentNode.firstChild,A)},children:function(A){return U.sibling(A.firstChild)},contents:function(A){return U.nodeName(A,"iframe")?A.contentDocument||A.contentWindow.document:U.makeArray(A.childNodes)}},function(B,A){U.fn[B]=function(D){var C=U.map(this,A);if(D&&typeof D=="string"){C=U.multiFilter(D,C)}return this.pushStack(U.unique(C),B,D)}});U.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(B,A){U.fn[B]=function(f){var b=[],C=U(f);for(var D=0,d=C.length;D<d;D++){var c=(D>0?this.clone(true):this).get();U.fn[A].apply(U(C[D]),c);b=b.concat(c)}return this.pushStack(b,B,f)}});U.each({removeAttr:function(A){U.attr(this,A,"");if(this.nodeType==1){this.removeAttribute(A)}},addClass:function(A){U.className.add(this,A)},removeClass:function(A){U.className.remove(this,A)},toggleClass:function(A,B){if(typeof B!=="boolean"){B=!U.className.has(this,A)}U.className[B?"add":"remove"](this,A)},remove:function(A){if(!A||U.filter(A,[this]).length){U("*",this).add([this]).each(function(){U.event.remove(this);U.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){U(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(B,A){U.fn[B]=function(){return this.each(A,arguments)}});function Z(B,A){return B[0]&&parseInt(U.curCSS(B[0],A,true),10)||0}var AB="jQuery"+AE(),J=0,S={};U.extend({cache:{},data:function(C,D,B){C=C==X?S:C;var A=C[AB];if(!A){A=C[AB]=++J}if(D&&!U.cache[A]){U.cache[A]={}}if(B!==AC){U.cache[A][D]=B}return D?U.cache[A][D]:A},removeData:function(C,D){C=C==X?S:C;var A=C[AB];if(D){if(U.cache[A]){delete U.cache[A][D];D="";for(D in U.cache[A]){break}if(!D){U.removeData(C)}}}else{try{delete C[AB]}catch(B){if(C.removeAttribute){C.removeAttribute(AB)}}delete U.cache[A]}},queue:function(C,D,A){if(C){D=(D||"fx")+"queue";var B=U.data(C,D);if(!B||U.isArray(A)){B=U.data(C,D,U.makeArray(A))}else{if(A){B.push(A)}}}return B},dequeue:function(A,B){var D=U.queue(A,B),C=D.shift();if(!B||B==="fx"){C=D[0]}if(C!==AC){C.call(A)}}});U.fn.extend({data:function(D,B){var A=D.split(".");A[1]=A[1]?"."+A[1]:"";if(B===AC){var C=this.triggerHandler("getData"+A[1]+"!",[A[0]]);if(C===AC&&this.length){C=U.data(this[0],D)}return C===AC&&A[1]?this.data(A[0]):C}else{return this.trigger("setData"+A[1]+"!",[A[0],B]).each(function(){U.data(this,D,B)})}},removeData:function(A){return this.each(function(){U.removeData(this,A)})},queue:function(B,A){if(typeof B!=="string"){A=B;B="fx"}if(A===AC){return U.queue(this[0],B)}return this.each(function(){var C=U.queue(this,B,A);if(B=="fx"&&C.length==1){C[0].call(this)}})},dequeue:function(A){return this.each(function(){U.dequeue(this,A)})}});(function(){var B=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,l=Object.prototype.toString;var o=function(s,w,AO,AN){AO=AO||[];w=w||document;if(w.nodeType!==1&&w.nodeType!==9){return[]}if(!s||typeof s!=="string"){return AO}var r=[],u,AK,y,x,AM,v,t=true;B.lastIndex=0;while((u=B.exec(s))!==null){r.push(u[1]);if(u[2]){v=RegExp.rightContext;break}}if(r.length>1&&d.exec(s)){if(r.length===2&&k.relative[r[0]]){AK=h(r[0]+r[1],w)}else{AK=k.relative[r[0]]?[w]:o(r.shift(),w);while(r.length){s=r.shift();if(k.relative[s]){s+=r.shift()}AK=h(s,AK)}}}else{var AL=AN?{expr:r.pop(),set:p(AN)}:o.find(r.pop(),r.length===1&&w.parentNode?w.parentNode:w,C(w));AK=o.filter(AL.expr,AL.set);if(r.length>0){y=p(AK)}else{t=false}while(r.length){var z=r.pop(),AJ=z;if(!k.relative[z]){z=""}else{AJ=r.pop()}if(AJ==null){AJ=w}k.relative[z](y,AJ,C(w))}}if(!y){y=AK}if(!y){throw"Syntax error, unrecognized expression: "+(z||s)}if(l.call(y)==="[object Array]"){if(!t){AO.push.apply(AO,y)}else{if(w.nodeType===1){for(var q=0;y[q]!=null;q++){if(y[q]&&(y[q]===true||y[q].nodeType===1&&g(w,y[q]))){AO.push(AK[q])}}}else{for(var q=0;y[q]!=null;q++){if(y[q]&&y[q].nodeType===1){AO.push(AK[q])}}}}}else{p(y,AO)}if(v){o(v,w,AO,AN);if(m){hasDuplicate=false;AO.sort(m);if(hasDuplicate){for(var q=1;q<AO.length;q++){if(AO[q]===AO[q-1]){AO.splice(q--,1)}}}}}return AO};o.matches=function(r,q){return o(r,null,null,q)};o.find=function(q,x,y){var r,t;if(!q){return[]}for(var u=0,v=k.order.length;u<v;u++){var s=k.order[u],t;if((t=k.match[s].exec(q))){var w=RegExp.leftContext;if(w.substr(w.length-1)!=="\\"){t[1]=(t[1]||"").replace(/\\/g,"");r=k.find[s](t,x,y);if(r!=null){q=q.replace(k.match[s],"");break}}}}if(!r){r=x.getElementsByTagName("*")}return{set:r,expr:q}};o.filter=function(AM,AN,AJ,u){var v=AM,y=[],q=AN,s,x,r=AN&&AN[0]&&C(AN[0]);while(AM&&AN.length){for(var AO in k.filter){if((s=k.match[AO].exec(AM))!=null){var w=k.filter[AO],z,AK;x=false;if(q==y){y=[]}if(k.preFilter[AO]){s=k.preFilter[AO](s,q,AJ,y,u,r);if(!s){x=z=true}else{if(s===true){continue}}}if(s){for(var t=0;(AK=q[t])!=null;t++){if(AK){z=w(AK,s,t,q);var AL=u^!!z;if(AJ&&z!=null){if(AL){x=true}else{q[t]=false}}else{if(AL){y.push(AK);x=true}}}}}if(z!==AC){if(!AJ){q=y}AM=AM.replace(k.match[AO],"");if(!x){return[]}break}}}if(AM==v){if(x==null){throw"Syntax error, unrecognized expression: "+AM}else{break}}v=AM}return q};var k=o.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(q){return q.getAttribute("href")}},relative:{"+":function(q,x,r){var t=typeof x==="string",y=t&&!/\W/.test(x),s=t&&!y;if(y&&!r){x=x.toUpperCase()}for(var u=0,v=q.length,w;u<v;u++){if((w=q[u])){while((w=w.previousSibling)&&w.nodeType!==1){}q[u]=s||w&&w.nodeName===x?w||false:w===x}}if(s){o.filter(x,q,true)}},">":function(v,s,u){var x=typeof s==="string";if(x&&!/\W/.test(s)){s=u?s:s.toUpperCase();for(var r=0,t=v.length;r<t;r++){var w=v[r];if(w){var q=w.parentNode;v[r]=q.nodeName===s?q:false}}}else{for(var r=0,t=v.length;r<t;r++){var w=v[r];if(w){v[r]=x?w.parentNode:w.parentNode===s}}if(x){o.filter(s,v,true)}}},"":function(q,s,u){var r=f++,t=A;if(!s.match(/\W/)){var v=s=u?s:s.toUpperCase();t=D}t("parentNode",s,r,q,v,u)},"~":function(q,s,u){var r=f++,t=A;if(typeof s==="string"&&!s.match(/\W/)){var v=s=u?s:s.toUpperCase();t=D}t("previousSibling",s,r,q,v,u)}},find:{ID:function(s,r,q){if(typeof r.getElementById!=="undefined"&&!q){var t=r.getElementById(s[1]);return t?[t]:[]}},NAME:function(r,v,u){if(typeof v.getElementsByName!=="undefined"){var s=[],w=v.getElementsByName(r[1]);for(var q=0,t=w.length;q<t;q++){if(w[q].getAttribute("name")===r[1]){s.push(w[q])}}return s.length===0?null:s}},TAG:function(r,q){return q.getElementsByTagName(r[1])}},preFilter:{CLASS:function(q,s,r,t,v,u){q=" "+q[1].replace(/\\/g,"")+" ";if(u){return q}for(var x=0,w;(w=s[x])!=null;x++){if(w){if(v^(w.className&&(" "+w.className+" ").indexOf(q)>=0)){if(!r){t.push(w)}}else{if(r){s[x]=false}}}}return false},ID:function(q){return q[1].replace(/\\/g,"")},TAG:function(r,s){for(var q=0;s[q]===false;q++){}return s[q]&&C(s[q])?r[1]:r[1].toUpperCase()},CHILD:function(r){if(r[1]=="nth"){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(r[2]=="even"&&"2n"||r[2]=="odd"&&"2n+1"||!/\D/.test(r[2])&&"0n+"+r[2]||r[2]);r[2]=(q[1]+(q[2]||1))-0;r[3]=q[3]-0}r[0]=f++;return r},ATTR:function(w,s,r,t,v,u){var q=w[1].replace(/\\/g,"");if(!u&&k.attrMap[q]){w[1]=k.attrMap[q]}if(w[2]==="~="){w[4]=" "+w[4]+" "}return w},PSEUDO:function(v,s,r,t,u){if(v[1]==="not"){if(v[3].match(B).length>1||/^\w/.test(v[3])){v[3]=o(v[3],null,null,s)}else{var q=o.filter(v[3],s,r,true^u);if(!r){t.push.apply(t,q)}return false}}else{if(k.match.POS.test(v[0])||k.match.CHILD.test(v[0])){return true}}return v},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled===false&&q.type!=="hidden"},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){q.parentNode.selectedIndex;return q.selected===true},parent:function(q){return !!q.firstChild},empty:function(q){return !q.firstChild},has:function(q,r,s){return !!o(s[3],q).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return"text"===q.type},radio:function(q){return"radio"===q.type},checkbox:function(q){return"checkbox"===q.type},file:function(q){return"file"===q.type},password:function(q){return"password"===q.type},submit:function(q){return"submit"===q.type},image:function(q){return"image"===q.type},reset:function(q){return"reset"===q.type},button:function(q){return"button"===q.type||q.nodeName.toUpperCase()==="BUTTON"},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(q,r){return r===0},last:function(r,s,t,q){return s===q.length-1},even:function(q,r){return r%2===0},odd:function(q,r){return r%2===1},lt:function(q,r,s){return r<s[3]-0},gt:function(q,r,s){return r>s[3]-0},nth:function(q,r,s){return s[3]-0==r},eq:function(q,r,s){return s[3]-0==r}},filter:{PSEUDO:function(v,r,q,u){var s=r[1],x=k.filters[s];if(x){return x(v,q,r,u)}else{if(s==="contains"){return(v.textContent||v.innerText||"").indexOf(r[3])>=0}else{if(s==="not"){var w=r[3];for(var q=0,t=w.length;q<t;q++){if(w[q]===v){return false}}return true}}}},CHILD:function(x,u){var r=u[1],w=x;switch(r){case"only":case"first":while(w=w.previousSibling){if(w.nodeType===1){return false}}if(r=="first"){return true}w=x;case"last":while(w=w.nextSibling){if(w.nodeType===1){return false}}return true;case"nth":var v=u[2],y=u[3];if(v==1&&y==0){return true}var s=u[0],z=x.parentNode;if(z&&(z.sizcache!==s||!x.nodeIndex)){var t=0;for(w=z.firstChild;w;w=w.nextSibling){if(w.nodeType===1){w.nodeIndex=++t}}z.sizcache=s}var q=x.nodeIndex-y;if(v==0){return q==0}else{return(q%v==0&&q/v>=0)}}},ID:function(q,r){return q.nodeType===1&&q.getAttribute("id")===r},TAG:function(q,r){return(r==="*"&&q.nodeType===1)||q.nodeName===r},CLASS:function(q,r){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(r)>-1},ATTR:function(v,q){var r=q[1],t=k.attrHandle[r]?k.attrHandle[r](v):v[r]!=null?v[r]:v.getAttribute(r),u=t+"",w=q[2],s=q[4];return t==null?w==="!=":w==="="?u===s:w==="*="?u.indexOf(s)>=0:w==="~="?(" "+u+" ").indexOf(s)>=0:!s?u&&t!==false:w==="!="?u!=s:w==="^="?u.indexOf(s)===0:w==="$="?u.substr(u.length-s.length)===s:w==="|="?u===s||u.substr(0,s.length+1)===s+"-":false},POS:function(v,s,r,u){var t=s[2],q=k.setFilters[t];if(q){return q(v,r,s,u)}}}};var d=k.match.POS;for(var b in k.match){k.match[b]=RegExp(k.match[b].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var p=function(q,r){q=Array.prototype.slice.call(q);if(r){r.push.apply(r,q);return r}return q};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(c){p=function(u,q){var s=q||[];if(l.call(u)==="[object Array]"){Array.prototype.push.apply(s,u)}else{if(typeof u.length==="number"){for(var r=0,t=u.length;r<t;r++){s.push(u[r])}}else{for(var r=0;u[r];r++){s.push(u[r])}}}return s}}var m;if(document.documentElement.compareDocumentPosition){m=function(r,s){var q=r.compareDocumentPosition(s)&4?-1:r===s?0:1;if(q===0){hasDuplicate=true}return q}}else{if("sourceIndex" in document.documentElement){m=function(r,s){var q=r.sourceIndex-s.sourceIndex;if(q===0){hasDuplicate=true}return q}}else{if(document.createRange){m=function(q,s){var r=q.ownerDocument.createRange(),t=s.ownerDocument.createRange();r.selectNode(q);r.collapse(true);t.selectNode(s);t.collapse(true);var u=r.compareBoundaryPoints(Range.START_TO_END,t);if(u===0){hasDuplicate=true}return u}}}}(function(){var r=document.createElement("form"),q="script"+(new Date).getTime();r.innerHTML="<input name='"+q+"'/>";var s=document.documentElement;s.insertBefore(r,s.firstChild);if(!!document.getElementById(q)){k.find.ID=function(w,v,u){if(typeof v.getElementById!=="undefined"&&!u){var t=v.getElementById(w[1]);return t?t.id===w[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===w[1]?[t]:AC:[]}};k.filter.ID=function(u,t){var v=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");return u.nodeType===1&&v&&v.nodeValue===t}}s.removeChild(r)})();(function(){var q=document.createElement("div");q.appendChild(document.createComment(""));if(q.getElementsByTagName("*").length>0){k.find.TAG=function(t,u){var v=u.getElementsByTagName(t[1]);if(t[1]==="*"){var r=[];for(var s=0;v[s];s++){if(v[s].nodeType===1){r.push(v[s])}}v=r}return v}}q.innerHTML="<a href='#'></a>";if(q.firstChild&&typeof q.firstChild.getAttribute!=="undefined"&&q.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(r){return r.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var r=o,q=document.createElement("div");q.innerHTML="<p class='TEST'></p>";if(q.querySelectorAll&&q.querySelectorAll(".TEST").length===0){return}o=function(v,w,t,s){w=w||document;if(!s&&w.nodeType===9&&!C(w)){try{return p(w.querySelectorAll(v),t)}catch(u){}}return r(v,w,t,s)};o.find=r.find;o.filter=r.filter;o.selectors=r.selectors;o.matches=r.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var q=document.createElement("div");q.innerHTML="<div class='test e'></div><div class='test'></div>";if(q.getElementsByClassName("e").length===0){return}q.lastChild.className="e";if(q.getElementsByClassName("e").length===1){return}k.order.splice(1,0,"CLASS");k.find.CLASS=function(t,s,r){if(typeof s.getElementsByClassName!=="undefined"&&!r){return s.getElementsByClassName(t[1])}}})()}function D(w,r,s,y,q,z){var AJ=w=="previousSibling"&&!z;for(var u=0,v=y.length;u<v;u++){var x=y[u];if(x){if(AJ&&x.nodeType===1){x.sizcache=s;x.sizset=u}x=x[w];var t=false;while(x){if(x.sizcache===s){t=y[x.sizset];break}if(x.nodeType===1&&!z){x.sizcache=s;x.sizset=u}if(x.nodeName===r){t=x;break}x=x[w]}y[u]=t}}}function A(w,r,s,y,q,z){var AJ=w=="previousSibling"&&!z;for(var u=0,v=y.length;u<v;u++){var x=y[u];if(x){if(AJ&&x.nodeType===1){x.sizcache=s;x.sizset=u}x=x[w];var t=false;while(x){if(x.sizcache===s){t=y[x.sizset];break}if(x.nodeType===1){if(!z){x.sizcache=s;x.sizset=u}if(typeof r!=="string"){if(x===r){t=true;break}}else{if(o.filter(r,[x]).length>0){t=x;break}}}x=x[w]}y[u]=t}}}var g=document.compareDocumentPosition?function(q,r){return q.compareDocumentPosition(r)&16}:function(q,r){return q!==r&&(q.contains?q.contains(r):true)};var C=function(q){return q.nodeType===9&&q.documentElement.nodeName!=="HTML"||!!q.ownerDocument&&C(q.ownerDocument)};var h=function(t,v){var q=[],x="",w,r=v.nodeType?[v]:v;while((w=k.match.PSEUDO.exec(t))){x+=w[0];t=t.replace(k.match.PSEUDO,"")}t=k.relative[t]?t+"*":t;for(var u=0,s=r.length;u<s;u++){o(t,r[u],q)}return o.filter(x,q)};U.find=o;U.filter=o.filter;U.expr=o.selectors;U.expr[":"]=U.expr.filters;o.selectors.filters.hidden=function(q){return q.offsetWidth===0||q.offsetHeight===0};o.selectors.filters.visible=function(q){return q.offsetWidth>0||q.offsetHeight>0};o.selectors.filters.animated=function(q){return U.grep(U.timers,function(r){return q===r.elem}).length};U.multiFilter=function(q,s,r){if(r){q=":not("+q+")"}return o.matches(q,s)};U.dir=function(r,s){var t=[],q=r[s];while(q&&q!=document){if(q.nodeType==1){t.push(q)}q=q[s]}return t};U.nth=function(u,t,r,q){t=t||1;var s=0;for(;u;u=u[r]){if(u.nodeType==1&&++s==t){break}}return u};U.sibling=function(q,r){var s=[];for(;q;q=q.nextSibling){if(q.nodeType==1&&q!=r){s.push(q)}}return s};return;X.Sizzle=o})();U.event={add:function(C,c,D,A){if(C.nodeType==3||C.nodeType==8){return}if(C.setInterval&&C!=X){C=X}if(!D.guid){D.guid=this.guid++}if(A!==AC){var b=D;D=this.proxy(b);D.data=A}var d=U.data(C,"events")||U.data(C,"events",{}),B=U.data(C,"handle")||U.data(C,"handle",function(){return typeof U!=="undefined"&&!U.event.triggered?U.event.handle.apply(arguments.callee.elem,arguments):AC});B.elem=C;U.each(c.split(/\s+/),function(k,h){var g=h.split(".");h=g.shift();D.type=g.slice().sort().join(".");var f=d[h];if(U.event.specialAll[h]){U.event.specialAll[h].setup.call(C,A,g)}if(!f){f=d[h]={};if(!U.event.special[h]||U.event.special[h].setup.call(C,A,g)===false){if(C.addEventListener){C.addEventListener(h,B,false)}else{if(C.attachEvent){C.attachEvent("on"+h,B)}}}}f[D.guid]=D;U.event.global[h]=true});C=null},guid:1,global:{},remove:function(B,b,C){if(B.nodeType==3||B.nodeType==8){return}var c=U.data(B,"events"),d,f;if(c){if(b===AC||(typeof b==="string"&&b.charAt(0)==".")){for(var D in c){this.remove(B,D+(b||""))}}else{if(b.type){C=b.handler;b=b.type}U.each(b.split(/\s+/),function(m,k){var g=k.split(".");k=g.shift();var l=RegExp("(^|\\.)"+g.slice().sort().join(".*\\.")+"(\\.|$)");if(c[k]){if(C){delete c[k][C.guid]}else{for(var h in c[k]){if(l.test(c[k][h].type)){delete c[k][h]}}}if(U.event.specialAll[k]){U.event.specialAll[k].teardown.call(B,g)}for(d in c[k]){break}if(!d){if(!U.event.special[k]||U.event.special[k].teardown.call(B,g)===false){if(B.removeEventListener){B.removeEventListener(k,U.data(B,"handle"),false)}else{if(B.detachEvent){B.detachEvent("on"+k,U.data(B,"handle"))}}}d=null;delete c[k]}}})}for(d in c){break}if(!d){var A=U.data(B,"handle");if(A){A.elem=null}U.removeData(B,"events");U.removeData(B,"handle")}}},trigger:function(D,B,b,f){var c=D.type||D;if(!f){D=typeof D==="object"?D[AB]?D:U.extend(U.Event(c),D):U.Event(c);if(c.indexOf("!")>=0){D.type=c=c.slice(0,-1);D.exclusive=true}if(!b){D.stopPropagation();if(this.global[c]){U.each(U.cache,function(){if(this.events&&this.events[c]){U.event.trigger(D,B,this.handle.elem)}})}}if(!b||b.nodeType==3||b.nodeType==8){return AC}D.result=AC;D.target=b;B=U.makeArray(B);B.unshift(D)}D.currentTarget=b;var C=U.data(b,"handle");if(C){C.apply(b,B)}if((!b[c]||(U.nodeName(b,"a")&&c=="click"))&&b["on"+c]&&b["on"+c].apply(b,B)===false){D.result=false}if(!f&&b[c]&&!D.isDefaultPrevented()&&!(U.nodeName(b,"a")&&c=="click")){this.triggered=true;try{b[c]()}catch(A){}}this.triggered=false;if(!D.isPropagationStopped()){var d=b.parentNode||b.ownerDocument;if(d){U.event.trigger(D,B,d,true)}}},handle:function(B){var C,f;B=arguments[0]=U.event.fix(B||X.event);B.currentTarget=this;var A=B.type.split(".");B.type=A.shift();C=!A.length&&!B.exclusive;var D=RegExp("(^|\\.)"+A.slice().sort().join(".*\\.")+"(\\.|$)");f=(U.data(this,"events")||{})[B.type];for(var c in f){var b=f[c];if(C||D.test(b.type)){B.handler=b;B.data=b.data;var d=b.apply(this,arguments);if(d!==AC){B.result=d;if(d===false){B.preventDefault();B.stopPropagation()}}if(B.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(C){if(C[AB]){return C}var b=C;C=U.Event(b);for(var D=this.props.length,A;D;){A=this.props[--D];C[A]=b[A]}if(!C.target){C.target=C.srcElement||document}if(C.target.nodeType==3){C.target=C.target.parentNode}if(!C.relatedTarget&&C.fromElement){C.relatedTarget=C.fromElement==C.target?C.toElement:C.fromElement}if(C.pageX==null&&C.clientX!=null){var B=document.documentElement,c=document.body;C.pageX=C.clientX+(B&&B.scrollLeft||c&&c.scrollLeft||0)-(B.clientLeft||0);C.pageY=C.clientY+(B&&B.scrollTop||c&&c.scrollTop||0)-(B.clientTop||0)}if(!C.which&&((C.charCode||C.charCode===0)?C.charCode:C.keyCode)){C.which=C.charCode||C.keyCode}if(!C.metaKey&&C.ctrlKey){C.metaKey=C.ctrlKey}if(!C.which&&C.button){C.which=(C.button&1?1:(C.button&2?3:(C.button&4?2:0)))}return C},proxy:function(A,B){B=B||function(){return A.apply(this,arguments)};B.guid=A.guid=A.guid||B.guid||this.guid++;return B},special:{ready:{setup:Q,teardown:function(){}}},specialAll:{live:{setup:function(B,A){U.event.add(this,A[0],AG)},teardown:function(A){if(A.length){var C=0,B=RegExp("(^|\\.)"+A[0]+"(\\.|$)");U.each((U.data(this,"events").live||{}),function(){if(B.test(this.type)){C++}});if(C<1){U.event.remove(this,A[0],AG)}}}}}};U.Event=function(A){if(!this.preventDefault){return new U.Event(A)}if(A&&A.type){this.originalEvent=A;this.type=A.type}else{this.type=A}this.timeStamp=AE();this[AB]=true};function Y(){return false}function K(){return true}U.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var A=this.originalEvent;if(!A){return}if(A.preventDefault){A.preventDefault()}A.returnValue=false},stopPropagation:function(){this.isPropagationStopped=K;var A=this.originalEvent;if(!A){return}if(A.stopPropagation){A.stopPropagation()}A.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y};var AI=function(B){var C=B.relatedTarget;while(C&&C!=this){try{C=C.parentNode}catch(A){C=this}}if(C!=this){B.type=B.data;U.event.handle.apply(this,arguments)}};U.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(A,B){U.event.special[B]={setup:function(){U.event.add(this,A,AI,B)},teardown:function(){U.event.remove(this,A,AI)}}});U.fn.extend({bind:function(B,A,C){return B=="unload"?this.one(B,A,C):this.each(function(){U.event.add(this,B,C||A,C&&A)})},one:function(B,A,C){var D=U.event.proxy(C||A,function(b){U(this).unbind(b,D);return(C||A).apply(this,arguments)});return this.each(function(){U.event.add(this,B,D,C&&A)})},unbind:function(A,B){return this.each(function(){U.event.remove(this,A,B)})},trigger:function(B,A){return this.each(function(){U.event.trigger(B,A,this)})},triggerHandler:function(C,A){if(this[0]){var B=U.Event(C);B.preventDefault();B.stopPropagation();U.event.trigger(B,A,this[0]);return B.result}},toggle:function(A){var C=arguments,B=1;while(B<C.length){U.event.proxy(A,C[B++])}return this.click(U.event.proxy(A,function(D){this.lastToggle=(this.lastToggle||0)%B;D.preventDefault();return C[this.lastToggle++].apply(this,arguments)||false}))},hover:function(B,A){return this.mouseenter(B).mouseleave(A)},ready:function(A){Q();if(U.isReady){A.call(document,U)}else{U.readyList.push(A)}return this},live:function(A,B){var C=U.event.proxy(B);C.guid+=this.selector+A;U(document).bind(AA(A,this.selector),this.selector,C);return this},die:function(A,B){U(document).unbind(AA(A,this.selector),B?{guid:B.guid+this.selector+A}:null);return this}});function AG(A){var D=RegExp("(^|\\.)"+A.type+"(\\.|$)"),B=true,C=[];U.each(U.data(this,"events").live||[],function(d,c){if(D.test(c.type)){var b=U(A.target).closest(c.data)[0];if(b){C.push({elem:b,fn:c})}}});C.sort(function(b,c){return U.data(b.elem,"closest")-U.data(c.elem,"closest")});U.each(C,function(){if(this.fn.call(this.elem,A,this.fn.data)===false){return(B=false)}});return B}function AA(A,B){return["live",A,B.replace(/\./g,"`").replace(/ /g,"|")].join(".")}U.extend({isReady:false,readyList:[],ready:function(){if(!U.isReady){U.isReady=true;if(U.readyList){U.each(U.readyList,function(){this.call(document,U)});U.readyList=null}U(document).triggerHandler("ready")}}});var H=false;function Q(){if(H){return}H=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);U.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);U.ready()}});if(document.documentElement.doScroll&&X==X.top){(function(){if(U.isReady){return}try{document.documentElement.doScroll("left")}catch(A){setTimeout(arguments.callee,0);return}U.ready()})()}}}U.event.add(X,"load",U.ready)}U.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(A,B){U.fn[B]=function(C){return C?this.bind(B,C):this.trigger(B)}});U(X).bind("unload",function(){for(var A in U.cache){if(A!=1&&U.cache[A].handle){U.event.remove(U.cache[A].handle.elem)}}});(function(){U.support={};var c=document.documentElement,b=document.createElement("script"),A=document.createElement("div"),B="script"+(new Date).getTime();A.style.display="none";A.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var D=A.getElementsByTagName("*"),d=A.getElementsByTagName("a")[0];if(!D||!D.length||!d){return}U.support={leadingWhitespace:A.firstChild.nodeType==3,tbody:!A.getElementsByTagName("tbody").length,objectAll:!!A.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!A.getElementsByTagName("link").length,style:/red/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:d.style.opacity==="0.5",cssFloat:!!d.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+B+"=1;"))}catch(C){}c.insertBefore(b,c.firstChild);if(X[B]){U.support.scriptEval=true;delete X[B]}c.removeChild(b);if(A.attachEvent&&A.fireEvent){A.attachEvent("onclick",function(){U.support.noCloneEvent=false;A.detachEvent("onclick",arguments.callee)});A.cloneNode(true).fireEvent("onclick")}U(function(){var f=document.createElement("div");f.style.width=f.style.paddingLeft="1px";document.body.appendChild(f);U.boxModel=U.support.boxModel=f.offsetWidth===2;document.body.removeChild(f).style.display="none"})})();var I=U.support.cssFloat?"cssFloat":"styleFloat";U.props={"for":"htmlFor","class":"className","float":I,cssFloat:I,styleFloat:I,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};U.fn.extend({_load:U.fn.load,load:function(b,B,A){if(typeof b!=="string"){return this._load(b)}var C=b.indexOf(" ");if(C>=0){var d=b.slice(C,b.length);b=b.slice(0,C)}var D="GET";if(B){if(U.isFunction(B)){A=B;B=null}else{if(typeof B==="object"){B=U.param(B);D="POST"}}}var c=this;U.ajax({url:b,type:D,dataType:"html",data:B,complete:function(g,f){if(f=="success"||f=="notmodified"){c.html(d?U("<div/>").append(g.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(d):g.responseText)}if(A){c.each(A,[g.responseText,f,g])}}});return this},serialize:function(){return U.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?U.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(C,B){var A=U(this).val();return A==null?null:U.isArray(A)?U.map(A,function(D,b){return{name:B.name,value:D}}):{name:B.name,value:A}}).get()}});U.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(B,A){U.fn[A]=function(C){return this.bind(A,C)}});var O=AE();U.extend({get:function(D,B,A,C){if(U.isFunction(B)){A=B;B=null}return U.ajax({type:"GET",url:D,data:B,success:A,dataType:C})},getScript:function(B,A){return U.get(B,null,A,"script")},getJSON:function(C,B,A){return U.get(C,B,A,"json")},post:function(D,B,A,C){if(U.isFunction(B)){A=B;B={}}return U.ajax({type:"POST",url:D,data:B,success:A,dataType:C})},ajaxSetup:function(A){U.extend(U.ajaxSettings,A)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return X.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(k){k=U.extend(true,k,U.extend(true,{},U.ajaxSettings,k));var A,s=/=\?(&|$)/g,c,B,r=k.type.toUpperCase();if(k.data&&k.processData&&typeof k.data!=="string"){k.data=U.param(k.data)}if(k.dataType=="jsonp"){if(r=="GET"){if(!k.url.match(s)){k.url+=(k.url.match(/\?/)?"&":"?")+(k.jsonp||"callback")+"=?"}}else{if(!k.data||!k.data.match(s)){k.data=(k.data?k.data+"&":"")+(k.jsonp||"callback")+"=?"}}k.dataType="json"}if(k.dataType=="json"&&(k.data&&k.data.match(s)||k.url.match(s))){A="jsonp"+O++;if(k.data){k.data=(k.data+"").replace(s,"="+A+"$1")}k.url=k.url.replace(s,"="+A+"$1");k.dataType="script";X[A]=function(v){B=v;p();l();X[A]=AC;try{delete X[A]}catch(u){}if(q){q.removeChild(D)}}}if(k.dataType=="script"&&k.cache==null){k.cache=false}if(k.cache===false&&r=="GET"){var t=AE();var C=k.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+t+"$2");k.url=C+((C==k.url)?(k.url.match(/\?/)?"&":"?")+"_="+t:"")}if(k.data&&r=="GET"){k.url+=(k.url.match(/\?/)?"&":"?")+k.data;k.data=null}if(k.global&&!U.active++){U.event.trigger("ajaxStart")}var d=/^(\w+:)?\/\/([^\/?#]+)/.exec(k.url);if(k.dataType=="script"&&r=="GET"&&d&&(d[1]&&d[1]!=location.protocol||d[2]!=location.host)){var q=document.getElementsByTagName("head")[0];var D=document.createElement("script");D.src=k.url;if(k.scriptCharset){D.charset=k.scriptCharset}if(!A){var g=false;D.onload=D.onreadystatechange=function(){if(!g&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){g=true;p();l();D.onload=D.onreadystatechange=null;q.removeChild(D)}}}q.appendChild(D);return AC}var m=false;var o=k.xhr();if(k.username){o.open(r,k.url,k.async,k.username,k.password)}else{o.open(r,k.url,k.async)}try{if(k.data){o.setRequestHeader("Content-Type",k.contentType)}if(k.ifModified){o.setRequestHeader("If-Modified-Since",U.lastModified[k.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}o.setRequestHeader("X-Requested-With","XMLHttpRequest");o.setRequestHeader("Accept",k.dataType&&k.accepts[k.dataType]?k.accepts[k.dataType]+", */*":k.accepts._default)}catch(b){}if(k.beforeSend&&k.beforeSend(o,k)===false){if(k.global&&!--U.active){U.event.trigger("ajaxStop")}o.abort();return false}if(k.global){U.event.trigger("ajaxSend",[o,k])}var h=function(w){if(o.readyState==0){if(f){clearInterval(f);f=null;if(k.global&&!--U.active){U.event.trigger("ajaxStop")}}}else{if(!m&&o&&(o.readyState==4||w=="timeout")){m=true;if(f){clearInterval(f);f=null}c=w=="timeout"?"timeout":!U.httpSuccess(o)?"error":k.ifModified&&U.httpNotModified(o,k.url)?"notmodified":"success";if(c=="success"){try{B=U.httpData(o,k.dataType,k)}catch(u){c="parsererror"}}if(c=="success"){var v;try{v=o.getResponseHeader("Last-Modified")}catch(u){}if(k.ifModified&&v){U.lastModified[k.url]=v}if(!A){p()}}else{U.handleError(k,o,c)}l();if(w){o.abort()}if(k.async){o=null}}}};if(k.async){var f=setInterval(h,13);if(k.timeout>0){setTimeout(function(){if(o&&!m){h("timeout")}},k.timeout)}}try{o.send(k.data)}catch(b){U.handleError(k,o,null,b)}if(!k.async){h()}function p(){if(k.success){k.success(B,c)}if(k.global){U.event.trigger("ajaxSuccess",[o,k])}}function l(){if(k.complete){k.complete(o,c)}if(k.global){U.event.trigger("ajaxComplete",[o,k])}if(k.global&&!--U.active){U.event.trigger("ajaxStop")}}return o},handleError:function(C,A,D,B){if(C.error){C.error(A,D,B)}if(C.global){U.event.trigger("ajaxError",[A,C,B])}},active:0,httpSuccess:function(A){try{return !A.status&&location.protocol=="file:"||(A.status>=200&&A.status<300)||A.status==304||A.status==1223}catch(B){}return false},httpNotModified:function(B,D){try{var A=B.getResponseHeader("Last-Modified");return B.status==304||A==U.lastModified[D]}catch(C){}return false},httpData:function(A,C,D){var b=A.getResponseHeader("content-type"),c=C=="xml"||!C&&b&&b.indexOf("xml")>=0,B=c?A.responseXML:A.responseText;if(c&&B.documentElement.tagName=="parsererror"){throw"parsererror"}if(D&&D.dataFilter){B=D.dataFilter(B,C)}if(typeof B==="string"){if(C=="script"){U.globalEval(B)}if(C=="json"){B=X["eval"]("("+B+")")}}return B},param:function(D){var B=[];function A(c,b){B[B.length]=encodeURIComponent(c)+"="+encodeURIComponent(b)}if(U.isArray(D)||D.jquery){U.each(D,function(){A(this.name,this.value)})}else{for(var C in D){if(U.isArray(D[C])){U.each(D[C],function(){A(C,this)})}else{A(C,U.isFunction(D[C])?D[C]():D[C])}}}return B.join("&").replace(/%20/g,"+")}});var W={},V,AF=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function L(B,C){var A={};U.each(AF.concat.apply([],AF.slice(0,C)),function(){A[this]=B});return A}U.fn.extend({show:function(C,A){if(C){return this.animate(L("show",3),C,A)}else{for(var b=0,d=this.length;b<d;b++){var f=U.data(this[b],"olddisplay");this[b].style.display=f||"";if(U.css(this[b],"display")==="none"){var c=this[b].tagName,B;if(W[c]){B=W[c]}else{var D=U("<"+c+" />").appendTo("body");B=D.css("display");if(B==="none"){B="block"}D.remove();W[c]=B}U.data(this[b],"olddisplay",B)}}for(var b=0,d=this.length;b<d;b++){this[b].style.display=U.data(this[b],"olddisplay")||""}return this}},hide:function(B,A){if(B){return this.animate(L("hide",3),B,A)}else{for(var C=0,D=this.length;C<D;C++){var b=U.data(this[C],"olddisplay");if(!b&&b!=="none"){U.data(this[C],"olddisplay",U.css(this[C],"display"))}}for(var C=0,D=this.length;C<D;C++){this[C].style.display="none"}return this}},_toggle:U.fn.toggle,toggle:function(A,B){var C=typeof A==="boolean";return U.isFunction(A)&&U.isFunction(B)?this._toggle.apply(this,arguments):A==null||C?this.each(function(){var D=C?A:U(this).is(":hidden");U(this)[D?"show":"hide"]()}):this.animate(L("toggle",3),A,B)},fadeTo:function(C,A,B){return this.animate({opacity:A},C,B)},animate:function(A,D,B,C){var b=U.speed(D,B,C);return this[b.queue===false?"each":"queue"](function(){var d=U.extend({},b),g,c=this.nodeType==1&&U(this).is(":hidden"),f=this;for(g in A){if(A[g]=="hide"&&c||A[g]=="show"&&!c){return d.complete.call(this)}if((g=="height"||g=="width")&&this.style){d.display=U.css(this,"display");d.overflow=this.style.overflow}}if(d.overflow!=null){this.style.overflow="hidden"}d.curAnim=U.extend({},A);U.each(A,function(p,k){var l=new U.fx(f,d,p);if(/toggle|show|hide/.test(k)){l[k=="toggle"?c?"show":"hide":k](A)}else{var m=k.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),h=l.cur(true)||0;if(m){var q=parseFloat(m[2]),o=m[3]||"px";if(o!="px"){f.style[p]=(q||1)+o;h=((q||1)/l.cur(true))*h;f.style[p]=h+o}if(m[1]){q=((m[1]=="-="?-1:1)*q)+h}l.custom(h,q,o)}else{l.custom(h,k,"")}}});return true})},stop:function(B,C){var A=U.timers;if(B){this.queue([])}this.each(function(){for(var D=A.length-1;D>=0;D--){if(A[D].elem==this){if(C){A[D](true)}A.splice(D,1)}}});if(!C){this.dequeue()}return this}});U.each({slideDown:L("show",1),slideUp:L("hide",1),slideToggle:L("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(B,A){U.fn[B]=function(D,C){return this.animate(A,D,C)}});U.extend({speed:function(B,A,C){var D=typeof B==="object"?B:{complete:C||!C&&A||U.isFunction(B)&&B,duration:B,easing:C&&A||A&&!U.isFunction(A)&&A};D.duration=U.fx.off?0:typeof D.duration==="number"?D.duration:U.fx.speeds[D.duration]||U.fx.speeds._default;D.old=D.complete;D.complete=function(){if(D.queue!==false){U(this).dequeue()}if(U.isFunction(D.old)){D.old.call(this)}};return D},easing:{linear:function(B,A,D,C){return D+C*B},swing:function(B,A,D,C){return((-Math.cos(B*Math.PI)/2)+0.5)*C+D}},timers:[],fx:function(B,C,A){this.options=C;this.elem=B;this.prop=A;if(!C.orig){C.orig={}}}});U.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(U.fx.step[this.prop]||U.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(A){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var B=parseFloat(U.css(this.elem,this.prop,A));return B&&B>-10000?B:parseFloat(U.curCSS(this.elem,this.prop))||0},custom:function(A,B,C){this.startTime=AE();this.start=A;this.end=B;this.unit=C||this.unit||"px";this.now=this.start;this.pos=this.state=0;var b=this;function D(c){return b.step(c)}D.elem=this.elem;if(D()&&U.timers.push(D)&&!V){V=setInterval(function(){var c=U.timers;for(var d=0;d<c.length;d++){if(!c[d]()){c.splice(d--,1)}}if(!c.length){clearInterval(V);V=AC}},13)}},show:function(){this.options.orig[this.prop]=U.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());U(this.elem).show()},hide:function(){this.options.orig[this.prop]=U.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(C){var D=AE();if(C||D>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var c=true;for(var b in this.options.curAnim){if(this.options.curAnim[b]!==true){c=false}}if(c){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(U.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){U(this.elem).hide()}if(this.options.hide||this.options.show){for(var B in this.options.curAnim){U.attr(this.elem.style,B,this.options.orig[B])}}this.options.complete.call(this.elem)}return false}else{var A=D-this.startTime;this.state=A/this.options.duration;this.pos=U.easing[this.options.easing||(U.easing.swing?"swing":"linear")](this.state,A,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};U.extend(U.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(A){U.attr(A.elem.style,"opacity",A.now)},_default:function(A){if(A.elem.style&&A.elem.style[A.prop]!=null){A.elem.style[A.prop]=A.now+A.unit}else{A.elem[A.prop]=A.now}}}});if(document.documentElement.getBoundingClientRect){U.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return U.offset.bodyOffset(this[0])}var c=this[0].getBoundingClientRect(),C=this[0].ownerDocument,d=C.body,f=C.documentElement,A=f.clientTop||d.clientTop||0,B=f.clientLeft||d.clientLeft||0,D=c.top+(self.pageYOffset||U.boxModel&&f.scrollTop||d.scrollTop)-A,b=c.left+(self.pageXOffset||U.boxModel&&f.scrollLeft||d.scrollLeft)-B;return{top:D,left:b}}}else{U.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return U.offset.bodyOffset(this[0])}U.offset.initialized||U.offset.initialize();var c=this[0],g=c.offsetParent,h=c,A=c.ownerDocument,C,f=A.documentElement,b=A.body,D=A.defaultView,k=D.getComputedStyle(c,null),B=c.offsetTop,d=c.offsetLeft;while((c=c.parentNode)&&c!==b&&c!==f){C=D.getComputedStyle(c,null);B-=c.scrollTop,d-=c.scrollLeft;if(c===g){B+=c.offsetTop,d+=c.offsetLeft;if(U.offset.doesNotAddBorder&&!(U.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(c.tagName))){B+=parseInt(C.borderTopWidth,10)||0,d+=parseInt(C.borderLeftWidth,10)||0}h=g,g=c.offsetParent}if(U.offset.subtractsBorderForOverflowNotVisible&&C.overflow!=="visible"){B+=parseInt(C.borderTopWidth,10)||0,d+=parseInt(C.borderLeftWidth,10)||0}k=C}if(k.position==="relative"||k.position==="static"){B+=b.offsetTop,d+=b.offsetLeft}if(k.position==="fixed"){B+=Math.max(f.scrollTop,b.scrollTop),d+=Math.max(f.scrollLeft,b.scrollLeft)}return{top:B,left:d}}}U.offset={initialize:function(){if(this.initialized){return}var C=document.body,g=document.createElement("div"),d,f,A,c,B,h,b=C.style.marginTop,D='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';B={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(h in B){g.style[h]=B[h]}g.innerHTML=D;C.insertBefore(g,C.firstChild);d=g.firstChild,f=d.firstChild,c=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(f.offsetTop!==5);this.doesAddBorderForTableAndCells=(c.offsetTop===5);d.style.overflow="hidden",d.style.position="relative";this.subtractsBorderForOverflowNotVisible=(f.offsetTop===-5);C.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(C.offsetTop===0);C.style.marginTop=b;C.removeChild(g);this.initialized=true},bodyOffset:function(C){U.offset.initialized||U.offset.initialize();var A=C.offsetTop,B=C.offsetLeft;if(U.offset.doesNotIncludeMarginInBodyOffset){A+=parseInt(U.curCSS(C,"marginTop",true),10)||0,B+=parseInt(U.curCSS(C,"marginLeft",true),10)||0}return{top:A,left:B}}};U.fn.extend({position:function(){var B=0,C=0,b;if(this[0]){var D=this.offsetParent(),A=this.offset(),c=/^body|html$/i.test(D[0].tagName)?{top:0,left:0}:D.offset();A.top-=Z(this,"marginTop");A.left-=Z(this,"marginLeft");c.top+=Z(D,"borderTopWidth");c.left+=Z(D,"borderLeftWidth");b={top:A.top-c.top,left:A.left-c.left}}return b},offsetParent:function(){var A=this[0].offsetParent||document.body;while(A&&(!/^body|html$/i.test(A.tagName)&&U.css(A,"position")=="static")){A=A.offsetParent}return U(A)}});U.each(["Left","Top"],function(B,C){var A="scroll"+C;U.fn[A]=function(D){if(!this[0]){return null}return D!==AC?this.each(function(){this==X||this==document?X.scrollTo(!B?D:U(X).scrollLeft(),B?D:U(X).scrollTop()):this[A]=D}):this[0]==X||this[0]==document?self[B?"pageYOffset":"pageXOffset"]||U.boxModel&&document.documentElement[A]||document.body[A]:this[0][A]}});U.each(["Height","Width"],function(B,D){var c=B?"Left":"Top",C=B?"Right":"Bottom",b=D.toLowerCase();U.fn["inner"+D]=function(){return this[0]?U.css(this[0],b,false,"padding"):null};U.fn["outer"+D]=function(d){return this[0]?U.css(this[0],b,false,d?"margin":"border"):null};var A=D.toLowerCase();U.fn[A]=function(d){return this[0]==X?document.compatMode=="CSS1Compat"&&document.documentElement["client"+D]||document.body["client"+D]:this[0]==document?Math.max(document.documentElement["client"+D],document.body["scroll"+D],document.documentElement["scroll"+D],document.body["offset"+D],document.documentElement["offset"+D]):d===AC?(this.length?U.css(this[0],A):null):this.css(A,typeof d==="string"?d:d+"px")}})})();var tb_pathToImage="http://img.makaan.com/images/loading.gif";
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(A){$(A).click(function(){var C=this.title||this.name||null;var B=this.href||this.alt;var D=this.rel||false;tb_show(C,B,D);this.blur();return false})}function tb_show(J,B,H){try{if(typeof document.body.style.maxHeight==="undefined"){document.body.scroll="no";$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){document.body.scroll="no";$("body").append("<div id='TB_overlay' ></div><div id='TB_window' ></div>");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(J===null){J=""}$("body").append("<div id='TB_load' ><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var C;if(B.indexOf("?")!==-1){C=B.substr(0,B.indexOf("?"))}else{C=B}var F=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var K=C.toLowerCase().match(F);if(K==".jpg"||K==".jpeg"||K==".png"||K==".gif"||K==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(H){TB_TempArray=$("a[@rel="+H+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var G=TB_TempArray[TB_Counter].href.toLowerCase().match(F);if(!(TB_TempArray[TB_Counter].href==B)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var O=tb_getPageSize();var M=O[0]-150;var P=O[1]-150;var N=imgPreloader.width;var L=imgPreloader.height;if(N>M){L=L*(M/N);N=M;if(L>P){N=N*(P/L);L=P}}else{if(L>P){N=N*(P/L);L=P;if(N>M){L=L*(M/N);N=M}}}TB_WIDTH=N+30;TB_HEIGHT=L+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+B+"' width='"+N+"' height='"+L+"' alt='"+J+"'/></a><div id='TB_caption'>"+J+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");$("#TB_closeWindowButton").click(tb_remove);document.onkeydown=function(Q){if(Q==null){keycode=event.keyCode}else{keycode=Q.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";goNext()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=B}else{var A=B.replace(/^[^\?]+\??/,"");var D=tb_parseQuery(A);if(width_set==10){TB_WIDTH=(D.width*1)||630;ajaxContentW=TB_WIDTH}else{TB_WIDTH=(D.width*1)+30||630;ajaxContentW=TB_WIDTH-30}TB_HEIGHT=(D.height*1)+40||440;ajaxContentH=TB_HEIGHT-45;if(B.indexOf("TB_iframe")!=-1){urlNoQuery=B.split("TB_");$("#TB_title").remove();$("#TB_iframeContent").remove();$("TB_window").remove();if(D.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+J+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'><img src='http://img.makaan.com/images/close.jpg' alt='Close' border='0'/></a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+21)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+21)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(D.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+J+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'><img src='http://img.makaan.com/images/close.jpg' alt='Close' border='0'/></a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(J)}}$("#TB_closeWindowButton").click(tb_remove);if(B.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+D.inlineId).children());$("#TB_window").unload(function(){$("#"+D.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(B.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(B+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!D.modal){document.onkeyup=function(L){if(L==null){keycode=event.keyCode}else{keycode=L.which}if(keycode==27){tb_remove()}}}}catch(I){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_overlay").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("slow",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(D){var F={};if(!D){return F}var A=D.split(/[;&]/);for(var C=0;C<A.length;C++){var H=A[C].split("=");if(!H||H.length!=2){continue}var B=unescape(H[0]);var G=unescape(H[1]);G=G.replace(/\+/g," ");F[B]=G}return F}function tb_getPageSize(){var C=document.documentElement;var A=window.innerWidth||self.innerWidth||(C&&C.clientWidth)||document.body.clientWidth;var B=window.innerHeight||self.innerHeight||(C&&C.clientHeight)||document.body.clientHeight;arrayPageSize=[A,B];return arrayPageSize}function tb_detectMacXFF(){var A=navigator.userAgent.toLowerCase();if(A.indexOf("mac")!=-1&&A.indexOf("firefox")!=-1){return true}};