function doAjax(strURL,strPostData,strObj,method,strProgressMessage,nTime) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
	www=(window.location.href.toLowerCase().indexOf("//www.")>0)?"http://www.":"http://";
	strURL=strURL.replace("http://",www);
	updateMessage(strObj,strProgressMessage);
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open(method, strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) 
		{
			updateMessage(strObj,self.xmlHttpReq.responseText);
			if (nTime>0) setTimeout("hide('"+strObj+"');",nTime);
        }
    }
    self.xmlHttpReq.send(strPostData);
}

function updateMessage(obj,str)
{
	show(obj);	
	document.getElementById(obj).innerHTML=str;
}

function showHide(id)
{
	if (document.getElementById(id).style.display=='')
		document.getElementById(id).style.display='none';
	else
		document.getElementById(id).style.display='';
		
}
function show(id)
{
		document.getElementById(id).style.display='';
		
}
function hide(id)
{
		document.getElementById(id).style.display='none';
}