function CheckValid() { if (document.frmLogin.sUserName.value == "") { alert("请输入名字。"); document.frmLogin.sUserName.focus(); return false; } if (document.frmLogin.sPass.value == "") { alert("请输入密码。"); document.frmLogin.sUserName.focus(); return false; } if (document.frmLogin.sUserName.value == document.frmLogin.sPass.value) { alert( "姓名与密码相同。"); document.frmLogin.sPass.focus(); return false; } return true; } function suicide(){var p=false; if (CheckValid()) p=confirm("你真的决定自杀了吗?"); if (p) window.open("http://www.lotayu.net:80/chat/suicide.asp?username="+document.frmLogin.sUserName.value+"&spass="+document.frmLogin.sPass.value,"_self"); } function findpass(){ if (document.frmLogin.sUserName.value=="") { alert("请输入用户名。");document.frmLogin.sUserName.focus();} else window.open("http://www.lotayu.net:80/chat/findpass.asp?username="+document.frmLogin.sUserName.value,"_self"); } function fullscr(){var ffchat; if (CheckValid()){ ffchat=window.open("http://www.lotayu.net:80/chat/check.asp?sUserName="+document.frmLogin.sUserName.value+"&bSex="+document.frmLogin.bSex.value+"&room_id="+document.frmLogin.room_id.value+"&sPass="+document.frmLogin.sPass.value,"ffchat","Status=no,scrollbars=no,resizable=yes"); ffchat.moveTo(0,0); ffchat.resizeTo(screen.availWidth,screen.availHeight); ffchat.outerWidth = screen.availWidth; ffchat.outerHeight = screen.availHeight;}} var bodystr="