function logFormCheck(frm){
	with(frm){
		if(isEmpty(username.value)){alert("请输入用户名");username.focus();return false;}
		if(isEmpty(password.value)){alert("请输入密码");password.focus();return false;}
		if(isEmpty(vcode.value)){alert("请输入验证码");vcode.focus();return false;}
	}return true;
}

function persFormCheck(frm){
	with(frm){
		if(persite.selectedIndex==0){alert("请选择登录站点");persite.focus();return false;}
		if(isEmpty(Name.value)){alert("请输入用户名");Name.focus();return false;}
		if(isEmpty(Pwd.value)){alert("请输入密码");Pwd.focus();return false;}
		if(isEmpty(Num.value)){alert("请输入验证码");Num.focus();return false;}
		if(QueryString("from")){from.value=QueryString("from");}
	}return true;	
}

function persSelectSite(s){
	if(s.selectedIndex==0) return;
	s.form.action="http://www."+s.options[s.selectedIndex].value+"/chklogin.asp";
	//s.form.target="_blank";
	document.getElementById("remotevcode").src="http://www."+s.options[s.selectedIndex].value+"/include/num.asp"
}

function pserRegister(){
	var s=document.getElementById("persite");
	if(s.selectedIndex==0){alert("请选择登录站点");s.focus();return;}
	window.open("http://www."+s.options[s.selectedIndex].value+"/reg/agreement.asp","_blank");
}

function freshRemoteVcode(){
	var s=document.getElementById("persite");
	if(s.selectedIndex==0){alert("请选择登录站点");s.focus();return;}
	document.getElementById("remotevcode").src="http://www."+s.options[s.selectedIndex].value+"/include/num.asp"
	}

function ShowPersForm(){
	var pf=document.getElementById("DivPersForm");
	var cf=document.getElementById("DivCorpForm");
	pf.style.display="block";
	cf.style.display="none";
}
function ShowCorpForm(){
	var pf=document.getElementById("DivPersForm");
	var cf=document.getElementById("DivCorpForm");
	pf.style.display="none";
	cf.style.display="block";
}