// This variable holds the AJAX goodness.
var xmlHttp = GetXmlHttpObject();

function ArkFootballVid(ClipID) {
    // Start of the AJAX call
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null) { //If you suck at life
      alert ("Browser does not support HTTP Request");
      return;
    }
    // This is the file called that holds the query/layout
    var url="football/VideoFeature.dbml?DB_OEM_ID=6100&VID_CLIP_ID="+ClipID;
    xmlHttp.onreadystatechange=stateChanged ;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
}

function stateChanged()  { 
  if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
     if (xmlHttp.responseText == '') {
      window.location.href="#";
     }
     else {
      document.getElementById("Content").innerHTML=xmlHttp.responseText;
     }
  } 
}

/******************************************************************************
 *  GetXmlHttpObject Function
 *  This function creates the needed vars and functions for the ajax variable
 *    declared at the top of this file with the other global variables.   
******************************************************************************/ 
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;
}