var xmlHttp
var xmlHttp2

function display_video(id)
{
 	//alert(id);
	if(id.length==0)
	 { 
			 document.getElementById("divdisplayvdo").innerHTML="";
			 document.getElementById("divdisplayvdo").style.border="0px";
			 return
	 }
			 
	xmlHttp2=GetXmlHttpObject()

	if (xmlHttp2==null)
	 {
		alert ("Browser does not support HTTP Request")
		 return
	 } 

	/*var t1 = "**am**";
	var t2 = "**pm**";
	var doctor_name = doctor_name.replace(/&/g, t1);
	doctor_name = doctor_name.replace("?","**pm**");
	*/
	
	var url="display-video.php"
	passdata="id="+id
	//alert(passdata);
	xmlHttp2.onreadystatechange=stateChanged2
	xmlHttp2.open("POST",url,true)
	xmlHttp2.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp2.setRequestHeader("Content-length", passdata.length);
	xmlHttp2.send(passdata)
	
} 

function stateChanged2() 
{ 
	if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
	 { 

    	document.getElementById("divdisplayvdo").style.display='block';
		//document.getElementById("fullimgsection").style.display = 'none';
		document.getElementById("divdisplayvdo").innerHTML=xmlHttp2.responseText;
		document.getElementById("divdisplayvdo").style.border="0px solid #A5ACB2";
	 } 
}


function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
