// JavaScript Document

//重新获取验证字符 
function reloadcode() 
{ 
	document.getElementById("authImageg").src = '../c2t/validation_code.php?' + Math.random(); 
}

//重新获取验证字符 
function reloadcodes() 
{ 
	document.getElementById("authImages").src = '../c2t/validation_code.php?' + Math.random(); 
}

//bof 弹出窗口
function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}//end function 弹出窗口

function window.onbeforeunload(){      
    if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey){    	
		var xmlHttp = false;
		try {
		xmlHttp = new XMLHttpRequest();
		} catch (trymicrosoft) {
		try {
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (othermicrosoft) {
		try {
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (failed) {
		xmlHttp = false;
		}
		}
		}
		if (!xmlHttp){
		alert("无法创建 XMLHttpRequest 对象！");
		}
	    xmlHttp.open("GET","../common/logout.php",false);
	    xmlHttp.send();
    }      
}
