/**
 * Submits an AJAX POST to the specified url, with the specified query
 * NOTE: we do not read the response, this is a one-way send
 * 
 * @param strURL - the url to post to
 * @param query - the post data we are sending
 * @param bAsync - true if we want an asynchronous request, false for synchronous
 */
function xmlhttpPost(strURL, query, bAsync) {
    var xmlHttpReq = false;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlHttpReq.open('POST', strURL, bAsync);
    xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlHttpReq.onreadystatechange = function() {
        if (xmlHttpReq.readyState == 4) {
            var responseContent = xmlHttpReq.responseText;
            //Do nothing with the response
        }
    }
    xmlHttpReq.send(query);
}
function changeBackgroundRow() {
    var row1 = $("TABLE.user-contact-details TR").filter( function(index) {
        return (index%2==0);
    });
    var row2 = $("TABLE.user-contact-details TR").filter( function(index) {
        return (index%2==1);
    });
    row1.removeClass("row1").addClass("row2");
    row2.removeClass("row2").addClass("row1");
}
