<!--
function GetXmlHttpObject() {
	xmlHttp = null;
	try {
		xmlHttp = new XMLHttpRequest();
	}
	catch (e) {
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}
function GetVideo(pid) {
	var xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) {
		document.getElementById("download").innerHTML = "Your browser does not support AJAX.";
	}
	xmlHttp.onreadystatechange=function()
	{
		if (xmlHttp.readyState == 1) {
			document.getElementById("download").innerHTML = "Getting video...";
		}
		if (xmlHttp.readyState == 4) {
			document.getElementById("download").innerHTML = xmlHttp.responseText;
		}
	}
	xmlHttp.open("GET", "/getvideo.php?url=" + pid, true);
	xmlHttp.send(null);
}
// -->