function bookmark(pid,uid){
	if(uid!=0){
		xmlhttpPost('includes/tweetmyplace/ajax.php',10,pid,uid);
	}else{
		alert('Please login.');
    } 
	return false;
}

function checkavail(pid,uid,bed){ 
	if(uid!=0){
		var url = "check_availability.php?userId="+uid+"&propertyId="+pid+"&bed="+bed;
		dhtmlmodal.open("agreebox","iframe", url, "Place Wanted", "width=560px,height=350px,center=1,resize=1,scrolling=0", "recal");
		//abuse(e,pid,param,uid,bed);
	}else{ 
		alert('Please login.');
	}
	return false;
		
}

function viewmore(uid,pid){ 
	if(uid!=0){
		xmlhttpPost('includes/tweetmyplace/ajax.php',11,pid,uid);
		return true;
	}else{
		//alert('Please login to view more about property.');return false;
		xmlhttpPost('includes/tweetmyplace/ajax.php',11,pid,0);
		return true;
		
	}
	
		
}

function referemail(uid,pid){ 
		var url = "refer_email.php?userId="+uid+"&propertyId="+pid;

		dhtmlmodal.open("agreebox","iframe", url, "Send to friend", "width=560px,height=350px,center=1,resize=1,scrolling=0,top=1", "recal")

		
}

			
