var xmlHttp=createXmlHttpRequestObject();function createXmlHttpRequestObject(){var xmlHttp;if(window.ActiveXObject){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){xmlHttp=false;}}else{try{xmlHttp=new XMLHttpRequest();}
catch(e){xmlHttp=false;}}
if(!xmlHttp){alert("Error creating the XMLHttpRequest object.");}else{return xmlHttp;}}
function GetPage(PAGE,DIVID){if(xmlHttp.readyState==4||xmlHttp.readyState==0){document.getElementById(DIVID).innerHTML='<i>Loading Goodness!..</i>';xmlHttp.open("GET",PAGE,true);xmlHttp.onreadystatechange=handleStandard;curDIVID=DIVID;xmlHttp.send(null);}else{setTimeout('GetPage('+PAGE+', '+DIVID+')',1000);}}
function handleStandard(){if(xmlHttp.readyState==4){if(xmlHttp.status==200){helloMessage=xmlHttp.responseText;document.getElementById(curDIVID).style.display='block';document.getElementById(curDIVID).innerHTML=helloMessage;}else{alert("There was a problem accessing the server: "+xmlHttp.statusText);}}}
function hideMe(DIV){document.getElementById(DIV).style.display == 'none'; }
