function checkdl(frmobj,dltype)
{
var hyidstr,hymmstr,magtype;
if(dltype==1){
	magtype=frmobj.mag.options[frmobj.mag.selectedIndex].value;
	if(magtype=="1")
		{
			hyidstr="您没有输入邮箱用户名!";
			hymmstr="您没有输入邮箱密码!";		
		}
	else
		{
			hyidstr="您没有输入会员登录名！";
			hymmstr="您没有输入会员密码！";		
		}
}

	if(frmobj.username.value=="") 
		{
		 alert(hyidstr);
		 frmobj.username.focus();
		 return false;
		}
	if(frmobj.passwd.value=="") 
		{
		 alert(hymmstr);
		 frmobj.passwd.focus();
		 return false;
		}
	if(dltype==1){
		if(magtype=="1")
		{
			frmobj.username.value=frmobj.username.value;
			frmobj.password.value=frmobj.passwd.value;
			frmobj.action="http://mail.china315.com/cgi-bin/mailbox.cgi";
		}
	}
}
document.writeln("<table width=\"950\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("<FORM action=\"http:\/\/cn.china315.com\/login.doo\" method=post name=login1 onSubmit=\"return checkdl(this,1);\" target=\"_blank\">");
document.writeln("<tr><td height=\"3\"><\/td><\/tr>");
document.writeln("  <tr>");
document.writeln("    <td width=\"4\" height=\"31\"><img src=\"http:\/\/cxw.china315.com\/image\/topdh_bg_01.jpg\" width=\"4\" height=\"31\" \/><\/td>");
document.writeln("    <td background=\"http:\/\/cxw.china315.com\/image\/topdh_bg_02.jpg\"><table width=\"96%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"input_style\">");
document.writeln("      <tr>");
document.writeln("        <td width=\"63%\">登录名");
document.writeln("          <label>");
document.writeln("          <input name=username class=form-bg id=username size=10 maxlength=20 \/>");
document.writeln("          密 码");
document.writeln("          <input class=form-bg id=passwd maxlength=20  name=passwd size=10 type=password \/>");
document.writeln("        <select id=\"select2\" name=\"mag\">");
document.writeln("          <option selected=\"selected\" value=\"0\">会员登录<\/option>");
document.writeln("          <option value=\"1\">邮箱管理<\/option>");
document.writeln("        <\/select> ");
document.writeln("          <input type=\"image\" src=\"http:\/\/cxw.china315.com\/image\/denglu.jpg\" style=\"width:49px;height:19px\" \/>&nbsp;<a href=\"http:\/\/cxw.china315.com\/register.jsp\" target=\"_blank\">免费注册<\/a>  <a href=\"http:\/\/cxw.china315.com\/find_password.jsp\" target=\"_blank\">找回密码<\/a><\/label>");
document.writeln("          <input type=\"hidden\" name=\"logintype\" value=\"jsplogin\"><input name=\"password\" type=\"hidden\" maxlength=\"20\" \/> ");
document.writeln("      <input type=\"hidden\"  name=cmd value=\"new\" \/> <input type=\"hidden\" name=\"mail_domain\" value=\"china315.com\" \/><\/td>");
document.writeln("        <td width=\"14%\">&nbsp;<\/td>");
document.writeln("        <td width=\"23%\"><table width=\"261\" height=\"31\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\" class=\"daohang_fenlei\">");
document.writeln("          <tr>");
document.writeln("            <td><a href=\"http:\/\/cxw.china315.com\/315kuaiche.htm\" target=\"_blank\">315快车<\/a><\/td>");
document.writeln("            <td><a href=\"http:\/\/cxw.china315.com\/new_sortinfo.htm\" target=\"_blank\">分类信息<\/a><\/td>");
document.writeln("            <td><a href=\"http:\/\/info.china315.com\/\" target=\"_blank\">商业资讯<\/a><\/td>");
document.writeln("            <td><a href=\"http:\/\/club.china315.com\/\" target=\"_blank\">315社区<\/a><\/td>");
document.writeln("          <\/tr>");
document.writeln("        <\/table><\/td>");
document.writeln("        <\/tr>");
document.writeln("    <\/table><\/td>");
document.writeln("    <td width=\"4\" height=\"31\"><img src=\"http:\/\/cxw.china315.com\/image\/topdh_bg_03.jpg\" width=\"4\" height=\"31\" \/><\/td>");
document.writeln("  <\/tr><\/form>");
document.writeln("<\/table>")