var xmlhttp=false;
function initGet(){
if(!xmlhttp){
xmlhttp=Ajax.getTransport();
return xmlhttp;
}
if(typeof ActiveXObject=="object"){
try{
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(E){
xmlhttp=false;
}
}
}
if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){
try{
xmlhttp=new XMLHttpRequest();
}
catch(e){
xmlhttp=false;
}
}
if(!xmlhttp&&window.createRequest){
try{
xmlhttp=window.createRequest();
}
catch(e){
xmlhttp=false;
}
}
}
function send(i,_2){
initGet();
var t="";
var _4=document.getElementById("locatinedit");
var _5=null;
if(_2){
_5=document.getElementById("map_message");
}else{
_5=document.getElementById("message");
}
_5.innerHTML="";
_5.innerHTML="<div id=\"confirm\">Searching for address...</div>";
xmlhttp.open("GET",loc_url+"location="+i,true);
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4){
var _6=document.getElementById("locatinedit");
t=xmlhttp.responseXML;
var _7=getElementTextNS("","data",t,0);
_5.innerHTML="";
_5.innerHTML=_7;
}
};
xmlhttp.send(null);
}
function getElementTextNS(_8,_9,_a,_b){
var _c="";
if(_8&&isIE){
_c=_a.getElementsByTagName(_8+":"+_9)[_b];
}else{
_c=_a.getElementsByTagName(_9)[_b];
}
if(_c){
if(_c.childNodes.length>1){
return _c.childNodes[1].nodeValue;
}else{
return _c.firstChild.nodeValue;
}
}else{
return "n/a";
}
}

