function createAjax() {
    var h = null;
    if (typeof XMLHttpRequest != "undefined") {
		try { h = new XMLHttpRequest(); }
		catch (e) { h = null; }
    }
    if (!h) {
        var tmp = new Array("Microsoft.XMLHTTP", "Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP");
        for (var i = 0; i < tmp.length; ++i) {
	    	try { h = new ActiveXObject(tmp[i]); }
	    	catch (e) { h = null; }
    	}
    }
    return h;
}
var ajaxobj=createAjax();

