var xmlHttp

function play_video(video)
{
  //alert(order_date)
  //document.getElementById("maint_ship_to_list").innerHTML="<br /><br /><br /><br /><br /><br /><h3>Working...</h3>"
  //document.getElementById("show_list").style.display = "none"
  //document.getElementById("hide_list").style.display = "inline"

  xmlHttp=GetXmlHttpObject()
  if (xmlHttp==null)
   {
   alert ("Browser does not support HTTP Request")
   return
   }
  var url="get_video.php"
  url=url+"?video="+video
  url=url+"&sid="+Math.random()
  //alert (url)
  xmlHttp.onreadystatechange=stateChanged1;
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null)

  function stateChanged1()
  {
  if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
   {
   //window.location = 'maint_cust.php';
   document.getElementById("video_box").innerHTML=xmlHttp.responseText
   }
  }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;
  }
}
