function update(strURL,querystring,areaid) 
{
	var xmlHttpReq = false;
    var self = this;
    
    // Mozilla/Safari
    if (window.XMLHttpRequest) 
    {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) 
    {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL + '?' + querystring, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() 
    {
        if (self.xmlHttpReq.readyState == 4) 
        {
        	var output = self.xmlHttpReq.responseText;
        	output = trim(output);
        	eval("document.getElementById('" + areaid + "').innerHTML = \"" + output + "\";");
        }
    }
    self.xmlHttpReq.send(querystring);
}

function trim(thestring)
{
	thestring = thestring.replace(/^\s*|\s*$/g,"");
	thestring = thestring.replace(/\n/g,"");
	thestring = thestring.replace(/\r/g,"");
	thestring = thestring.replace(/\"/g,"'");
	return thestring
}