if (!jse) var jse={};

var _hostName=document.location.hostname;
_hostName=(_hostName.indexOf("ppfilm")!=-1)?"find.ppfilm.cn":"find.pipi.cn";

jse.rcpProxy={
	_rpcDiv:null,
	_init:function(_proxyId,_url) {
		if (jse.rcpProxy._rpcDiv==null) {
			jse.rcpProxy._rpcDiv=document.createElement("div");
			jse.rcpProxy._rpcDiv.innerHTML="<iframe src='"+_url+"' frameborder='0' width='0' height='0' id='"
												+_proxyId+"' name='"+_proxyId+"'></iframe>";
			document.body.appendChild(jse.rcpProxy._rpcDiv);
		}
	}
}
jse.rcpProxy._init("autocomplete","http://"+_hostName+"/proxy.html");
Ajax.getTransport=function() {
  	with (window.frames["autocomplete"]) {
	    return Try.these(
	      function() {return new ActiveXObject('Msxml2.XMLHTTP')},
	      function() {return new ActiveXObject('Microsoft.XMLHTTP')},
	      function() {return new XMLHttpRequest()}
	    ) || false;
    }
}