function getGobalHead(url,Strstart,Strstop,obj){
var xhr=null;
if(window.XMLHttpRequest) xhr=new XMLHttpRequest();
else xhr=new ActiveXObject("Microsoft.XMLHTTP");
xhr.open("post",url,true);
xhr.send();
xhr.onreadystatechange=function(){
if(xhr.status==200&&xhr.readyState==4){
var res=xhr.responseText;
var m=res.indexOf(Strstart);
var n=res.indexOf(Strstop);
obj.innerHTML=res.substring(m,n);
if(obj.id=="Header") {
chageUserState();
addBlur($("loginAndEnroll"));
submitForm($("loginForm"));
submitForm($("encrollForm"));
submitForm($("findStep"));
}
if(obj.id=="rightBar"){
var sourceJs=$TagName(obj,"script")[0];//以下代码实现js的重加载
//var reloadJs=sourceJs.cloneNode(true); //克隆节点不能实现重加载,必须创建
var reloadJs=document_createElement_x("script");
reloadJs.language = "javascript"; //这3条属性不是必要的,加上以防万一
reloadJs.type = "text/javascript";
reloadJs.defer = true;
reloadJs.text= sourceJs.innerHTML;
obj.a(reloadJs);
obj.removeChild($TagName(obj,"script")[0]);
//添加返回顶部事件
returnTop=$("rightBar").getElementsByTagName_r("a")[6];
returnTop.onclick=function(){
backTop()
};
}
}
}
}