//ajax异步执行ACTION
var xmlHttp;
function createXMLHttpRequst(){
	if(window.ActiveXObject){
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}else if(window.XMLHttpRequest){
		xmlHttp = new XMLHttpRequest();
	}
}

function openNews(id){
	createXMLHttpRequst();	
	
	xmlHttp.open("GET","http://www.0760jj.com:80/web/openNews.faces?id=" + id + "&random=" + Math.random(), true);
	xmlHttp.send(null);
} 

function openTeacher(id){
	createXMLHttpRequst();
	
	var ServerUrl = window.location.href; 
	var str = ServerUrl.split("/"); 
	var ServerUrl = "http://"+str[2]; 
	
	xmlHttp.open("GET", "http://www.0760jj.com:80/web/openTeacher.faces?id=" + id + "&random=" + Math.random(), true);
	xmlHttp.send(null);
}
