    var results="";
	   function handleHttpResponselist() {
	   //alert("Response hendler"); 
	   //alert(http.readyState) ;
        if (http.readyState == 4) { 
        //alert(http.status);
        //alert(http.responseText);
              if(http.status==200) 
              { 
                  results=http.responseText; 
                  //alert(results);
              document.getElementById('TopBackground').className = "top_" + results;
              document.getElementById('FooterBackground').className = "footer_" + results;  
              if(results != "")
              {
                 pr('Button3','');
                //__doPostBack('','');
               //document.form1.submit();
              }
			  document.getElementById('loading').style.display = "none";
              } 
              else 
              { 
              //document.getElementById('divResults').innerHTML = "error: incorrect source";  
              } 
              document.getElementById('loading').style.display = "none";             
            }  
        }//
       function request(method,URL) {
       //alert(method + " -> " + URL);
       //alert(http);
            http.open(method, URL, true);
            //alert("http.open"); 
            http.onreadystatechange = handleHttpResponselist; 
            //alert("http.onreadystatechange");
			document.getElementById('loading').style.display = "block";
			//alert("loading");
            http.send('');
            document.getElementById('imgselectaboutus').src="images/unsel.gif";
            //alert("http.send");
        }//

/*function getHTTPObject() { 
  var xmlhttp; 
  //alert("Create Request");
  if(window.XMLHttpRequest){ 
    xmlhttp = new XMLHttpRequest(); 
    alert("XMLHttpRequest");
  } 
  else if (window.ActiveXObject)
  { 
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    alert("Microsoft.XMLHTTP"); 
    if (!xmlhttp)
    { 
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
    }
    else
    {
      alert("Browser not supporting AJAX");
    }
    alert();
} 
  return xmlhttp; 

}// */
function getHTTPObject() 
{	
var xhr = false;//set to false, so if it fails, do nothing	
if(window.XMLHttpRequest) 
{            //detect to see if browser allows this method		
var xhr = new XMLHttpRequest();//set var the new request	
} 
else if(window.ActiveXObject) 
{       //detect to see if browser allows this method		
try 
{			
var xhr = new ActiveXObject("Msxml2.XMLHTTP");//try this method first		
} 
catch(e) 
{       //if it fails move onto the next			
try 
{				
var xhr = new ActiveXObject("Microsoft.XMLHTTP");//try this method next			
} 
catch(e) 
{          //if that also fails return false.				
xhr = false;			
}		
}	
}	
return xhr;    //return the value of xhr
}
function pr(ctrl,arg)
{
  __doPostBack(ctrl,arg);
}
function getval(strEl)
{
return document.getElementById(strEl).options[document.getElementById(strEl).selectedIndex].value;
}
function getdata(strdate,strpmsid)
{
var stru = "response.aspx?p=getdata&get_date=" + getval(strdate) + "&EventTypeID=" + getval(strpmsid);
//alert(stru);
request('POST',stru);
return false;
}
function selaboutus(sel)
{
var selaboutus=document.getElementById('imgselectaboutus');
if(sel==1){
request('POST', 'response.aspx?p=ourabout&t=13&msid=');
selaboutus.src="images/sel.gif";
}else{
selaboutus.src="images/unsel.gif";
}
}
function ShowHideCol(tr,ShowHide)
{
//alert(tr);
var col=document.getElementById(tr);
if(ShowHide==1){
col.style.display="block";
}else{
col.style.display="none";
}
}
var http = getHTTPObject(); // creating the HTTP Object
function selectMI(in_new,method,LinkText)
{
if(in_new == 1){
window.open(LinkText);
}else{
request(method,LinkText);
}
c_mU();
}
function refresh() 
{ 
    window.location.reload(); 
} 
