function xmlsendRequest(url){

	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(); 

	xmlhttp.open("GET", url, false); 

	if(document.all)
		xmlhttp.send();
	else
		xmlhttp.send(null);

	return xmlhttp.responseText;
}

function error(obj, msg)
{
	alert(msg);
	obj.focus();
	return false;
}

function getlocality(selloc, msg) {

	var obj=document.getElementById("prop_zone");
	obj.innerHTML="";
	var txt = xmlsendRequest("get_locality_list.php?id=" + document.propsearch.pcity.value + "&selloc=" + selloc);
	if(txt != "")
		txt=txt+msg;
	obj.innerHTML=txt;
}