function addfavorityvideo(id)
{
  var xmlhttp;
	
	try {
		    xmlhttp = new XMLHttpRequest();
	} catch (e){
		           try {
			               xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		               } catch (e) {
			                           try {
				                               xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			                                } catch (e){
				                                           // Something went wrong
				                                           alert("Your browser broke!");
				                                           return false;
			                                           }
		                           }
	           }
 	xmlhttp.onreadystatechange = function(){
		if (xmlhttp.readyState == 4){
			    document.getElementById("amfv").innerHTML = xmlhttp.responseText;
		}
	}

	xmlhttp.open("GET", "addfavorityvideo.php?video_id="+id, true);
	xmlhttp.send(null); 

}
