function xmlhttpGet(strURL,cmd) {
    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, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() 
	{
        if (self.xmlHttpReq.readyState == 4) {
            if(cmd == 'delete'){	            
				//updateshowpage(strURL);
				//updatepage(self.xmlHttpReq.responseText);
				updateshowpage(self.xmlHttpReq.responseText);
			}
			else{

				updateshowpage(self.xmlHttpReq.responseText);
			}
        }
    }
	var queryString = strURL;
	

	//alert(queryString);
    self.xmlHttpReq.send(queryString);

	
}
function updateshowpage(str){
    document.getElementById("main_text").innerHTML = str;
}