function sendResumePreview(id){	
	window.location = "post_send_view.php?post_id=" + id;
}

function sendResume(id){
	var url = "post_send_resume.php?t=" + (new Date).getTime() + "&post_id=" + id + "&message=" + encodeURI(document.getElementById('f_message').value);
	creatXMLHttpRequest();
	xmlHttp.open("GET",url,"true");
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4 && xmlHttp.status == 200){
			alert(xmlHttp.responseText);
			window.location = "post_view_" + id + ".html";
		}
	}
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	xmlHttp.send(null);	
}

function addFavo(id){
	var url = "post_favorite.php?t=" + (new Date).getTime() + "&post_id=" + id;
	creatXMLHttpRequest();
	xmlHttp.open("GET",url,"true");
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4 && xmlHttp.status == 200){
			alert(xmlHttp.responseText);
		}
	}
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	xmlHttp.send(null);
}