	var xmlHttp;

	function GetXmlHttpObject()
	{
	  var xmlHttp=null;
	  try
	  {
 	    // Firefox, Opera 8.0+, Safari
	    xmlHttp=new XMLHttpRequest();
	  }
	  catch (e)
	  {
	    // Internet Explorer
	    try
	    {
	      xmlHttp=new ActiveXObject('Msxml2.XMLHTTP');
	    }
	    catch (e)
	    {
	      xmlHttp=new ActiveXObject('Microsoft.XMLHTTP');
	    }
	  }
	  return xmlHttp;
	}

	function dataProcess(url, element)
	{
	  xmlHttp=GetXmlHttpObject();
	  if (xmlHttp==null)
	  {
	    alert ('Your browser does not support AJAX!');
	    return;
	  } 

	  xmlHttp.onreadystatechange=function()
	  {
	    if(xmlHttp.readyState==4)
	    { 
    	document.getElementById(element).innerHTML=xmlHttp.responseText;
	    // Get the data from the server's response
        }
      }

      xmlHttp.open('GET',url,true);
      xmlHttp.send(null);
	}
	
	function valueProcess(url, element)
	{
	  xmlHttp=GetXmlHttpObject();
	  if (xmlHttp==null)
	  {
	    alert ('Your browser does not support AJAX!');
	    return;
	  } 

	  xmlHttp.onreadystatechange=function()
	  {
	    if(xmlHttp.readyState==4)
	    { 
    		document.getElementById(element).value=xmlHttp.responseText;
	    // Get the data from the server's response
        }
      }

      xmlHttp.open('GET',url,true);
      xmlHttp.send(null);
	}

function dataProcess_POST(setid, url, post_vars) 
// Check to see if file exists. If it does a new name will be returned. Otherwise the same one will be returned.
{
	xmlHttp=GetXmlHttpObject();
  	if (xmlHttp==null)
  	{
  		alert ('Your browser does not support AJAX!');
    	return false;
  	} 
	xmlHttp.onreadystatechange=function()
	{
  		if(xmlHttp.readyState==4)
    	{ 
    	  document.getElementById(setid).innerHTML=xmlHttp.responseText;
		  if (Display_LoadList)
		  {
			  LoadList(selectedGroup);
	    	  Display_LoadList = 0;  // reset to 0 so list only loads when it needs to
	  		}
	    }
	}
  
	xmlHttp.open('POST',url,true);
	xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlHttp.send(post_vars);

} 

