var xmlHttp_addfriend;
function sendReqvideo(urll,vId)
{
		var idstring="showvideo"+vId;
	//alert("showvideo"+vId);
	document.getElementById(idstring).style.display='';
	xmlHttp_addfriend=GetXmlHttpObject()
	if (xmlHttp_addfriend==null)
	{
		alert ("Your browser does not support AJAX!");
		return;
	}
	//var url="myvideo_inner.php";
	url=urll+"?vId="+vId;
	//alert(url);
	xmlHttp_addfriend.onreadystatechange=addfr_stateChanged;
	xmlHttp_addfriend.open("GET",url,true);
	xmlHttp_addfriend.send(null);
}

function addfr_stateChanged()
{
	if (xmlHttp_addfriend.readyState==4)
	{
		var test_=xmlHttp_addfriend.responseText;
		//alert(test_);
		var test_1=test_.split('@@||&&||^^||**||&&||%%||$$');
		var test_2=test_1[1].replace(/^\s\s*/, '').replace(/\s\s*$/, '');
		var testid_='showvideo'+test_2;
		var inter=test_1[0];
		var closeid_='closeplayer'+test_2;
		//alert(inter);
		document.getElementById(testid_).innerHTML=inter;
	 	document.getElementById(closeid_).style.display='';
	}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
{

xmlHttp=new XMLHttpRequest();
}
catch (e)
{

try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}

