
  // AJAX ver 2.0 @ 2007/04/11 - Alexander SPOONER | Web Management //

  function ajaxLoad(func,method,url,vars)
  {
    try
    {
      xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
      new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch (e)
    {
      alert("Your browser doesn't support ajax. Use newer FireFox or IE!");
    }
    xmlhttp.onreadystatechange = function ajaxTrigger()
    {
      if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200))
      {
        eval(func)(xmlhttp.responseText);
      }
    }
    if (vars.length>0)
    {
      vars = vars + '&ajaxtimestamp=' + new Date();
    }
    else
    {
      vars = 'ajaxtimestamp=' + new Date();
    }
    if (method == "GET")
    {
      xmlhttp.open("GET", encodeURI(url + '?' + vars));
      xmlhttp.send(null);
    }
    if (method == "POST")
    {
      xmlhttp.open("POST", url);
      xmlhttp.send(vars);
    }
  }

  function ajaxLoad2(func,method,url,vars)
  {
    try
    {
      xmlhttp2 = window.XMLHttpRequest?new XMLHttpRequest():
      new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch (e)
    {
      alert("Your browser doesn't support ajax. Use newer FireFox or IE!");
    }
    xmlhttp2.onreadystatechange = function ajaxTrigger()
    {
      if ((xmlhttp2.readyState == 4) && (xmlhttp2.status == 200))
      {
        eval(func)(xmlhttp2.responseText);
      }
    }
    if (vars.length>0)
    {
      vars = vars + '&ajaxtimestamp=' + new Date();
    }
    else
    {
      vars = 'ajaxtimestamp=' + new Date();
    }
    if (method == "GET")
    {
      xmlhttp2.open("GET", encodeURI(url + '?' + vars));
      xmlhttp2.send(null);
    }
    if (method == "POST")
    {
      xmlhttp2.open("POST", url);
      xmlhttp2.send(vars);
    }
  }

	// CALL STANDARD
	// <script language="JavaScript" type="text/javascript" src="js/ajax.js"></script>
	

