//AJAX Scripte
<!--
	//CLASS - AJAX WRAPPER ------------------------------------------------------------------------
	
	var remoteScript = "";
	
	/**
	*Constructor AJAX Wrapper
	*/
	function AJAXWrapper(){
		this.remoteScript;
		this.method;
                this.cbi = this.handleResponse;
	}
	
	/**
	*SETTER remote script file to take the request
	*/
	AJAXWrapper.prototype.setRemoteScript = function(value)
    {
            this.remoteScript = value;
    }
    
    /**
	*SETTER request method get/post
	*/
    AJAXWrapper.prototype.setMethod = function(value)
    {
            this.method = value;
    }
    
    /**
	*SETTER callback interface 
	*/
    AJAXWrapper.prototype.setCBI = function(value)
    {
            this.cbi = value;
    }


	/**
	*Create the ajax response object.
	*IE must create it differently than all others
	*/
	AJAXWrapper.prototype.createRequestObject = function()
	{
	    var requestObject;
	    var browser = navigator.appName;
	    
	    //check if IE or anything else
	    if(browser == "Microsoft Internet Explorer"){
	        requestObject = new ActiveXObject("Microsoft.XMLHTTP");
	    }else{
	        requestObject = new XMLHttpRequest();
	    }
	    return requestObject;
	}
 
	

	/**
	*Send request to the server
	*/
 	AJAXWrapper.prototype.sendRequest = function(sender, data)
	{
	    http.open(this.method, this.remoteScript+'?sender='+sender+'&data='+data);
	    http.onreadystatechange = this.cbi;
	    http.send(null);
	}
        
 
 
 	/**
 	*Callback interface to handle the server response
 	*/
	AJAXWrapper.prototype.handleResponse = function()
	{
	    if(http.readyState == 4){
	        var response = http.responseText;
	        var update = new Array();

	        if(response.indexOf('|' != -1)) {
	            update = response.split('|');
	            document.getElementById(update[0]).innerHTML = update[1];
	        }
	        else{
	        	alert(response);
	        }
	        
	        
	    }
	}

	//-------------------------------------------------------------------------------------------->
//-->
