//validate email id
function getPropertyType( id ){
	xmlHttpProperty = GetXmlHttpObjectProp();
	
	if(xmlHttpProperty == null) { 
		alert("Browser does not support HTTP Request");
		return;
	}
	
	var url = "index.php?page=getPropertyType"
	url = url+"&id="+id
	xmlHttpProperty.onreadystatechange = stateChangedProp
	xmlHttpProperty.open("get",url,true)
	xmlHttpProperty.send(null)	
}

// Checking browser compatabile
function GetXmlHttpObjectProp()
{ 
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp = new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}

// State Changed 
function stateChangedProp() 
{ 
	if (xmlHttpProperty.readyState == 4 || xmlHttpProperty.readyState == "complete")
	{ 
		document.getElementById("propertyType").innerHTML = xmlHttpProperty.responseText
	}
	else{
		document.getElementById("propertyType").innerHTML = "Loading.....";
	} 
}
