
function xmlhttpPost(strURL) {
   // alert("1");
    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) {
            updatepage(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send(getquerystring());
}
//---------------------------- post the quary string ------------------------------- 
function getquerystring() {
    // alert("2");
    // var link_category_id = document.forms['frm'].link_category_id[document.forms['frm'].link_category_id.selectedIndex].value;
    // qstr = 'link_category_id=' + escape(link_category_id);  // NOTE: no '?' before querystring
    // qstr="sss";
	// alert(qstr);
    // return qstr;
}
//------------------------------ div id to change ----------------------------
function updatepage(str) {
	//  alert(str);
     document.getElementById("show_liens_link").innerHTML = str;
}
