document.writeln("<SCRIPT language=javascript>");
document.writeln("function MM_openBrWindow(theURL,winName,features) {");
document.writeln("  window.open(theURL,winName,features);");
document.writeln("}");
document.writeln("function OnLogin(dir,name,chaturl) {");
document.writeln(" var id=login.id.value;");
document.writeln(" if(id==\"\") { alert(\"請輸入您的大名\"); return; }");
document.writeln(" if(id.indexOf(\"\\\\\")!=-1 || id.indexOf(\"#\")!=-1 || id.indexOf(\"$\")!=-1|| id.indexOf(\"&\")!=-1 || id.indexOf(\"\\\"\")!=-1 || id.indexOf(\"\'\")!=-1 || id.indexOf(\"<\")!=-1 || id.indexOf(\"<xmp\")!=-1 || id.indexOf(\"<script\")!=-1 || id.indexOf(\"<form\")!=-1 || id.indexOf(\"<body\")!=-1 || id.indexOf(\"\\n\")!=-1 || id.indexOf(\"<applet\")!=-1 || id.indexOf(\"?\")!=-1 || id.indexOf(\"<table\")!=-1 || id.indexOf(\"[\")!=-1 || id.indexOf(\"]\")!=-1) { alert(\"暱稱中請勿含有特殊符號\"); return; }");
document.writeln(" if(id.indexOf(\"幹\")!=-1 || id.indexOf(\"操\")!=-1 || id.indexOf(\"fuck\")!=-1 || id.indexOf(\"FUCK\")!=-1 || id.indexOf(\"靠\")!=-1 || id.indexOf(\"一夜情\")!=-1 || id.indexOf(\"淫\")!=-1 || id.indexOf(\"凸\")!=-1 || id.indexOf(\"做愛\")!=-1 || id.indexOf(\"屌\")!=-1) { alert(\"請勿含不雅的字\"); return; }");
document.writeln(" if(id.indexOf(\"翔羽\")!=-1 || id.indexOf(\"翔 羽\")!=-1) { alert(\"已列黑名單不給進\"); return; }");
document.writeln(" if(id.indexOf(\"lo\")!=-1 || id.indexOf(\"LO\")!=-1 || id.indexOf(\"lO\")!=-1) { alert(\"請勿用站長專用名\"); return; }");
document.writeln(" login.action=chaturl;");
document.writeln(" login.target=name;");
document.writeln(" login.room.value=name;");
document.writeln(" window.open(\"\",name,\"toolbar=no,location=no,directories=no,menubar=no,resizable=yes\");");
document.writeln(" login.submit();");
document.writeln(" login.password.value=\"\";");
document.writeln(" login.id.value=\"\";");
document.writeln("}");
document.writeln("<\/SCRIPT>")