function uyekontrol(strURL,lyr) {
    var xmlHttpReq = false;
    var self = this;
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    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,lyr);
        }
    }
    self.xmlHttpReq.send(uyeal());
}

function uyeal() {
    var form = document.forms['cariform'];
    var uye_id = form.uye_id.value;
    qstr = 'uye_id=' + uye_id;
    return qstr;
}

function updatepage(str,lyr){
    document.getElementById(lyr).innerHTML = str;
}