function clearDefault(el) {
if (el.defaultValue==el.value) el.value = ""
}

function sendAjaxRating(strURL, strType, strQuery, strID) {
    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(strType, strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            document.getElementById(strID).innerHTML = self.xmlHttpReq.responseText;
        }
    }
    self.xmlHttpReq.send(strQuery);
}
