
var xmlHttpGetList=createXmlHttpRequestObject();var msg='<center><font color="Green"><b>Loading....</b></font></center>';function createXmlHttpRequestObject()
{var xmlHttp;try
{xmlHttp=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/html');}}
catch(e)
{var XmlHttpVersions=new Array("MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP");for(var i=0;i<XmlHttpVersions.length&&!xmlHttp;i++)
{try
{xmlHttp=new ActiveXObject(XmlHttpVersions[i]);}
catch(e){}}}
if(!xmlHttp)
alert("Error creating the XMLHttpRequest object.");else
return xmlHttp;}
function getResults(url)
{if(xmlHttpGetList)
{try
{if(xmlHttpGetList.readyState==4||xmlHttpGetList.readyState==0)
{xmlHttpGetList.open("GET",url,true);xmlHttpGetList.onreadystatechange=processResults;xmlHttpGetList.send(null);}}
catch(e)
{displayError("Can't connect to server:\n"+e.toString());}}}
function processResults()
{if(xmlHttpGetList.readyState==1)
{document.getElementById("imgcarousel").innerHTML=msg;}
else if(xmlHttpGetList.readyState==4)
{if(xmlHttpGetList.status==200)
{showResults();}}}
function showResults()
{response=xmlHttpGetList.responseText;e=document.getElementById("imgcarousel");e.innerHTML=response;}
