function DropAlert(alert_id)
{
	conf=confirm("You are going to delete the property alert. Do you want to proceed?");
	if(conf)
	{
		document.forms['drop_form'].elements['alert_id'].value=alert_id;
		document.forms['drop_form'].submit();
	}
}

function DropShortList(property_id)
{
	conf=confirm("You are going to delete the property from your short list. Do you want to proceed?");
	if(conf)
	{
		document.forms['drop_form'].elements['property_id'].value=property_id;
		document.forms['drop_form'].submit();
	}
}

function AddToShortList(property_id)
{
	document.getElementById('adding_property').style.display='block';
	var ajax = null;	
	try{
		ajax = new ActiveXObject("Microsoft.XMLHTTP");
	   }catch(expeption){
		ajax = new XMLHttpRequest();
	   }
	  ajax.onreadystatechange=function() 
	 {
		 if (ajax.readyState==4) 
		 {
			 document.getElementById('adding_property').style.display='none';
		 }
	 }
	 ajax.open("POST","/ajax_handler.php",true);	
	 ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	 ajax.send("action=add_property&property_id="+property_id);	
}