
function xmlhttpPost_state(strURL) {
	//alert("object created");
    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_state(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send(getquerystring_state());
}
//---------------------------- post the quary string ------------------------------- 
function getquerystring_state() {
	//alert("event fired");
	//alert(document.forms['frm'].country.value);
    var country = document.frm_lightbox.country.options[document.frm_lightbox.country.selectedIndex].value;
    qstr = 'country=' + escape(country);  // NOTE: no '?' before querystring
//       qstr="";
     //alert(country_id);
    return qstr;
}
//--------------------------- div id to change ----------------------------
function updatepage_state(str){
	//alert(str);
    document.getElementById("show_location").innerHTML = str;
}

