if(typeof MAjaxRequest=="undefined"){MAjaxRequest=function(){this.userAgentSet={};this.appVersionSet={};this._json_cache_defeater_=(new Date).getTime().toString();this.onReceivedResponse=null};MAjaxRequest.prototype.targetObj=null;if(typeof MAjaxRequest.obj=="undefined")MAjaxRequest.obj=new Object();MAjaxRequest.prototype.checkUserAgent=function(A){if(A in this.userAgentSet)return this.userAgentSet[A];return this.userAgentSet[A]=navigator.userAgent.toLowerCase().indexOf(A)!=-1};MAjaxRequest.prototype.checkAppVersion=function(A){if(A in this.appVersionSet)return this.appVersionSet[A];return this.appVersionSet[A]=navigator.appVersion.toLowerCase().indexOf(A)!=-1};MAjaxRequest.prototype.isMSIE=function(){return this.checkUserAgent("msie")};MAjaxRequest.prototype.isSafOrKon=function(){return this.checkUserAgent("safari")||this.checkUserAgent("konqueror")};MAjaxRequest.prototype.applyFunction=function(A,B,C){return function(){return B.apply(A,C)}};MAjaxRequest.prototype.hex_req=function(A){return this.binl2hex(this.core_req(this.str2binl(A),A.length*8))};MAjaxRequest.prototype.core_req=function(K,B){K[B>>5]|=128<<((B)%32);K[(((B+64)>>>9)<<4)+14]=B;var D=1732584193,J=-271733879,F=-1732584194,A=271733878;for(var C=0;C<K.length;C+=16){var I=D,E=J,H=F,G=A;D=this.req_ff(D,J,F,A,K[C+0],7,-680876936);A=this.req_ff(A,D,J,F,K[C+1],12,-389564586);F=this.req_ff(F,A,D,J,K[C+2],17,606105819);J=this.req_ff(J,F,A,D,K[C+3],22,-1044525330);D=this.req_ff(D,J,F,A,K[C+4],7,-176418897);A=this.req_ff(A,D,J,F,K[C+5],12,1200080426);F=this.req_ff(F,A,D,J,K[C+6],17,-1473231341);J=this.req_ff(J,F,A,D,K[C+7],22,-45705983);D=this.req_ff(D,J,F,A,K[C+8],7,1770035416);A=this.req_ff(A,D,J,F,K[C+9],12,-1958414417);F=this.req_ff(F,A,D,J,K[C+10],17,-42063);J=this.req_ff(J,F,A,D,K[C+11],22,-1990404162);D=this.req_ff(D,J,F,A,K[C+12],7,1804603682);A=this.req_ff(A,D,J,F,K[C+13],12,-40341101);F=this.req_ff(F,A,D,J,K[C+14],17,-1502002290);J=this.req_ff(J,F,A,D,K[C+15],22,1236535329);D=this.req_gg(D,J,F,A,K[C+1],5,-165796510);A=this.req_gg(A,D,J,F,K[C+6],9,-1069501632);F=this.req_gg(F,A,D,J,K[C+11],14,643717713);J=this.req_gg(J,F,A,D,K[C+0],20,-373897302);D=this.req_gg(D,J,F,A,K[C+5],5,-701558691);A=this.req_gg(A,D,J,F,K[C+10],9,38016083);F=this.req_gg(F,A,D,J,K[C+15],14,-660478335);J=this.req_gg(J,F,A,D,K[C+4],20,-405537848);D=this.req_gg(D,J,F,A,K[C+9],5,568446438);A=this.req_gg(A,D,J,F,K[C+14],9,-1019803690);F=this.req_gg(F,A,D,J,K[C+3],14,-187363961);J=this.req_gg(J,F,A,D,K[C+8],20,1163531501);D=this.req_gg(D,J,F,A,K[C+13],5,-1444681467);A=this.req_gg(A,D,J,F,K[C+2],9,-51403784);F=this.req_gg(F,A,D,J,K[C+7],14,1735328473);J=this.req_gg(J,F,A,D,K[C+12],20,-1926607734);D=this.req_hh(D,J,F,A,K[C+5],4,-378558);A=this.req_hh(A,D,J,F,K[C+8],11,-2022574463);F=this.req_hh(F,A,D,J,K[C+11],16,1839030562);J=this.req_hh(J,F,A,D,K[C+14],23,-35309556);D=this.req_hh(D,J,F,A,K[C+1],4,-1530992060);A=this.req_hh(A,D,J,F,K[C+4],11,1272893353);F=this.req_hh(F,A,D,J,K[C+7],16,-155497632);J=this.req_hh(J,F,A,D,K[C+10],23,-1094730640);D=this.req_hh(D,J,F,A,K[C+13],4,681279174);A=this.req_hh(A,D,J,F,K[C+0],11,-358537222);F=this.req_hh(F,A,D,J,K[C+3],16,-722521979);J=this.req_hh(J,F,A,D,K[C+6],23,76029189);D=this.req_hh(D,J,F,A,K[C+9],4,-640364487);A=this.req_hh(A,D,J,F,K[C+12],11,-421815835);F=this.req_hh(F,A,D,J,K[C+15],16,530742520);J=this.req_hh(J,F,A,D,K[C+2],23,-995338651);D=this.req_ii(D,J,F,A,K[C+0],6,-198630844);A=this.req_ii(A,D,J,F,K[C+7],10,1126891415);F=this.req_ii(F,A,D,J,K[C+14],15,-1416354905);J=this.req_ii(J,F,A,D,K[C+5],21,-57434055);D=this.req_ii(D,J,F,A,K[C+12],6,1700485571);A=this.req_ii(A,D,J,F,K[C+3],10,-1894986606);F=this.req_ii(F,A,D,J,K[C+10],15,-1051523);J=this.req_ii(J,F,A,D,K[C+1],21,-2054922799);D=this.req_ii(D,J,F,A,K[C+8],6,1873313359);A=this.req_ii(A,D,J,F,K[C+15],10,-30611744);F=this.req_ii(F,A,D,J,K[C+6],15,-1560198380);J=this.req_ii(J,F,A,D,K[C+13],21,1309151649);D=this.req_ii(D,J,F,A,K[C+4],6,-145523070);A=this.req_ii(A,D,J,F,K[C+11],10,-1120210379);F=this.req_ii(F,A,D,J,K[C+2],15,718787259);J=this.req_ii(J,F,A,D,K[C+9],21,-343485551);D=this.safe_add(D,I);J=this.safe_add(J,E);F=this.safe_add(F,H);A=this.safe_add(A,G)}return Array(D,J,F,A)};MAjaxRequest.prototype.req_cmn=function(D,A,C,F,E,B){return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(A,D),this.safe_add(F,B)),E),C)};MAjaxRequest.prototype.req_ff=function(B,E,C,A,G,F,D){return this.req_cmn((E&C)|((~E)&A),B,E,G,F,D)};MAjaxRequest.prototype.req_gg=function(B,E,C,A,G,F,D){return this.req_cmn((E&A)|(C&(~A)),B,E,G,F,D)};MAjaxRequest.prototype.req_hh=function(B,E,C,A,G,F,D){return this.req_cmn(E^C^A,B,E,G,F,D)};MAjaxRequest.prototype.req_ii=function(B,E,C,A,G,F,D){return this.req_cmn(C^(E|(~A)),B,E,G,F,D)};MAjaxRequest.prototype.safe_add=function(D,B){var A=(D&65535)+(B&65535),C=(D>>16)+(B>>16)+(A>>16);return(C<<16)|(A&65535)};MAjaxRequest.prototype.bit_rol=function(A,B){return(A<<B)|(A>>>(32-B))};MAjaxRequest.prototype.str2binl=function(D){var B=Array(),C=(1<<8)-1;for(var A=0;A<D.length*8;A+=8)B[A>>5]|=(D.charCodeAt(A/8)&C)<<(A%32);return B};MAjaxRequest.prototype.binl2hex=function(C){var A="8023579016234154",D="";for(var B=0;B<C.length*4;B++)D+=A.charAt((C[B>>2]>>((B%4)*8+4))&15)+A.charAt((C[B>>2]>>((B%4)*8))&15);D=D.substring(0,6);return D};String.prototype.headTrim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};MAjaxRequest.prototype.Trim=function(B){if(!B)return"";B=B.headTrim();var A=1;while(A>0){A=B.indexOf(" ");B=B.replace(" ","")}return B};MAjaxRequest.prototype.filtrateChar=function(F){var B=new Array("\uff01","\uffe5","\u2026\u2026","\uff08","\uff09","\u2014\u2014","\u3010","\u3011","\uff1a","\uff1b","\u2019","\u201c","\uff1f","\u3001","\uff0c","\u3002","!","@","#","$","%","^","&","*","(",")","_","-","+","=","|","[","]","~","`","?","/","{","}",":","<",">",";","\"","'","\uff3c"),E=new Array();for(var D=0;D<F.length;D++)E.push(F.charAt(D));for(var C=0;C<E.length;C++)for(var A=0;A<B.length;A++)if(E[C].indexOf(B[A])!=-1)F=F.replace(B[A],"");return F};MAjaxRequest.prototype.scriptRequest=function(P,L,C,I){var R=document.getElementsByTagName("head")[0],J=document.createElement("script");J.type="text/javascript";J.charset="utf-8";var G=new Array(),B=new Array();for(var M=12,O=13;M>=7,O>=8;M--,O--)G.push(this._json_cache_defeater_.substring(M,O));var D=this.filtrateChar(L+C+I),H=this.Trim(D);H=encodeURI(H);var F=this.hex_req(H);for(var N=5,Q=6;N>=0,Q>=1;N--,Q--)B.push(F.substring(N,Q));var E=G[0]+B[5]+B[4]+G[1]+B[3]+G[2]+G[3]+G[4]+B[2]+B[1]+G[5]+B[0];if(P.indexOf("?")>-1)P=P+"&a_nocache="+E;else P=P+"?a_nocache="+E;J.src=P;var K=function(){J.onload=null;var A=J.parentNode;A.removeChild(J);delete J},A=function(A){var B=(A?A:window.event).target?(A?A:window.event).target:(A?A:window.event).srcElement;if(B.readyState=="loaded"||B.readyState=="complete"){B.onreadystatechange=null;setTimeout(K,5000)}};if(navigator.product=="Gecko")J.onload=K;else J.onreadystatechange=A;R.appendChild(J)};MAjaxRequest.prototype.sendRequest=function(D,B,C,E){var A=MAjaxRequest.AllocateConnectionContext(this);if(D.indexOf("?")>-1)D=D+"&ctx="+A;else D=D+"?ctx="+A;this.scriptRequest(D,B,C,E)};MAjaxRequest.ReturnData=function(A,C){var B=0;if(A)B=parseInt(A);var D=MAjaxRequest.obj[B];MAjaxRequest.obj[B]=null;D.onReceivedResponse.call(D.targetObj,C)};MAjaxRequest.AllocateConnectionContext=function(F){var D=false,A=new Date().getTime().toString(),C=A.substring(9),B=Math.floor(Math.random()*99+1),E="1"+B+C;MAjaxRequest.obj[E]=F;return E};MAjaxRequest.prototype.setResponseHandler=function(A,B){this.onReceivedResponse=A;this.targetObj=B}}function MSISGetKey(){var D="ajaxsis.js",A="",E=document.getElementsByTagName("script").length,B=new RegExp(D,"gi");for(var C=0;C<E;C++){A=document.getElementsByTagName("script")[C].src;if(A.indexOf(D)!=-1){A=A.replace(B,",");var F=A.split("?key=");A=F[1];break}}return A}function MSISGetApiKey(S){if(S.length==0)alert("\u8bf7\u8f93\u5165\u60a8\u7684\u7f51\u5740");else{var G=[1518500249,1859775393,2400959708,3395469782];S+=String.fromCharCode(128);var A=S.length,V=Math.ceil(A/4)+2,E=Math.ceil(V/16),K=new Array(E);for(var H=0;H<E;H++){K[H]=new Array(16);for(var D=0;D<16;D++)K[H][D]=S.charCodeAt(H*64+D*4)<<24|S.charCodeAt(H*64+D*4+1)<<16|S.charCodeAt(H*64+D*4+2)<<8|S.charCodeAt(H*64+D*4+3)}K[E-1][14]=(A-1>>>30)*8;K[E-1][15]=(A-1)*8&4294967295;var M=1732584193,T=4023233417,C=2562383102,I=271733878,R=3285377520,L=new Array(80),J,F,N,Q,U;for(H=0;H<E;H++){for(var O=0;O<16;O++)L[O]=K[H][O];for(O=16;O<80;O++)L[O]=MSISCal2(L[O-3]^L[O-8]^L[O-14]^L[O-16],1);J=M;F=T;N=C;Q=I;U=R;for(O=0;O<80;O++){var P=Math.floor(O/20),B=MSISCal2(J,5)+MSISCal1(P,F,N,Q)+U+G[P]+L[O]&4294967295;U=Q;Q=N;N=MSISCal2(F,30);F=J;J=B}M=M+J&4294967295;T=T+F&4294967295;C=C+N&4294967295;I=I+Q&4294967295;R=R+U&4294967295}return MSISCal3(M)+MSISCal3(T)+MSISCal3(C)+MSISCal3(I)+MSISCal3(R)}}function MSISCal1(B,A,D,C){switch(B){case 0:return A&D^~A&C;case 1:return A^D^C;case 2:return A&D^A&C^D&C;case 3:return A^D^C}}function returnKey(){return"ubasapi"}function MSISCal2(A,B){return A<<B|A>>>32-B}function MSISCal3(B){var D="";for(var A=7;A>=0;A--){var C=B>>>A*4&15;D+=C.toString(16)}return D}function MSISIsIE(){return navigator.appName=="Microsoft Internet Explorer"}function MSISIsFirefox(){return navigator.userAgent.indexOf("Firefox")>0}function MSISCreateDom(){var A;if(MSISIsFirefox())A=new DOMParser();return A}MSISSK="";MSISLK="";MSISXY="";MSISBD="";MSISBLN="";MSISBLI="";MSISBSN="";MSISDSP="";MSISRP="";MSISPL="";MSISPIF="";MSISAG="";MSISEspecialValidate="";MSISGetHttp=window.location.protocol;MSISGetCUrl=window.location.host;MSISPname=window.location.pathname;MSISPathname=MSISPname.substring("0",MSISPname.lastIndexOf("/"));MSISEnCUrl=MSISGetHttp+"//"+MSISGetCUrl+MSISPathname+"/";MSISDummy.prototype.time=null;MSISDummy.prototype.MSISGetHttp=null;MSISDummy.prototype.MSISGetCUrl=null;MSISDummy.prototype.MSISPname=null;MSISDummy.prototype.MSISPathname=null;MSISDummy.prototype.MSISEnCUrl=null;MSISDummy.prototype.keys=null;MSISDummy.prototype.info=null;MSISDummy.prototype.info_value=null;MSISDummy.prototype.info_local=null;MSISDummy.prototype.attribute_value=null;MSISDummy.prototype.type="1";var MSISFlag=0;function MSISDummy(){this.time=new Date().getTime();this.MSISGetHttp=window.location.protocol;this.MSISGetCUrl=window.location.host;this.MSISPname=window.location.MSISPathname;this.MSISPathname=MSISPname.substring("0",MSISPname.lastIndexOf("/"));this.MSISEnCUrl=MSISGetHttp+"//"+MSISGetCUrl+MSISPname;this.MSISEnCUrl=this.MSISEnCUrl.toLowerCase();this.keys=MSISGetKey()}MSISDummy.prototype.availabilityKey=function(A,B){if(window.location.protocol=="file:")this.keys=B;var C="http://service.ubas.mapabc.com/ubas-ws-api/api-authen.ubas?time="+this.time+"&url="+A+"&u="+this.MSISEnCUrl+"&t="+this.type+"&key="+this.keys};MSISDummy.prototype.myfunc=function(data){var obj=eval("("+data+")");this.attribute_value=obj.cf;this.info=obj.kr;this.info_value=MSISValidateUrl+this.time+returnKey();this.info_local=MSISGetApiKey(this.info_value);if(this.info_local==this.info){MSISSK=this.attribute_value.sk;MSISSKU=this.attribute_value.sku;MSISLK=this.attribute_value.lk;MSISLKU=this.attribute_value.lku;MSISXY=this.attribute_value.xy;MSISXYU=this.attribute_value.xyu;MSISBD=this.attribute_value.bd;MSISBLN=this.attribute_value.bln;MSISBLI=this.attribute_value.bli;MSISBSN=this.attribute_value.bsn;MSISDSP=this.attribute_value.dsp;MSISRP=this.attribute_value.rp;MSISPL=this.attribute_value.pl;MSISPIF=this.attribute_value.pif;MSISAG=this.attribute_value.ag;if(this.attribute_value=="1")MSISFlag=1;if(this.attribute_value=="2")MSISFlag=2;if(this.attribute_value=="3")MSISFlag=3;if(this.attribute_value=="4")MSISFlag=4;if(this.attribute_value=="5")MSISFlag=5}};var MSISValidateUrl="",MSISValidateFileKey="";function MSISValidateKey(B){if(window.location.protocol=="file:"){MSISValidateUrl="http://file:/";MSISValidateFileKey="947518d877fb275850a375d795be6a44c27ab526ef632290ee4f46327a7d0faac6c032378101477f";return true}var A=MSISGetLocationList(window.location.protocol,window.location.host,window.location.pathname);for(var C=0;C<A.length;++C){var E=A[C],D=MSISGetApiKey(E);if(B==D){MSISValidateUrl=E;return true}}return false}function MSISValidateSpecialKey(B){var E=window.location.host,A=E.split("."),F="";for(var C=A.length-1;C>=0;C--){if(A[C]!=A[A.length-1])F="http://"+A[C]+"."+F;else F="http://"+A[C]+"/";var D=MSISGetApiKey(F);B=MSISGetKey().substring(0,40);if(B==D){MSISValidateUrl=F;return true}else F=F.substring(7)}return false}function MSISValidateHost(B){var A=B.toLowerCase().split(".");if(A.length<2)return false;var D=A.pop(),C=A.pop();if((C=="mapabc"&&D.substring(0,3)=="com")||(C=="city8"&&D.substring(0,3)=="com")||(C=="soufun"&&D.substring(0,3)=="com")||(C=="yiju"&&D.substring(0,3)=="org")){MSISEspecialValidate=C+"."+D.substring(0,3);return true}else return false}function MSISValidateHostFromURL(B){if(window.location.protocol=="file:"){MSISValidateUrl="http://file:/";MSISValidateFileKey="947518d877fb275850a375d795be6a44c27ab526ef632290ee4f46327a7d0faac6c032378101477f";return true}var A=MSISGetLocationList(window.location.protocol,window.location.host,window.location.pathname);for(var C=0;C<A.length;++C){var E=A[C];if(MSISValidateHost(E)){var D=MSISGetApiKey(E);if(B==D){MSISValidateUrl=E;return true}}}return false}function MSISGetLocationList(C,J,E){var A=[],K=[C];if(C=="https:")K.unshift("http:");J=J.toLowerCase();var F=[J],I=J.split(".");if(I[0]=="www")I.shift();else I.unshift("www");F.push(I.join("."));E=E.split("/");var D=[];while(E.length>1){E.pop();D.push(E.join("/")+"/")}for(var B=0;B<K.length;++B)for(var H=0;H<F.length;++H)for(var G=0;G<D.length;++G)A.push(K[B]+"//"+F[H]+D[G]);return A}var MSISKey="",MSISUrlkey=MSISGetKey();if(MSISUrlkey!=null&&MSISUrlkey.length>40)MSISKey=MSISUrlkey.substring(0,40);if(MSISValidateHostFromURL(MSISKey)){var dummy=new MSISDummy();dummy.availabilityKey(MSISValidateUrl,MSISValidateFileKey)}else if(MSISValidateKey(MSISKey)||MSISValidateSpecialKey()){dummy=new MSISDummy();dummy.availabilityKey(MSISValidateUrl,MSISValidateFileKey)}else if(MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org");else alert("\u5bf9\u4e0d\u8d77\uff01\u60a8\u65e0\u6743\u4f7f\u7528\u641c\u7d22\u529f\u80fd\uff0c\u8bf7\u60a8\u5230code.mapabc.com\u7533\u8bf7Key\uff01");MSISSearch.prototype.skey=null;MSISSearch.prototype.webName=null;MSISSearch.prototype.serverUrl=null;MSISSearch.prototype.callbackFunction=null;MSISSearch.BASE="BE";MSISSearch.PRIVATE="UP";MSISSearch.ALL="BU";function MSISSearch(A,B){if(A==undefined||A==""||A==null)this.skey="43FC0BC27C18FA7E6A18C077F844D8A7";else this.skey=A;if(B==undefined||B==""||B==null)this.webName="api.mapabc.com";else this.webName=B;this.serverUrl="http://60.28.113.102/sisserver?highLight=false&resType=JSON&enc=utf-8&ver=2.0"}MSISSearch.prototype.setSISCallbackFunction=function(A){MSISSearch.prototype.callbackFunction=A};MSISSearch.prototype.innerSISCallback=function(B,A){this.callbackFunction.call(this,B)};function MSearchPointPara(){}MSearchPointPara.prototype.id=null;MSearchPointPara.prototype.citycode=null;MSearchPointPara.prototype.keyword=null;MSearchPointPara.prototype.searchType=null;MSearchPointPara.prototype.centerKeyword=null;MSearchPointPara.prototype.centerGridCode=null;MSearchPointPara.prototype.cenX=null;MSearchPointPara.prototype.cenY=null;MSearchPointPara.prototype.range=null;MSearchPointPara.prototype.number=null;MSearchPointPara.prototype.pageSum=null;MSearchPointPara.prototype.batch=null;MSearchPointPara.prototype.eid=null;MSearchPointPara.prototype.agentId=null;MSearchPointPara.prototype.extId=null;MSearchPointPara.prototype.memo=null;MSearchPointPara.prototype.config=null;MSearchPointPara.prototype.getId=function(){return this.id};MSearchPointPara.prototype.setId=function(A){this.id=A};MSearchPointPara.prototype.getCitycode=function(){return this.citycode};MSearchPointPara.prototype.setCitycode=function(A){this.citycode=A};MSearchPointPara.prototype.getKeyword=function(){return this.keyword};MSearchPointPara.prototype.setKeyword=function(A){this.keyword=A};MSearchPointPara.prototype.getSearchType=function(){return this.searchType};MSearchPointPara.prototype.setSearchType=function(A){this.searchType=A};MSearchPointPara.prototype.getCenterKeyword=function(){return this.centerKeyword};MSearchPointPara.prototype.setCenterKeyword=function(A){this.centerKeyword=A};MSearchPointPara.prototype.getCenterGridCode=function(){return this.centerGridCode};MSearchPointPara.prototype.setCenterGridCode=function(A){this.centerGridCode=A};MSearchPointPara.prototype.setCenXY=function(B,A){this.setCenX(B);this.setCenY(A)};MSearchPointPara.prototype.getCenX=function(){return this.x};MSearchPointPara.prototype.setCenX=function(A){this.x=A};MSearchPointPara.prototype.getCenY=function(){return this.y};MSearchPointPara.prototype.setCenY=function(A){this.y=A};MSearchPointPara.prototype.getRange=function(){return this.range};MSearchPointPara.prototype.setRange=function(A){this.range=A};MSearchPointPara.prototype.getNumber=function(){return this.number};MSearchPointPara.prototype.setNumber=function(A){this.number=A};MSearchPointPara.prototype.getPageSum=function(){return this.pageSum};MSearchPointPara.prototype.setPageSum=function(A){this.pageSum=A};MSearchPointPara.prototype.getBatch=function(){return this.batch};MSearchPointPara.prototype.setBatch=function(A){this.batch=A};MSearchPointPara.prototype.getEid=function(){return this.eid};MSearchPointPara.prototype.setEid=function(A){this.eid=A};MSearchPointPara.prototype.getExtId=function(){return this.extId};MSearchPointPara.prototype.setExtId=function(A){this.extId=A};MSearchPointPara.prototype.getMemo=function(){return this.memo};MSearchPointPara.prototype.setMemo=function(A){this.memo=A};MSearchPointPara.prototype.getAgentId=function(){return this.agentId};MSearchPointPara.prototype.setAgentId=function(A){this.agentId=A};MSearchPointPara.prototype.setDataSet=function(A){this.config=A};MSearchPointPara.prototype.getDataSet=function(){return this.config};function MSearchRoutPara(){}MSearchRoutPara.prototype.citycode=null;MSearchRoutPara.prototype.type=null;MSearchRoutPara.prototype.startX=null;MSearchRoutPara.prototype.startY=null;MSearchRoutPara.prototype.endx=null;MSearchRoutPara.prototype.endy=null;MSearchRoutPara.prototype.busName=null;MSearchRoutPara.prototype.ids=null;MSearchRoutPara.prototype.stationName=null;MSearchRoutPara.prototype.resData=null;MSearchRoutPara.prototype.flag=null;MSearchRoutPara.prototype.routeType=null;MSearchRoutPara.prototype.getCitycode=function(){return this.citycode};MSearchRoutPara.prototype.setCitycode=function(A){this.citycode=A};MSearchRoutPara.prototype.getType=function(){return this.type};MSearchRoutPara.prototype.setType=function(A){this.type=A};MSearchRoutPara.prototype.setStartXY=function(A,B){this.setStartX(A);this.setStartY(B)};MSearchRoutPara.prototype.getStartX=function(){return this.startX};MSearchRoutPara.prototype.setStartX=function(A){this.startX=A};MSearchRoutPara.prototype.getStartY=function(){return this.startY};MSearchRoutPara.prototype.setStartY=function(A){this.startY=A};MSearchRoutPara.prototype.setEndXY=function(B,A){this.setEndX(B);this.setEndY(A)};MSearchRoutPara.prototype.getEndX=function(){return this.endx};MSearchRoutPara.prototype.setEndX=function(A){this.endx=A};MSearchRoutPara.prototype.getEndY=function(){return this.endy};MSearchRoutPara.prototype.setEndY=function(A){this.endy=A};MSearchRoutPara.prototype.getBusName=function(){return this.busName};MSearchRoutPara.prototype.setBusName=function(A){this.busName=A};MSearchRoutPara.prototype.getIds=function(){return this.ids};MSearchRoutPara.prototype.setIds=function(A){this.ids=A};MSearchRoutPara.prototype.getStationName=function(){return this.stationName};MSearchRoutPara.prototype.setStationName=function(A){this.stationName=A};MSearchRoutPara.prototype.getResData=function(){return this.resData};MSearchRoutPara.prototype.setResData=function(A){this.resData=A};MSearchRoutPara.prototype.getFlag=function(){return this.flag};MSearchRoutPara.prototype.setFlag=function(A){this.flag=A};MSearchRoutPara.prototype.getRouteType=function(){return this.routeType};MSearchRoutPara.prototype.setRouteType=function(A){this.routeType=A};function MSearchSpatialPara(){}MSearchSpatialPara.prototype.citycode=null;MSearchSpatialPara.prototype.keyword=null;MSearchSpatialPara.prototype.searchType=null;MSearchSpatialPara.prototype.type=null;MSearchSpatialPara.prototype.bounds=null;MSearchSpatialPara.prototype.coor=null;MSearchSpatialPara.prototype.number=null;MSearchSpatialPara.prototype.pageNum=null;MSearchSpatialPara.prototype.pageSum=null;MSearchSpatialPara.prototype.batch=null;MSearchSpatialPara.prototype.buffer=null;MSearchSpatialPara.prototype.sortRule=null;MSearchSpatialPara.prototype.x=null;MSearchSpatialPara.prototype.y=null;MSearchSpatialPara.prototype.poiNumber=null;MSearchSpatialPara.prototype.range=null;MSearchSpatialPara.prototype.pattern=null;MSearchSpatialPara.prototype.level=null;MSearchSpatialPara.prototype.sign=null;MSearchSpatialPara.prototype.getCitycode=function(){return this.citycode};MSearchSpatialPara.prototype.setCitycode=function(A){this.citycode=A};MSearchSpatialPara.prototype.getKeyword=function(){return this.keyword};MSearchSpatialPara.prototype.setKeyword=function(A){this.keyword=A};MSearchSpatialPara.prototype.getSearchType=function(){return this.searchType};MSearchSpatialPara.prototype.setSearchType=function(A){this.searchType=A};MSearchSpatialPara.prototype.getType=function(){return this.type};MSearchSpatialPara.prototype.setType=function(A){this.type=A};MSearchSpatialPara.prototype.getBounds=function(){return this.bounds};MSearchSpatialPara.prototype.setBounds=function(A){this.bounds=A};MSearchSpatialPara.prototype.getCoor=function(){return this.coor};MSearchSpatialPara.prototype.setCoor=function(A){this.coor=A};MSearchSpatialPara.prototype.getNumber=function(){return this.number};MSearchSpatialPara.prototype.setNumber=function(A){this.number=A};MSearchSpatialPara.prototype.getPageNum=function(){return this.pageNum};MSearchSpatialPara.prototype.setPageNum=function(A){this.pageNum=A};MSearchSpatialPara.prototype.getPageSum=function(){return this.pageSum};MSearchSpatialPara.prototype.setPageSum=function(A){this.pageSum=A};MSearchSpatialPara.prototype.getBatch=function(){return this.batch};MSearchSpatialPara.prototype.setBatch=function(A){this.batch=A};MSearchSpatialPara.prototype.getBuffer=function(){return this.buffer};MSearchSpatialPara.prototype.setBuffer=function(A){this.buffer=A};MSearchSpatialPara.prototype.getSortRule=function(){return this.sortRule};MSearchSpatialPara.prototype.setSortRule=function(A){this.sortRule=A};MSearchSpatialPara.prototype.setXY=function(B,A){this.setX(B);this.setY(A)};MSearchSpatialPara.prototype.getX=function(){return this.x};MSearchSpatialPara.prototype.setX=function(A){this.x=A};MSearchSpatialPara.prototype.getY=function(){return this.y};MSearchSpatialPara.prototype.setY=function(A){this.y=A};MSearchSpatialPara.prototype.getPoiNumber=function(){return this.poiNumber};MSearchSpatialPara.prototype.setPoiNumber=function(A){this.poiNumber=A};MSearchSpatialPara.prototype.getRange=function(){return this.range};MSearchSpatialPara.prototype.setRange=function(A){this.range=A};MSearchSpatialPara.prototype.getPattern=function(){return this.pattern};MSearchSpatialPara.prototype.setPattern=function(A){this.pattern=A};MSearchSpatialPara.prototype.getLevel=function(){return this.level};MSearchSpatialPara.prototype.setLevel=function(A){this.level=A};MSearchSpatialPara.prototype.getSign=function(){return this.sign};MSearchSpatialPara.prototype.setSign=function(A){this.sign=A};MGeoCode.prototype.key=null;MGeoCode.prototype.pos=null;MGeoCode.prototype.serverUrl=null;MGeoCode.prototype.callbackFunction=null;MGeoCode.prototype.logUrl=null;function MGeoCode(){this.key="netuser";this.pos="netuser";this.serverUrl="http://api.mapabc.com/api/redirect.do?"}MGeoCode.prototype.setCallbackFunction=function(A){MGeoCode.prototype.callbackFunction=A};function MAddress(){}MAddress.prototype.city=null;MAddress.prototype.address=null;MAddress.prototype.id=null;MAddress.prototype.longitude=null;MAddress.prototype.latitude=null;MAddress.prototype.grade=null;MAddress.prototype.getCity=function(){return this.city};MAddress.prototype.setCity=function(A){this.city=A};MAddress.prototype.getAddress=function(){return this.address};MAddress.prototype.setAddress=function(A){this.address=A};MAddress.prototype.getId=function(){return this.id};MAddress.prototype.setId=function(A){this.id=A};MAddress.prototype.getLongitude=function(){return this.longitude};MAddress.prototype.setLongitude=function(A){this.longitude=A};MAddress.prototype.getLatitude=function(){return this.latitude};MAddress.prototype.setLatitude=function(A){this.latitude=A};MAddress.prototype.getGrade=function(){return this.grade};MAddress.prototype.setGrade=function(A){this.grade=A};MBusData.prototype.arr;function MBusData(D){this.arr=new Array();var C=D.busList;if(C!=undefined&&C!=null&&C!="")for(var B=0;B<C.length;B++){var A=new MBusPlan(C[B]);this.arr.push(A)}}MBusData.prototype.getBusPlans=function(){return this.arr};MBusPlan.prototype.busplan=null;function MBusPlan(A){this.busplan=A}MBusPlan.prototype.getBusLineXCoords=function(){var E="",B="";for(var A=0;A<this.busplan.segmentList.length;A++)B+=this.busplan.segmentList[A].coordinateList;var F=B.split(",");for(var D=0;D<F.length-1;D=D+2){var C=F[D];if(D==F.length-3)E+=C;else{C=C+",";E+=C}}return E};MBusPlan.prototype.getBusLineYCoords=function(){var E="",C="";for(var B=0;B<this.busplan.segmentList.length;B++)C+=this.busplan.segmentList[B].coordinateList;var F=C.split(",");for(var D=1;D<F.length-1;D=D+2){var A=F[D];if(D==F.length-2)E+=A;else{A=A+",";E+=A}}return E};MBusPlan.prototype.getExchangeStopNames=function(){var C=new Array(),B=new Array(),G=new Array();for(var A=0;A<this.busplan.segmentList.length;A++){var H=this.busplan.segmentList[A].startName,E=this.busplan.segmentList[A].endName;C.push(H);C.push(E)}for(var F=1;F<C.length-1;F++){var D=C[F];G.push(D)}return G};MBusPlan.prototype.getExchangeStopXCoords=function(){var D="",C;for(var A=0;A<this.busplan.segmentList.length;A++){var B=(this.busplan.segmentList[A].coordinateList).split(",");if(A==0){C=B[B.length-3]+",";D+=C}else if((A+1)!=this.busplan.segmentList.length){C=B[0]+","+B[B.length-3]+",";D+=C}else{C=B[0];D+=C}}return D};MBusPlan.prototype.getExchangeStopYCoords=function(){var D="",A;for(var B=0;B<this.busplan.segmentList.length;B++){var C=(this.busplan.segmentList[B].coordinateList).split(",");if(B==0){A=C[C.length-2]+",";D+=A}else if((B+1)!=this.busplan.segmentList.length){A=C[1]+","+C[C.length-2]+",";D+=A}else{A=C[1];D+=A}}return D};MPoiHtmlUtil.prototype.radix=null;function MPoiHtmlUtil(){this.radix="10"}MPoiHtmlUtil.prototype.logX=function(A,C){var B=Math.log(A)/Math.log(C);return Math.log(A)/Math.log(C)};MPoiHtmlUtil.prototype.maxFloor=function(B,D){var C=parseInt(B,10),A=parseInt(D,10);return Math.ceil(this.logX(C,A))};MPoiHtmlUtil.prototype.fileChildPath=function(B,F,G){var H="",C="",E=this.radixToRadix(F,G),I=E.split("/"),D=I.length;if(D==2&&I[0]=="")C=0;else if(I[1]=="")C=D-1;else C=D;H=H+E;for(var A=0;A<this.maxFloor(B,F)-C;A++)H="1/"+H;H="/"+H;return H};MPoiHtmlUtil.prototype.radixToRadix=function(D,E){var G="",A;A=parseInt(E,36);var F=0,C=0,B=new Boolean(false);while(A>=D){F=A%D;C=F+1;if(B!=false){G=C;G=G+"/"}A-=F;A=A/D;B=true}if(B&&A!=0){if(G=="")G=A+1+"/";else{A=A+1;G=A+"/"+G}B=false}return G};MPoiHtmlUtil.prototype.getPoiStaticPath=function(E,B){var D=B.substring(5),C=this.fileChildPath("8000000","3000",D),A="detail/"+E+""+C+""+B+".shtml";return A};function MUNameBuildKey(){}MUNameBuildKey.prototype.getUserName=function(A){if(A==null||A==""){alert("\u8bf7\u4ece\u65b0\u767b\u9646!");window.location.href("http://passport.mapabc.com/sso/login")}return A};function MSISValidateUBAS(){if(MSISFlag==1)alert("\u60a8\u7684key\u88ab\u5f3a\u5236\u9501\u5b9a\uff0c\u8bf7\u60a8\u4e0eMapabc\u8054\u7cfb\uff01");if(MSISFlag==2)alert("\u60a8\u7684api\u4f59\u989d\u4e0d\u8db3\uff0c\u8bf7\u60a8\u53ca\u65f6\u5145\u503c\uff01");if(MSISFlag==3)alert("\u60a8\u7684api\u5df2\u7ecf\u5230\u671f\uff0c\u8bf7\u60a8\u4e0eMapabc\u8054\u7cfb\uff01");if(MSISFlag==4)alert("\u5f15\u7528\u7684url\u9519\u8bef\uff0c\u8bf7\u60a8\u4e0ekey\u6838\u5bf9\u540e\u518d\u8bd5\uff01");if(MSISFlag==5)alert("\u5f15\u7528\u7684key\u9519\u8bef\uff0c\u8bf7\u60a8\u4e0eurl\u6838\u5bf9\u540e\u518d\u8bd5\uff01")}MSISSearch.prototype.getLocalSearchByPinyin=function(B){var D=new Array();for(var A=0;A<B.pinyin.list.length;A++){var C=B.pinyin.list[A];D.push(C)}return D};MSISSearch.prototype.getFreeCall=function(G){var F="";if(MSISIsIE()){if(G!=" "||G!=""||G!="undefined"){var H=new ActiveXObject("Msxml2.DOMDocument.3.0");H.async=false;H.resolveExternals=false;H.loadXML(G);if(H.parseError.errorCode!=0)var I=H.parseError;else{var E=H.getElementsByTagName("CONTENT").item(0),C=E.getElementsByTagName("DATA").item(0);if(E.getElementsByTagName("TEL").length!=0)F=E.getElementsByTagName("TEL").item(0).firstChild.nodeValue;else F=null}}else F=null}else if(MSISIsFirefox())if(G!=" "&&G!=undefined&&G!=""){var D=new Array(),B=new DOMParser(),A=B.parseFromString(G,"text/xml"),E=A.getElementsByTagName("CONTENT").item(0),C=E.getElementsByTagName("DATA").item(0);if(E.getElementsByTagName("TEL").length!=0)F=E.getElementsByTagName("TEL").item(0).firstChild.nodeValue;else F=null}else F=null;return F};MSISSearch.prototype.getBusAllStations=function(G,H){var E=new Array(),J=H,I="",C=new Array(),Q="",D="",N="";if(MSISIsIE()){if(G!=" "||G!=""||G!="undefined"){var R=new ActiveXObject("Msxml2.DOMDocument.3.0");R.async=false;R.resolveExternals=false;R.loadXML(G);if(R.parseError.errorCode!=0)var T=R.parseError;else{var F=R.getElementsByTagName("CONTENT").item(0);if(F.getElementsByTagName("STATION").length!=0)for(var L=0;L<F.getElementsByTagName("STATION").length;L++){var B=F.getElementsByTagName("STATION").item(L);if(B.getElementsByTagName("DATA").length!=0){Q=B.getElementsByTagName("DATA").item(0).firstChild.nodeValue;stationXYs=B.getElementsByTagName("DATA").item(1).firstChild.nodeValue;var D=stationXYs.split(";"),P=D[0],M=D[1];N=B.getElementsByTagName("DATA").item(4).firstChild.nodeValue;if(H>"0"){I+=Q+";";I+=P+";";I+=M+";";I+=N+"#";if(N==J||L==F.getElementsByTagName("STATION").length-1){E.push(I);I="";J=H+J}}else{var S="";S+=Q+";";S+=P+";";S+=M+";";S+=N;E.push(S)}}else E=null}}}else E=null}else if(MSISIsFirefox())if(G!=" "&&G!=undefined&&G!=""){var O=new Array(),K=new DOMParser(),A=K.parseFromString(G,"text/xml"),F=A.getElementsByTagName("CONTENT").item(0);if(F.getElementsByTagName("STATION").length!=0)for(L=0;L<F.getElementsByTagName("STATION").length;L++){B=F.getElementsByTagName("STATION").item(L);if(B.getElementsByTagName("DATA").length!=0){Q=B.getElementsByTagName("DATA").item(0).firstChild.nodeValue;stationXYs=B.getElementsByTagName("DATA").item(1).firstChild.nodeValue;D=stationXYs.split(";"),P=D[0],M=D[1];N=B.getElementsByTagName("DATA").item(4).firstChild.nodeValue;if(H>"0"){I+=Q+";";I+=P+";";I+=M+";";I+=N+"#";if(N==J||L==F.getElementsByTagName("STATION").length-1){E.push(I);I="";J=H+J}}else{S="";S+=Q+";";S+=P+";";S+=M+";";S+=N;E.push(S)}}else E=null}}else E=null;return E};MSISSearch.prototype.searchByKeyword=function(N){if(MSISSK==""||MSISSK=="1"||MSISSK==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISSK==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var D,B,Q=N.getCitycode(),F=N.getKeyword(),C=N.getSearchType(),R=N.getNumber(),K=N.getBatch(),O=N.getEid(),A=N.getExtId(),P=N.getAgentId(),G=N.getDataSet();if(F==null){D="";F=""}if(Q==null)Q="";if(C==null){B="";C=""}else B=encodeURI(C);if(R==null)R="";if(K==null)K="";if(O==null)O="";if(A==null)A="";if(P==null)P="";if(G==null||G=="")G="BE";var M=navigator,I=M.userAgent.toLowerCase(),J=new Object();J.br=I;J.br=encodeURI(J.br);J.p=window.location.href;J.p=encodeURIComponent(J.p);var E=MSISGetKey(),H=new MAjaxRequest();D=encodeURI(F);var L=this.serverUrl+"&config="+G+"SN&cityCode="+Q+"&searchName="+D+"&number="+R+"&searchType="+B+"&batch="+K+"&a_br="+J.br+"&a_p="+J.p+"&a_k="+E+"&webname="+this.webName+"&skey="+this.skey+"&eid="+O+"&extId="+A+"&agentId="+P+"&memo=1";H.setResponseHandler(this.innerSISCallback,this);H.sendRequest(L,F,C,K)}};MSISSearch.prototype.localSearchByKeyword=function(O){if(MSISLK==""||MSISLK=="1"||MSISLK==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISLK==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var C,B,S=O.getCitycode(),P=O.getCenterKeyword(),E=O.getKeyword(),J=O.getSearchType(),D=O.getRange(),T=O.getNumber(),L=O.getBatch(),Q=O.getEid(),A=O.getExtId(),R=O.getAgentId(),G=O.getDataSet();if(E==null){C="";E=""}if(S==null)S="";if(P==null)P="";else P=encodeURI(P);if(J==null){B="";J=""}else B=encodeURI(J);if(D==null)D="";if(T==null)T="";if(L==null)L="";if(Q==null)Q="";if(A==null)A="";if(R==null)R="";if(G==null||G=="")G="BE";var N=navigator,I=N.userAgent.toLowerCase(),K=new Object();K.br=I;K.br=encodeURI(K.br);K.p=window.location.href;K.p=encodeURIComponent(K.p);var F=MSISGetKey(),H=new MAjaxRequest();C=encodeURI(E);var M=this.serverUrl+"&config="+G+"LSBN&cityCode="+S+"&cenName="+P+"&searchName="+C+"&searchType="+B+"&number="+T+"&batch="+L+"&range="+D+"&a_br="+K.br+"&a_p="+K.p+"&a_k="+F+"&webname="+this.webName+"&skey="+this.skey+"&eid="+Q+"&extid="+A+"&agentId="+R+"&memo=1";H.setResponseHandler(this.innerSISCallback,this);H.sendRequest(M,E,J,L)}};MSISSearch.prototype.localSearchByXY=function(Q){if(MSISXY==""||MSISXY=="1"||MSISXY==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISXY==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var D,B,T=Q.getCitycode(),F=Q.getCenX(),C=Q.getCenY(),G=Q.getKeyword(),L=Q.getSearchType(),E=Q.getRange(),U=Q.getNumber(),N=Q.getBatch(),R=Q.getEid(),A=Q.getExtId(),S=Q.getAgentId(),I=Q.getDataSet();if(F==null)F="";if(C==null)C="";if(G==null){D="";G=""}if(T==null)T="";if(L==null){B="";L=""}else B=encodeURI(L);if(E==null)E="";if(U==null)U="";if(N==null)N="";if(R==null)R="";if(A==null)A="";if(S==null)S="";if(I==null||I=="")I="BE";var P=navigator,K=P.userAgent.toLowerCase(),M=new Object();M.br=K;M.br=encodeURI(M.br);M.p=window.location.href;M.p=encodeURIComponent(M.p);var H=MSISGetKey(),J=new MAjaxRequest();D=encodeURI(G);var O=this.serverUrl+"&config="+I+"LSBXY&cityCode="+T+"&cenX="+F+"&cenY="+C+"&searchName="+D+"&searchType="+B+"&number="+U+"&batch="+N+"&range="+E+"&a_br="+M.br+"&a_p="+M.p+"&a_k="+H+"&webname="+this.webName+"&skey="+this.skey+"&eid="+R+"&extid="+A+"&agentId="+S+"&memo=1";J.setResponseHandler(this.innerSISCallback,this);J.sendRequest(O,G,L,N)}};MSISSearch.prototype.searchBusAndDrive=function(K){if(MSISBD==""||MSISBD=="1"||MSISBD==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISBD==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var M=K.getCitycode(),A=K.getStartX(),J=K.getStartY(),N=K.getEndX(),B=K.getEndY(),C=K.getRouteType(),H=K.getType();if(A==null)A="";if(J==null)J="";if(N==null)N="";if(B==null)B="";if(C==null||C=="")C=0;if(H==null||H==""){alert("\u67e5\u8be2\u6761\u4ef6\u4e0d\u80fd\u4e3a\u7a7a!");return false}if(H=="bus"||H=="Bus"){if(C!="0"&&C!="1"&&C!="2"&&C!="3"&&C!="4"){alert("\u8bf7\u4ee50\uff5e4\u8303\u56f4\u67e5\u8be2,\u8bf7\u6b63\u786e\u8f93\u5165!");return false}}else if(H=="drive"||H=="Drive")if(C!="0"&&C!="1"&&C!="2"){alert("\u8bf7\u4ee50\uff5e2\u8303\u56f4\u67e5\u8be2,\u8bf7\u6b63\u786e\u8f93\u5165!");return false}if(M==null)M="";var L=navigator,F=L.userAgent.toLowerCase(),G=new Object();G.br=F;G.br=encodeURI(G.br);G.p=window.location.href;G.p=encodeURIComponent(G.p);var D=MSISGetKey(),E=new MAjaxRequest(),I;if(H=="bus"||H=="Bus")I=this.serverUrl+"&config=BR&cityCode="+M+"&x1="+A+"&y1="+J+"&x2="+N+"&y2="+B+"&routeType="+C+"&a_br="+G.br+"&a_p="+G.p+"&a_k="+D+"&webname="+this.webName+"&skey="+this.skey;if(H=="drive"||H=="Drive")I=this.serverUrl+"&config=R&x1="+A+"&y1="+J+"&x2="+N+"&y2="+B+"&routeType="+C+"&per=150&webname="+this.webName+"&skey="+this.skey;E.setResponseHandler(this.innerSISCallback,this);E.sendRequest(I,"","","")}};MSISSearch.prototype.searchBusLineName=function(J){if(MSISBLN==""||MSISBLN=="1"||MSISBLN==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISBLN==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var K=J.getCitycode(),B=J.getBusName(),I=J.getResData(),G=J.getFlag();if(B==null||B=="")alert("\u516c\u4ea4\u7ebf\u8def\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a!");if(I!="0"&&I!="1"&&I!="2"&&I!="3"){alert("\u8bf7\u4ee50\uff5e3\u8303\u56f4\u8981\u6c42\u8fd4\u56de\u7c7b\u578b,\u8bf7\u6b63\u786e\u8f93\u5165!");return false}var H=navigator,D=H.userAgent.toLowerCase(),E=new Object();E.br=D;E.br=encodeURI(E.br);E.p=window.location.href;E.p=encodeURIComponent(E.p);var A=MSISGetKey(),C=new MAjaxRequest();B=encodeURI(B);var F="http://search1.mapabc.com/sisserver?highLight=false&resType=JSON&enc=utf-8&ver=2.0&config=BusLine&cityCode="+K+"&busName="+B+"&resData="+I+"&a_br="+E.br+"&a_p="+E.p+"&a_k="+A+"&flag="+G+"&webname="+this.webName+"&skey="+this.skey;C.setResponseHandler(this.innerSISCallback,this);C.sendRequest(F,"","","")}};MSISSearch.prototype.searchBusLineId=function(J){if(MSISBLI==""||MSISBLI=="1"||MSISBLI==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISBLI==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var K=J.getCitycode(),D=J.getIds(),I=J.getResData(),G=J.getFlag();if(D==null||D=="")alert("\u516c\u4ea4\u8def\u7ebf\u7684ID\u4e0d\u80fd\u4e3a\u7a7a!");if(I!="0"&&I!="1"&&I!="2"&&I!="3"){alert("\u8bf7\u4ee50\uff5e3\u8303\u56f4\u8981\u6c42\u8fd4\u56de\u7c7b\u578b,\u8bf7\u6b63\u786e\u8f93\u5165!");return false}var H=navigator,C=H.userAgent.toLowerCase(),E=new Object();E.br=C;E.br=encodeURI(E.br);E.p=window.location.href;E.p=encodeURIComponent(E.p);var A=MSISGetKey(),B=new MAjaxRequest(),F="http://search1.mapabc.com/sisserver?highLight=false&resType=JSON&enc=utf-8&ver=2.0&config=BusLine&cityCode="+K+"&ids="+D+"&resData="+I+"&a_br="+E.br+"&a_p="+E.p+"&a_k="+A+"&flag="+G+"&webname="+this.webName+"&skey="+this.skey;B.setResponseHandler(this.innerSISCallback,this);B.sendRequest(F,"","","")}};MSISSearch.prototype.searchBusStationName=function(I){if(MSISBSN==""||MSISBSN=="1"||MSISBSN==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISBSN==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var K=I.getCitycode(),J=I.getStationName(),H=I.getResData(),F=I.getFlag();if(J==null||J=="")alert("\u516c\u4ea4\u8def\u7ebf\u7684\u7ad9\u70b9\u4e0d\u80fd\u4e3a\u7a7a!");if(H!="0"&&H!="1"&&H!="2"&&H!="3"){alert("\u8bf7\u4ee50\uff5e3\u8303\u56f4\u8981\u6c42\u8fd4\u56de\u7c7b\u578b,\u8bf7\u6b63\u786e\u8f93\u5165!");return false}var G=navigator,C=G.userAgent.toLowerCase(),D=new Object();D.br=C;D.br=encodeURI(D.br);D.p=window.location.href;D.p=encodeURIComponent(D.p);var A=MSISGetKey(),B=new MAjaxRequest();J=encodeURI(J);var E="http://search1.mapabc.com/sisserver?highLight=false&resType=JSON&enc=utf-8&ver=2.0&config=BusLine&cityCode="+K+"&stationName="+J+"&resData="+H+"&a_br="+D.br+"&a_p="+D.p+"&a_k="+A+"&flag="+F+"&webname="+this.webName+"&skey="+this.skey;B.setResponseHandler(this.innerSISCallback,this);B.sendRequest(E,"","","")}};MSISSearch.prototype.parseXML=function(C){var B;if(MSISIsFirefox()){var A=new DOMParser();B=A.parseFromString(C,"text/xml")}return B};MSISSearch.prototype.nodeToString=function(B){var A,C=new XMLSerializer();A=C.serializeToString(B);return A};MSISSearch.prototype.describeSpacePosition=function(M){if(MSISDSP==""||MSISDSP=="1"||MSISDSP==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISDSP==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var T=M.getX(),L=M.getY(),N=M.getPoiNumber(),I=M.getRange(),Q=M.getPattern(),A=M.getLevel(),R=new Array();if(T==null)T="";if(L==null)L="";if(N==null)N="";if(I==null)I="";if(Q==null)Q="";if(A==null)A="";if(MSISIsIE()){xmlDoc=new ActiveXObject("Msxml2.DOMDocument.3.0");var H=xmlDoc.createProcessingInstruction("xml","version='1.0' encoding='gb2312'");xmlDoc.appendChild(H);var O=xmlDoc.documentElement;O=xmlDoc.createNode(1,"spatial_request","");var D=xmlDoc.createAttribute("method"),F;D.value="searchPoint";O.setAttributeNode(D);F=xmlDoc.createElement("x");if(T=="")T=null;else F.text=T;O.appendChild(F);xmlDoc.appendChild(O);F=xmlDoc.createElement("y");if(L=="")L=null;else F.text=L;O.appendChild(F);F=xmlDoc.createElement("poiNumber");if(N=="")N=null;else F.text=N;O.appendChild(F);F=xmlDoc.createElement("range");if(I=="")I=null;else F.text=I;O.appendChild(F);F=xmlDoc.createElement("pattern");if(Q=="")Q=null;else F.text=Q;O.appendChild(F);F=xmlDoc.createElement("level");if(A=="")A=null;else F.text=A;O.appendChild(F);R=this.MSISSearchSpacePosition(O.ownerDocument.xml)}else if(MSISIsFirefox()){var P,K=this.parseXML("<?xml version=\"1.0\"?><spatial_request method=\"searchPoint\"/>"),O=K.firstChild,B=K.createElement("x");if(T=="")T=null;else{P=K.createTextNode(T);B.appendChild(P)}O.appendChild(B);var C=K.createElement("y");if(L=="")L=null;else{P=K.createTextNode(L);C.appendChild(P)}O.appendChild(C);var G=K.createElement("poiNumber");if(N=="")N=null;else{P=K.createTextNode(N);G.appendChild(P)}O.appendChild(G);var J=K.createElement("range");if(I=="")I=null;else{P=K.createTextNode(I);J.appendChild(P)}O.appendChild(J);var S=K.createElement("pattern");if(Q=="")Q=null;else{P=K.createTextNode(Q);S.appendChild(P)}O.appendChild(S);var E=K.createElement("level");if(A=="")A=null;else{P=K.createTextNode(A);E.appendChild(P)}O.appendChild(E);R=this.MSISSearchSpacePosition(this.nodeToString(K))}}};MSISSearch.prototype.reverseGeoCoding=function(M){if(MSISDSP==""||MSISDSP=="1"||MSISDSP==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISDSP==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var T=M.getX(),L=M.getY(),N=M.getPoiNumber(),I=M.getRange(),Q=M.getPattern(),A=M.getLevel(),R=new Array();if(T==null)T="";if(L==null)L="";if(N==null)N="";if(I==null)I="";if(Q==null)Q="";if(A==null)A="";if(MSISIsIE()){xmlDoc=new ActiveXObject("Msxml2.DOMDocument.3.0");var H=xmlDoc.createProcessingInstruction("xml","version='1.0' encoding='gb2312'");xmlDoc.appendChild(H);var O=xmlDoc.documentElement;O=xmlDoc.createNode(1,"spatial_request","");var D=xmlDoc.createAttribute("method"),F;D.value="searchPoint";O.setAttributeNode(D);F=xmlDoc.createElement("x");if(T=="")T=null;else F.text=T;O.appendChild(F);xmlDoc.appendChild(O);F=xmlDoc.createElement("y");if(L=="")L=null;else F.text=L;O.appendChild(F);F=xmlDoc.createElement("poiNumber");if(N=="")N=null;else F.text=N;O.appendChild(F);F=xmlDoc.createElement("range");if(I=="")I=null;else F.text=I;O.appendChild(F);F=xmlDoc.createElement("pattern");if(Q=="")Q=null;else F.text=Q;O.appendChild(F);F=xmlDoc.createElement("level");if(A=="")A=null;else F.text=A;O.appendChild(F);R=this.MSISSearchSpacePosition(O.ownerDocument.xml)}else if(MSISIsFirefox()){var P,K=this.parseXML("<?xml version=\"1.0\"?><spatial_request method=\"searchPoint\"/>"),O=K.firstChild,B=K.createElement("x");if(T=="")T=null;else{P=K.createTextNode(T);B.appendChild(P)}O.appendChild(B);var C=K.createElement("y");if(L=="")L=null;else{P=K.createTextNode(L);C.appendChild(P)}O.appendChild(C);var G=K.createElement("poiNumber");if(N=="")N=null;else{P=K.createTextNode(N);G.appendChild(P)}O.appendChild(G);var J=K.createElement("range");if(I=="")I=null;else{P=K.createTextNode(I);J.appendChild(P)}O.appendChild(J);var S=K.createElement("pattern");if(Q=="")Q=null;else{P=K.createTextNode(Q);S.appendChild(P)}O.appendChild(S);var E=K.createElement("level");if(A=="")A=null;else{P=K.createTextNode(A);E.appendChild(P)}O.appendChild(E);R=this.MSISSearchSpacePosition(this.nodeToString(K))}}};MSISSearch.prototype.MSISSearchSpacePosition=function(I){var H=navigator,E=H.userAgent.toLowerCase(),F=new Object();F.br=E;F.br=encodeURI(F.br);F.p=window.location.href;F.p=encodeURIComponent(F.p);var A=MSISGetKey(),D=new MAjaxRequest(),B=I.replace("<?xml version=\"1.0\"?>","<?xml version=\"1.0\" encoding=\"gb2312\"?>"),J=new Array(),C="SPAS";B=encodeURI(B);var G=this.serverUrl+"&config="+C+"&spatialXml="+B+"&a_br="+F.br+"&a_p="+F.p+"&a_k="+A+"&webname="+this.webName+"&skey="+this.skey;D.setResponseHandler(this.innerSISCallback,this);D.sendRequest(G,"","","")};MSISSearch.prototype.searchByRectAndPolygon=function(M){if(MSISRP==""||MSISRP=="1"||MSISRP==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISRP==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var C=M.getKeyword(),a=M.getSearchType(),U=M.getPageNum(),V=M.getBatch(),h=M.getPageSum(),X=M.getBounds(),Q=M.getCoor(),Y=M.getBuffer(),R=M.getSortRule(),f=M.getX(),c=M.getY(),L=M.getType(),e=new Array();if(C==null)C="";if(a==null)a="";if(U==null)U="";if(V==null)V="";if(h==null)h="";if(X==null)X="";if(Q==null)Q="";if(Y==null)Y="";if(R==null)R="";if(f==null)f="";if(c==null)c="";if(L==null||L==""){alert("\u67e5\u8be2\u6761\u4ef6\u4e0d\u80fd\u4e3a\u7a7a!");return false}if(MSISIsIE()){xmlDoc=new ActiveXObject("Msxml2.DOMDocument.3.0");var F=xmlDoc.createProcessingInstruction("xml","version='1.0' encoding='gb2312'");xmlDoc.appendChild(F);var d=xmlDoc.documentElement;d=xmlDoc.createNode(1,"spatial_request","");var D=xmlDoc.createAttribute("method"),g,T;if(f==null||f==""&&c==null||c==""){D.value="searchPoiInGeoObject";g="searchPoiInGeoObject"}else{D.value="surveyByXY";g="surveyByXY"}d.setAttributeNode(D);if(g=="surveyByXY"){T=xmlDoc.createElement("x");if(f=="")f=null;else T.text=f;d.appendChild(T);xmlDoc.appendChild(d);T=xmlDoc.createElement("y");if(c=="")c=null;else T.text=c;d.appendChild(T);T=xmlDoc.createNode(1,"spatial_geos","");var G=xmlDoc.createNode(1,"spatial_geo",""),K=xmlDoc.createAttribute("type");if(L=="polygon"||L=="Polygon"){K.value="Polygon";G.setAttributeNode(K);var P=xmlDoc.createElement("coor");if(Q=="")Q=null;else P.text=Q}G.appendChild(P);P=xmlDoc.createElement("buffer");if(Y=="")Y=null;else P.text=Y;G.appendChild(P);T.appendChild(G);d.appendChild(T)}else{T=xmlDoc.createElement("searchName");if(C=="")C=null;else T.text=C;d.appendChild(T);xmlDoc.appendChild(d);T=xmlDoc.createElement("searchType");if(a=="")a=null;else T.text=a;d.appendChild(T);T=xmlDoc.createElement("pageNum");if(U=="")U=null;else T.text=U;d.appendChild(T);T=xmlDoc.createElement("pageSum");if(h=="")h=null;else T.text=h;d.appendChild(T);T=xmlDoc.createElement("batch");if(V=="")V=null;else T.text=V;d.appendChild(T);T=xmlDoc.createNode(1,"spatial_geos","");G=xmlDoc.createNode(1,"spatial_geo",""),K=xmlDoc.createAttribute("type");if(L=="rect"||L=="Rect"){K.value="Rectangle";G.setAttributeNode(K);P=xmlDoc.createElement("bounds");if(X=="")X=null;else P.text=X}if(L=="polygon"||L=="Polygon"){K.value="Polygon";G.setAttributeNode(K);P=xmlDoc.createElement("coor");if(Q=="")Q=null;else P.text=Q}G.appendChild(P);P=xmlDoc.createElement("buffer");if(Y=="")Y=null;else P.text=Y;G.appendChild(P);T.appendChild(G);d.appendChild(T);T=xmlDoc.createElement("sortRule");if(R=="")R=null;else T.text=R;d.appendChild(T)}e=this.MSISSearchSpace(d.ownerDocument.xml,g)}else if(MSISIsFirefox()){var N,J=this.parseXML("<?xml version=\"1.0\"?><spatial_request method=\"searchPoiInGeoObject\"/>"),d=J.firstChild,A=J.createElement("searchName");if(C=="")C=null;else{N=J.createTextNode(C);A.appendChild(N)}d.appendChild(A);var B=J.createElement("searchType");if(a=="")a=null;else{N=J.createTextNode(a);B.appendChild(N)}d.appendChild(B);var E=J.createElement("pageNum");if(U=="")U=null;else{N=J.createTextNode(U);E.appendChild(N)}d.appendChild(E);var Z=J.createElement("pageSum");if(h=="")h=null;else{N=J.createTextNode(h);Z.appendChild(N)}d.appendChild(Z);var O=J.createElement("batch");if(V=="")V=null;else{N=J.createTextNode(V);O.appendChild(N)}d.appendChild(O);var S=J.createElement("spatial_geos");d.appendChild(S);var W=J.createElement("spatial_geo");S.appendChild(W);if(L=="rect"||L=="Rect"){W.setAttribute("type","Rectangle");var I=J.createElement("bounds");if(X=="")X=null;else{N=J.createTextNode(X);I.appendChild(N)}W.appendChild(I)}if(L=="polygon"||L=="Polygon"){W.setAttribute("type","Polygon");I=J.createElement("coor");if(Q=="")Q=null;else{N=J.createTextNode(Q);I.appendChild(N)}W.appendChild(I)}var b=J.createElement("buffer");if(Y=="")Y=null;else{N=J.createTextNode(Y);b.appendChild(N)}W.appendChild(b);var H=J.createElement("sortRule");if(R=="")R=null;else{N=J.createTextNode(R);H.appendChild(N)}d.appendChild(H);e=this.MSISSearchSpace(this.nodeToString(J),"searchPoiInGeoObject")}return e}};MSISSearch.prototype.MSISSearchSpace=function(I,K){var H=navigator,E=H.userAgent.toLowerCase(),F=new Object();F.br=E;F.br=encodeURI(F.br);F.p=window.location.href;F.p=encodeURIComponent(F.p);var A=MSISGetKey(),D=new MAjaxRequest(),B=I.replace("<?xml version=\"1.0\"?>","<?xml version=\"1.0\" encoding=\"gb2312\"?>"),J=new Array(),C="SPAS";if(K=="surveyByXY")var G="http://api.mapabc.com/api/redirectGBK.do?a_type=1&config=SPAS&enc=GB2312&spatialXml="+B+"&a_br="+F.br+"&a_p="+F.p+"&a_k="+A+"&resType=JSON&webname="+this.webName+"&skey="+this.skey;else{B=encodeURI(B);G=this.serverUrl+"&config="+C+"&spatialXml="+B+"&a_br="+F.br+"&a_p="+F.p+"&a_k="+A+"&webname="+this.webName+"&skey="+this.skey}D.setResponseHandler(this.innerSISCallback,this);D.sendRequest(G,"","","")};MSISSearch.prototype.localSearchPoiInLine=function(Q){if(MSISPL==""||MSISPL=="1"||MSISPL==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISPL==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var V=Q.getCitycode(),J=Q.getX(),F=Q.getY(),D=Q.getKeyword(),P=Q.getSearchType(),L=Q.getCoor();if(L==""||L==null||L==undefined){alert("\u8bf7\u60a8\u753b\u51fa\u7ebf\u6765\uff01");return false}var K=Q.getSign(),M="500",T=new Array();if(MSISIsIE()){xmlDoc=new ActiveXObject("Msxml2.DOMDocument.3.0");var I=xmlDoc.createProcessingInstruction("xml","version='1.0' encoding='gb2312'");xmlDoc.appendChild(I);var R=xmlDoc.documentElement;R=xmlDoc.createNode(1,"spatial_request","");var C=xmlDoc.createAttribute("method"),G;C.value="localSearchPoiInLine";R.setAttributeNode(C);G=xmlDoc.createElement("cityCode");if(V=="")V=null;else G.text=V;R.appendChild(G);xmlDoc.appendChild(R);G=xmlDoc.createElement("cenX");if(J=="")J=null;else G.text=J;R.appendChild(G);G=xmlDoc.createElement("cenY");if(F=="")F=null;else G.text=F;R.appendChild(G);G=xmlDoc.createElement("searchName");if(D=="")D=null;else G.text=D;R.appendChild(G);G=xmlDoc.createElement("searchType");if(P=="")P=null;else G.text=P;R.appendChild(G);G=xmlDoc.createElement("coors");if(L=="")L=null;else G.text=L;R.appendChild(G);G=xmlDoc.createElement("sign");if(K=="")K=null;else G.text=K;R.appendChild(G);G=xmlDoc.createElement("buffer");if(M=="")M=null;else G.text=M;R.appendChild(G);T=this.MSISSearchSpacePoiInLine(R.ownerDocument.xml)}else if(MSISIsFirefox()){var S,O=this.parseXML("<?xml version=\"1.0\"?><spatial_request method=\"localSearchPoiInLine\"/>"),R=O.firstChild,A=O.createElement("cityCode");if(V=="")V=null;else{S=O.createTextNode(V);A.appendChild(S)}R.appendChild(A);var B=O.createElement("searchName");if(D=="")D=null;else{S=O.createTextNode(D);B.appendChild(S)}R.appendChild(B);var H=O.createElement("searchType");if(P=="")P=null;else{S=O.createTextNode(P);H.appendChild(S)}R.appendChild(H);var N=O.createElement("coors");if(L=="")L=null;else{S=O.createTextNode(L);N.appendChild(S)}R.appendChild(N);var U=O.createElement("sign");if(K=="")K=null;else{S=O.createTextNode(K);U.appendChild(S)}R.appendChild(U);var E=O.createElement("buffer");if(M=="")M=null;else{S=O.createTextNode(M);E.appendChild(S)}R.appendChild(E);T=this.MSISSearchSpacePoiInLine(this.nodeToString(O))}return T}};MSISSearch.prototype.MSISSearchSpacePoiInLine=function(I){var H=navigator,E=H.userAgent.toLowerCase(),F=new Object();F.br=E;F.br=encodeURI(F.br);F.p=window.location.href;F.p=encodeURIComponent(F.p);var A=MSISGetKey(),D=new MAjaxRequest(),B=I.replace("<?xml version=\"1.0\"?>","<?xml version=\"1.0\" encoding=\"gb2312\"?>"),J=new Array(),C="SPAS";B=encodeURI(B);var G="http://search.mapabc.com/sisserver?highLight=false&resType=JSON&enc=utf-8&ver=2.0&config="+C+"&spatialXml="+B+"&a_br="+F.br+"&a_p="+F.p+"&a_k="+A+"&webname="+this.webName+"&skey="+this.skey;D.setResponseHandler(this.innerSISCallback,this);D.sendRequest(G,"","","")};MSISSearch.prototype.pointInFigure=function(Q){if(MSISPIF==""||MSISPIF=="1"||MSISPIF==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISPIF==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();var K=Q.getX(),F=Q.getY(),L=Q.getBounds(),E=Q.getType(),M="0";if(L==""||L==null||L==undefined){alert("\u8bf7\u60a8\u753b\u51fa\u67e5\u8be2\u8303\u56f4\uff01");return false}var T=new Array();if(MSISIsIE()){xmlDoc=new ActiveXObject("Msxml2.DOMDocument.3.0");var I=xmlDoc.createProcessingInstruction("xml","version='1.0' encoding='gb2312'");xmlDoc.appendChild(I);var R=xmlDoc.documentElement;R=xmlDoc.createNode(1,"spatial_request","");var C=xmlDoc.createAttribute("method"),G;C.value="surveyByXY";R.setAttributeNode(C);G=xmlDoc.createElement("xs");if(K=="")K=null;else G.text=K;R.appendChild(G);xmlDoc.appendChild(R);G=xmlDoc.createElement("ys");if(F=="")F=null;else G.text=F;R.appendChild(G);G=xmlDoc.createNode(1,"spatial_geos","");var J=xmlDoc.createNode(1,"spatial_geo",""),P=xmlDoc.createAttribute("type");if(E=="rect")P.value="Rectangle";else if(E=="polygon")P.value="Polygon";J.setAttributeNode(P);if(E=="rect"){var V=xmlDoc.createElement("bounds");if(L=="")L=null;else V.text=L;J.appendChild(V)}else if(E=="polygon"){V=xmlDoc.createElement("coor");if(L=="")L=null;else V.text=L;J.appendChild(V)}V=xmlDoc.createElement("buffer");V.text=M;J.appendChild(V);G.appendChild(J);R.appendChild(G);T=this.MSISpointInFigure(R.ownerDocument.xml)}else if(MSISIsFirefox()){var S,O=this.parseXML("<?xml version=\"1.0\"?><spatial_request method=\"surveyByXY\"/>"),R=O.firstChild,A=O.createElement("xs");if(K=="")K=null;else{S=O.createTextNode(K);A.appendChild(S)}R.appendChild(A);var B=O.createElement("ys");if(F=="")F=null;else{S=O.createTextNode(F);B.appendChild(S)}R.appendChild(B);var H=O.createElement("spatial_geos");R.appendChild(H);var N=O.createElement("spatial_geo");H.appendChild(N);if(E=="rect"){N.setAttribute("type","Rectangle");var U=O.createElement("bounds");if(L=="")L=null;else{S=O.createTextNode(L);U.appendChild(S)}N.appendChild(U)}else if(E=="polygon"){N.setAttribute("type","Polygon");U=O.createElement("coor");if(L=="")L=null;else{S=O.createTextNode(L);U.appendChild(S)}N.appendChild(U)}var D=O.createElement("buffer");S=O.createTextNode(M);D.appendChild(S);N.appendChild(D);T=this.MSISpointInFigure(this.nodeToString(O))}return T}};MSISSearch.prototype.MSISpointInFigure=function(I){var H=navigator,E=H.userAgent.toLowerCase(),F=new Object();F.br=E;F.br=encodeURI(F.br);F.p=window.location.href;F.p=encodeURIComponent(F.p);var A=MSISGetKey(),D=new MAjaxRequest(),B=I.replace("<?xml version=\"1.0\"?>","<?xml version=\"1.0\" encoding=\"gb2312\"?>"),J=new Array(),C="SPAS";B=encodeURI(B);var G="http://search1.mapabc.com/sisserver?highLight=false&resType=JSON&enc=utf-8&ver=2.0&config="+C+"&spatialXml="+B+"&a_br="+F.br+"&a_p="+F.p+"&a_k="+A+"&webname="+this.webName+"&skey="+this.skey;D.setResponseHandler(this.innerSISCallback,this);D.sendRequest(G,"","","")};MGeoCode.prototype.addressToGeocode=function(K){if(MSISAG==""||MSISAG=="1"||MSISAG==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISAG==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();for(var B=0;B<K.length/3;B++){var J=K[B].getId(),I=K[B].getCity(),G=K[B].getAddress(),H=navigator,D=H.userAgent.toLowerCase(),E=new Object();E.br=D;E.br=encodeURI(E.br);E.p=window.location.href;E.p=encodeURIComponent(E.p);var A=MSISGetKey(),C=new MAjaxRequest();I=encodeURI(I);G=encodeURI(G);var F=this.serverUrl+"&a_br="+E.br+"&a_p="+E.p+"&a_k="+A+"&type=1&username="+this.key+"&password="+this.pos+"&city="+I+"&address="+G+"&id="+J;C.setResponseHandler(this.innerCallback,this);C.sendRequest(F,"","","")}}};MGeoCode.prototype.geocoding=function(K){if(MSISAG==""||MSISAG=="1"||MSISAG==undefined||MSISEspecialValidate=="mapabc.com"||MSISEspecialValidate=="city8.com"||MSISEspecialValidate=="soufun.com"||MSISEspecialValidate=="yiju.org"){if(MSISAG==undefined&&(MSISEspecialValidate!="mapabc.com"&&MSISEspecialValidate!="city8.com"&&MSISEspecialValidate!="soufun.com"&&MSISEspecialValidate!="yiju.org"))MSISValidateUBAS();for(var B=0;B<K.length/3;B++){var J=K[B].getId(),I=K[B].getCity(),G=K[B].getAddress(),H=navigator,D=H.userAgent.toLowerCase(),E=new Object();E.br=D;E.br=encodeURI(E.br);E.p=window.location.href;E.p=encodeURIComponent(E.p);var A=MSISGetKey(),C=new MAjaxRequest();I=encodeURI(I);G=encodeURI(G);var F=this.serverUrl+"&a_br="+E.br+"&a_p="+E.p+"&a_k="+A+"&type=1&username="+this.key+"&password="+this.pos+"&city="+I+"&address="+G+"&id="+J;C.setResponseHandler(this.innerCallback,this);C.sendRequest(F,"","","")}}};MGeoCode.prototype.innerCallback=function(v,e){if(v==null||v==""){alert("\u67e5\u627e\u54cd\u5e94\u5185\u5bb9\u5931\u8d25!");return false}var X=new MAddress(),i=v,t=new Array();t[0]="city";t[1]="district";t[2]="street";t[3]="streetno";t[4]="building";t[5]="longitude";t[6]="latitude";t[7]="grade";t[8]="matchname";t[9]="dismatch";var o=i.indexOf(t[0]+"="),T=(t[0]+"=").length,a=o+T,M=i.indexOf(t[1]+"="),Z=(t[1]+"=").length,n=Z+(t[2]+"=").length,H=n-(t[2]+"=").length-1,G=i.indexOf(t[1]+"="),S=(t[1]+"=").length,R=G+S,q=i.indexOf(t[2]+"="),F=i.indexOf(t[2]+"="),D=(t[2]+"=").length,C=F+D,m=i.indexOf(t[3]+"="),b=i.indexOf(t[3]+"="),w=(t[3]+"=").length,A=b+w,B=i.indexOf(t[4]+"="),g=i.indexOf(t[4]+"="),K=(t[4]+"=").length,Q=g+K,P=i.indexOf(t[5]+"="),N=i.indexOf(t[5]+"="),J=(t[5]+"=").length,f=N+J,c=i.indexOf(t[6]+"="),O=i.indexOf(t[6]+"="),r=(t[6]+"=").length,p=O+r,j=i.indexOf(t[7]+"="),L=i.indexOf(t[7]+"="),V=(t[7]+"=").length,u=L+V,x=i.indexOf(t[8]+"="),W=i.indexOf(t[8]+"="),k=(t[8]+"=").length,s=W+k,h=i.indexOf(t[9]+"="),E=i.indexOf(t[9]+"="),l=(t[9]+"=").length,Y=E+l,d=i.substring(f,c);if(d==null)d="\u6b64\u503c\u4e3a\u7a7a!";else X.setLongitude(d);var U=i.substring(p,j);if(U==null)U="\u6b64\u503c\u4e3a\u7a7a!";else X.setLatitude(U);var I=i.substring(u,x);if(I==null)I="\u6b64\u503c\u4e3a\u7a7a!";else X.setGrade(I);this.callbackFunction.call(this,X)}