
      var xmlDoc = null ;
	  var output = null;
	  var doAlert = null;
  
      function load( postData, submitURL, outputLocation, a ) {
		
			output = outputLocation;	
			doAlert = a;	
		
		if (typeof window.ActiveXObject != 'undefined' ) {
          xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
          xmlDoc.onreadystatechange = process ;
        }
        else {
          xmlDoc = new XMLHttpRequest();
          xmlDoc.onload = process ;
        }
		
		xmlDoc.open( "POST", submitURL, true );
		xmlDoc.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xmlDoc.send( postData );
			
      }
	  
	  
  
      function process() {
		
        if ( xmlDoc.readyState != 4 ) return ;
		
		var xmlReturnString = xmlDoc.responseText;
	
		if( doAlert ){
			alert( xmlReturnString );
		}else{
			document.getElementById( output ).innerHTML = xmlReturnString;
		}
		
      }
	  
	  
	  /*
	  ** Create a name/value string of the form elements
	  */
	  function formToString( formName ){
	  
	  	theForm = document.forms[formName];	
		
		var theString = "";

	  	for( i = 0; i < theForm.length; i++ ){
			
			theString += ( i > 0 ) ? "&" : "" ;
			var putIn=true;
				
			if( (( theForm[i].type == "checkbox")||(theForm[i].type == "radio"))&&(theForm[i].checked==false ) ){
				putIn = false;
			}
			
			if( putIn ) {
				theString += theForm[i].name + "=" + escape(theForm[i].value) ;  
			}
			
		}
		
	  	return theString;
		
	  }
	  
	  
	  
	  
	  function processRequest( formName, submitURL, outputLocation, a ){
	 
	  	if( submitIt( document.forms[formName], 'submitOnly' ) ){
			
			var postData = formToString( formName );
			
			load( postData, submitURL, outputLocation, a );
			
		}
	  
	  }
	  
	  