function setInnerHtmlFormTxt(path,objId) {
    var req = createXmlHttp();
    if (req) {		
        req.open("GET", path, false);
        //禁示读缓存，以免取不到header
		req.setRequestHeader("If-Modified-Since","0");
		req.send(null);
        if (req.status == "200") {
            try{
			  var obj = document.getElementById(objId);
			   obj.innerHTML = req.responseText;
			}catch(exception){
			   alert("Make sure the object id is correct!");
			}
        } else {
            alert( path + "出错!");
        }
    } else {
            alert("浏览器不支持!");
    }
}

//设置内容
function setInnerHTML(objId, html){
	try{
	  var obj = document.getElementById(objId);
	   obj.innerHTML = html;
	}catch(exception){
	   alert("Make sure the object id is correct!");
	}
}

//ajax
function createXmlHttp() {
    try {
        return new XMLHttpRequest();
    } catch(e1) { try {
        return new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e2) { try {
        return new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e3) {
        return null;
    } } }
}