	function updateForm(request_url, param_string, divName, loading, element_id)
  {
    http = false;
		
    if(loading != 'false')
    {
      document.getElementById(divName).style.cursor = 'wait';
    }
		
    if (window.XMLHttpRequest)
    {
      var http = new XMLHttpRequest();
			
      if (http.overrideMimeType)
      {
        http.overrideMimeType('text/xml');
      }
    }
    else if (window.ActiveXObject)
    {
      try
      {
        var http = new ActiveXObject("Msxml2.XMLHTTP");
      }
      catch (e)
      {
        try
        {
          var http = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch (e)
        {
        }
      }
    }
		
    if(!http){alert('Sorry Browser Not Compatible');}
    var url = request_url;
    var params = param_string;
    http.open("POST", url, true);
    http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    http.setRequestHeader("Content-length", params.length);
    http.setRequestHeader("Connection", "close");
		
    http.onreadystatechange = function()
    {
      if(http.readyState == 4 && http.status == 200)
      {
        //alert(http.responseText);
        //alert(divName);
        document.getElementById(divName).style.cursor = 'default';
        document.getElementById(divName).innerHTML = http.responseText;
    	}
    }
		
    http.send(params);
  }
	
	function clear_form_fields(theid, thevalue)
  {
    switch(theid)
    {
      case 'words':
        if(thevalue == 'Search Me?')
        {
          document.getElementById(theid).value = '';
        }
        break;
    }
  }
  
  function refill_form_fields(theid, thevalue)
  {
    switch(theid)
    {
      case 'words':
        if(thevalue == '')
        {
          document.getElementById(theid).value = 'Search Me?';
        }
        break;
    }
  }

