 var xmlHttp = false;
 function CreatXmlHttp()
 {
   try {

     xmlHttp = new XMLHttpRequest();

   } catch (trymicrosoft) {

     try {

       xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");

     } catch (othermicrosoft) {

       try {

         xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

       } catch (failed) {

         xmlHttp = false;

       }  

     }

   }

   if (!xmlHttp)

     alert("Error initializing XMLHttpRequest!");
 }
 function getvideo(id)
{
   CreatXmlHttp()
   var url = "flashpart.aspx?id="+id;
   xmlHttp.open("GET", url, true);
   xmlHttp.onreadystatechange = callgetback;
   xmlHttp.send(null);
      
}

function callgetback() {
       if (xmlHttp.readyState == 4)

       if (xmlHttp.status == 200)
      {
        
           var r = document.getElementById('video');
           r.innerHTML = xmlHttp.responseText; 
          
      }

       else if (xmlHttp.status == 404)

         alert("Request URL does not exist");

       else

         alert("Error: status code is " + xmlHttp.status);


 
 }
