//Based on code courtesy of Jim Ley (Jibbering.com)
//http://jibbering.com/2002/4/httprequest.html

function initXMLhttp() {

    var xmlhttp = false;

    //for Mozilla/Safari
    if (!xmlhttp && typeof XMLHttpRequest!='undefined') { //'undefined' is in quotes to avoid the "undefined is undefined" error message in IE5/Mac
        xmlhttp = new XMLHttpRequest();
    }

    return xmlhttp;

}