xmlHttpObj=function(){ // xmlHttpObject̐
	var a=null;
	try{ a=new ActiveXObject("Msxml2.XMLHTTP")}
		catch(c) {
		try{ a=new ActiveXObject("Microsoft.XMLHTTP")}
		catch(b){ a=null }
	}
  if(!a&&typeof XMLHttpRequest!="undefined"){
    a=new XMLHttpRequest();
  }
  return a;
}

getAddr=function(a){
  var x=new xmlHttpObj();
  if(typeof(a)=='undefined') return;
  x.onreadystatechange=function(){
    if (x.readyState == 4 && x.status == 200) {
      var doc=x.responseXML;
      if(doc.documentElement){
        var pref = doc.getElementsByTagName('pref').item(0).firstChild;
        var area = doc.getElementsByTagName('area').item(0).firstChild;
        if (pref != null) document.getElementById('pref').value = pref.data;
        if (area != null) document.getElementById('area').value = area.data;
      } else {
        document.getElementById('pref').value = '';
        document.getElementById('area').value = '';
     }
    }
  }
  x.open('GET',a,true);
  x.send(null);
}
