function window.onbeforeunload()
{
	if ((event.clientX>document.body.clientWidth) && (event.clientY<0||event.altKey))
	{ 
	  var xmlhttp= new ActiveXObject("Msxml2.xmlhttp")
	  xmlhttp.open("GET","yhdl/quit.asp",false)
	  xmlhttp.send()         
	}
}

function openIT(url,wname) {
	wname ="CHROMELESSWIN"
	var windowW = window.screen.availWidth;
	W=windowW;
	var windowH = window.screen.availHeight;
	H=windowH;
	var windowX = 1;
	var windowY = 1;

	if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4) isie=true
	else isie=false

	if (isie) { H=H+20+2; W=W+2; }

	s = ",width="+W+",height="+H;

	if (isie) 
	{
		splashWin = window.open( "" , "", "fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s)
		splashWin.resizeTo( Math.ceil( W )       , Math.ceil( H ) )
		splashWin.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) )
		splashWin.location = url

	}
	else
		var splashWin = window.open(url, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true)
	splashWin.focus();
}

function caps(href)
{
	openIT(href);
	return(true);
}

//----------------------------------------------------注册用户--------------------------------------------------
//注册用户
function reguser()
{
	if(document.all.kind2.checked){
		
		window.open("yhzc/zchybm.htm","","scrollbars=yes,resizable=no,width=600px,height=400px;top=1px;left=1px");
	}
	if(document.all.kind1.checked){
		window.open("yhzc/bkqpxbm.htm","","scrollbars=yes,resizable=no,width=600px,height=400px;top=1px;left=1px");
	}
}
//修改注册用户信息
function updatezcyh(){  
	window.open("yhdl/updatezcyh.asp","","scrollbars=yes,resizable=no,width=600px,height=400px;top=1px;left=1px");
}

//----------------------------------------------------资格考试--------------------------------------------------
//资格考试报名
function ksxyReg()
{  
  window.open("http://www.btpsc.com.cn/register/other/ksxy_1news.asp","","scrollbars=yes,resizable=no,width=600px,height=550px;top=1px;left=1px");
}
//特殊考点资格考试报名
function ksxyReg1()
{  
  window.open("register/Special/ksxy_1news.asp","","scrollbars=yes,resizable=no,width=600px,height=550px;top=1px;left=1px");
}
//集体报名
function ksxyReg2()
{  
  window.open("register/group/ksxy_1news.asp","","scrollbars=yes,resizable=no,width=600px,height=550px;top=1px;left=1px");
}
function ksxy_koushiReg()
{
    window.open("register/other/ksxy_ks_1news.asp","","scrollbars=yes,resizable=no,width=600px,height=500px;top=1px;left=1px");
}
//修改资格考试信息
function ksxymodify()
{  
  window.open("register/other/ksxy_modify1.asp","","scrollbars=yes,resizable=no,width=600px,height=500px;top=1px;left=1px");
}
//查询资格考试报名号
function ksxy_baominghao()
{  
  window.open("register/other/ksxy_baominghao.asp","","scrollbars=yes,resizable=no,width=600px,height=500px;top=1px;left=1px");
}
//查询资格考试报名号
function ksxyscore()
{  
  window.open("http://ks.btpsc.com.cn/score/","","scrollbars=yes,resizable=no,width=600px,height=500px;top=1px;left=1px");
}
