function getXmlHttpObj()
{
       /* Create a new XMLHttpRequest object to talk to the Web server */
      try
      {
             xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
      }catch (e)
      {
             try
            {
                  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
            }catch (e2)
            {
                  xmlHttp = null;
            }
      }

      if (!xmlHttp && typeof XMLHttpRequest != 'undefined')
      {
           xmlHttp = new XMLHttpRequest();
      }
      return xmlHttp;
}

function sendRequest(mode,url,pcont,callback)
{
      xmlHttp.open(mode,url,true);
      xmlHttp.onreadystatechange = callback;
      if (mode == "POST")
      {
      	  xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
      		xmlHttp.send(pcont);
      }else
      {
      		xmlHttp.send(null);
      }
}



