function ajaxComm(mode,page,divID,returnWhat,throbID)
{
  var xmlHttp;
  try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("You browser does not support Ajax, and this function can not complete.");
      return false;
      }
    }
  }

  if(returnWhat == 'HTML')
  {
    xmlHttp.onreadystatechange = function()
    {
      if(throbID!=0)
      {
        if(xmlHttp.readyState==1)
        {
          document.getElementById(throbID).innerHTML = '<img src="/inc/img/loading.gif" />';
        }
      }

      if(xmlHttp.readyState==4)
      {
        document.getElementById(divID).innerHTML = xmlHttp.responseText;
        if(throbID!=0)
        {
          document.getElementById(throbID).innerHTML = '';
        }

      }
    }
  } else if(returnWhat == 'TEXT')  {
    xmlHttp.onreadystatechange = function()
    {
      if(xmlHttp.readyState==4)
      {
        document.getElementById(divID).value = xmlHttp.responseText;
      }
    }
  }

  xmlHttp.open(mode,page,true);
  xmlHttp.send(null);
}
