// main function
function SaveProperty(property_id, customer_id) {
	var xmlHttp; 
	try {
// Firefox, Opera 8.0+, Safari
	xmlHttp=new XMLHttpRequest();
	} 
	catch (e) {
// Internet Explorer
		try {
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		} 
		catch (e) {
			try {
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch (e) {
				//alert("Your browser does not support AJAX!");
				return false;
			}
		}
	} 
	xmlHttp.onreadystatechange=function() { 
		if(xmlHttp.readyState==4) { 
			var result = xmlHttp.responseText.split("||");
			if (result[0] == "ok"){
// all is ok; use the data
				alert("Property saved to your My Romans account");
			}
			else {
// some error - display required message to alert user
        alert(result[0]);
				alert("There was an unknown problem and your property was not saved.");
			}	 
		} 
	} 
	xmlHttp.open("GET","/ajax/saveProperty.asp?property_id="+property_id+"&customer_id="+customer_id,true); 
	xmlHttp.send(null);
}


