document.oncontextmenu=eventfalse;
document.onselectstart=eventfalse;
document.ondragstart=eventfalse;
function eventfalse(){
window.event.returnValue=false;}
function killErrors(){ 
return true;} 
window.onerror = killErrors; 
function stopError(){
return true;}
window.onerror = stopError;

function ActionUrl()
{
var myname = document.login.username.value;
var mypwd = document.login.password.value;
if (document.login.Choice[0].selected) {
	if(mypwd!="")
	{
	document.login.action = "http://bbs.xishui.net/login.asp?action=chk";
	document.login.submit();
	return true;
	}
	else
	{
	window.location="http://bbs.xishui.net/index.asp";
	return false;
	}}
if (document.login.Choice[1].selected){
	if(mypwd!="")
	{
	document.login.action = "bbs/userlogin.asp";
	document.login.submit();
	}
	else
	{
	window.location="bbs/indexold.asp";
	return false;
	}}
if (document.login.Choice[2].selected){
	if(mypwd!="")
	{
	document.login.fyuser.value = document.login.username.value;
	document.login.fypwd.value = document.login.password.value;
	document.login.action = "campus/login.asp";
	document.login.submit();
	}
	else
	{
	window.location="campus/index.asp";
	return false;
	}}
if (document.login.Choice[3].selected){
	if(mypwd!="")
	{
	document.login.user_name.value = document.login.username.value;
	document.login.action = "friend/login.asp";
	document.login.submit();
	}
	else
	{
	window.location="friend/index.asp";
	return false;
	}}
if (document.login.Choice[4].selected){
	if(mypwd!="")
	{
	document.login.USER.value = document.login.username.value;
	document.login.pwd.value = document.login.password.value;
	document.login.action = "http://bbs.xishui.net/login.asp?action=chk";
	document.login.submit();
	}
	else
	{
	window.location="down/";
	return false;
	}}
if (document.login.Choice[5].selected){
	if(mypwd!="")
	{
	document.login.userid.value = document.login.username.value;
	document.login.userpwd.value = document.login.password.value;
	document.login.action = "http://gq.xishuiw.com/login_xishuiw.php";
	document.login.submit();
	}
	else
	{
	window.location="http://gq.xishuiw.com/";
	return false;
	}}
	}
	
		/*document.login.Member.value = document.login.username.value;*/
		/*document.login.action = "/gq/CheckPass.asp";*/
			/*window.location="gq/";*/
function goChat()
{
var mynick = document.login.username.value;
	if(mynick!="")
	{
	document.login.USER.value = document.login.username.value;
	document.login.PASS.value = document.login.password.value;
	document.login.action = "http://202.96.140.86/login.php";
	document.login.submit();
	}
	else
	{
	var sbb=Math.floor(Math.random()*160)+1;
	document.login.USER.value = "浠水网—游客"+sbb+"";
	document.login.action = "http://202.96.140.86/login.php";
	document.login.submit();
	}
}
function defaul_home(){this.home.style.behavior='url(#default#homepage)';this.home.setHomePage('http://www.xishui.net/');}
function bookmarkit(){if(navigator.appName == "Netscape"){window.alert('按 Ctrl + D 将本页加入书签或收藏夹');}else{window.external.AddFavorite('http://www.xishui.net/','浠水网 [www.xishui.net]');}}
