﻿// JScript 文件
document.writeln("<div id='LeftLoginName'>邮箱论坛登录</div>");
document.writeln("<div id='LoginAllBg'>");

document.writeln("<table width='170' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.writeln("<FORM id='form2' name='form1' action='' method='post' target='_black'>");
document.writeln("<tr>");
document.writeln("<td width='50' height='32'>用户名：</td>");
document.writeln("<td>");
document.writeln("<INPUT  value='mail' id='formtype' name='formtype' type='hidden'> ");
document.writeln("<INPUT id='Hidden1' value='chinadaja.com' name='domain' type='hidden'> ");
document.writeln("<INPUT id='Hidden2' value='1' name='language' type='hidden'>");
document.writeln("<input type='text' name='username' id='textfield' class='LoginInput'/></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height='32'>密　码：</td>");
document.writeln("<td><input type='password' maxLength=16 name='password' id='textfield2' class='LoginInput'/></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td colspan='2'><table width='170' border='0' cellspacing='0' cellpadding='0'>");
document.writeln("<tr>");
document.writeln("<td width='22' align='center'><input checked='checked' type='radio' name='checkform' id='checkform1' value='mail' onclick=\"changecheck(this.form,'mail')\" /></td>");
document.writeln("<td>登陆邮箱</td>");
document.writeln("<td width='22' align='center'><input type='radio' name='checkform' id='checkform2' value='bbs' onclick=\"changecheck(this.form,'bbs')\"/></td>");
document.writeln("<td width='56'>登陆论坛</td>");
document.writeln("</tr>");
document.writeln("</table></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height='38' colspan='2' align='center' valign='bottom'><input type='submit' value='登陆' name='Submit' id='button' class='LoginButton'/ onclick='Login(this.form);'></td>");
document.writeln("</tr>");
document.writeln("</FORM>");
document.writeln("</table>");

document.writeln("</div>");
document.writeln("<div id='Group'><a href='/html/about/'><img src='/images/Group.gif' alt='Hi！大家会 快乐-分享-生活 ' border=''/></a></div>");
document.writeln("<div class='LeftAll'><a href='/aspx/'><img src='/images/BookDownload.jpg' alt='最新电子楼书 - 点击进入下载' border=''/></a></div>");


var AlertInput = "请输入:\n";	
function Login(form){
	var mesg = "";
	if(form.username.value == "") mesg += "用户名不可为空\n";
	if(form.password.value == "") mesg += "密码不可为空\n";
	if(mesg != "")
	{
		mesg = AlertInput + mesg;
		alert(mesg);
		return false;
	}
	else
	{
	if(form.formtype.value == "mail")
	form.action = "http://mail.chinadaja.com/newwebmail/login.php?Cmd=login";
	else
	form.action = "/bbs/userlogin.aspx";
	}
}
function changecheck(form,checkobj){
form.formtype.value =checkobj;
	}
