function check(input){
if(input.mailSelect.options.selectedIndex==0){
alert("提示：请正确选择你使用的邮箱");
return false;}
if(input.name.value==""){
alert("提示：邮箱用户名必须填写！");
input.name.focus();
return false;}
if(input.password.value=="" || input.password.value.length<3){
alert("提示：邮箱密码必须填写完整！");
input.password.focus();
return false;}
else{go();return false;}}
function makeURL(){
var objForm=dm.mailForm;
var intIndex=objForm.mailSelect.options.selectedIndex;
var varInfo=objForm.mailSelect.options[intIndex].value; 
var arrayInfo=varInfo.split(';'); 
var strName=objForm.name.value,varPasswd=objForm.password.value;
var length=arrayInfo.length,strProvider=arrayInfo[0],strIdName=arrayInfo[1],varPassName=arrayInfo[2];
if(length==3){
var strUrl=strProvider+'?'+strIdName+'='+strName+'&'+varPassName+'='+varPasswd; 
}
else{
if(arrayInfo[3]=='suffix') strName+='@'+arrayInfo[4]
var strUrl='<form name="tmpForm" action="'+strProvider+'" method="post"><input type="hidden" name="'+strIdName+'" value="'+strName+'"><input type="hidden" name="'+varPassName+'" value="'+varPasswd+'">';
if(arrayInfo[3]=='hidden') strUrl+='<input type="hidden" name="'+arrayInfo[4]+'" value="'+arrayInfo[5]+'">'
strUrl+='</form>';
}
return strUrl;
}
function go(){
var strLocation=makeURL();
if(strLocation.indexOf('<form name="tmpForm"')!=-1){
outWin=wd.open('','','scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');
doc=outWin.document;
doc.open('text/html');
doc.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>好东西网址天下 邮箱登录</title></head><body onload="document.tmpForm.submit()">');
doc.write('<p align="center" style="font-size: 14px; color: #FF0000">欢迎使用HaoDX.com好东西电子邮局快速登录系统，请稍候......</p>'+strLocation+'</body></html>');
doc.close();
}
else wd.open(strLocation,'','scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');
}
function ClearPass(){
dm.mailForm.password.value="";
}
function News_Window(theURL,winName,features) {
wd.open(theURL,winName,features);
}
dw("<table border=0 width=100% cellspacing=0 cellpadding=2 bgcolor=#FFF9EE height=34 style='border-bottom: 1 solid #C0C0C0'><tr><form  method=post name=mailForm onsubmit='return check(this)'><td align=center><select name=mailSelect  size=1> <option selected>请选择你的邮局</option> <option  value=http://mail.sina.com.cn/cgi-bin/login.cgi;u;psw>新浪sina.com</option> <option  value=http://vip.sina.com/cgi-bin/login.cgi;user;pass>vip.sina.com</option> <option  value=http://bjweb.163.net/cgi/163/login_pro.cgi;user;pass>163.net</option> <option  value=http://bjweb.163.net/cgi/163/login_pro.cgi;user;pass>Tom.com</option> <option  value=http://webmail.21cn.com/NULL/NULL/NULL/NULL/NULL/SignIn.gen;LoginName;passwd;post>21cn.com</option> <option  value=http://webmail.21cn.net/nature/gb/NULL/NULL/NULL/SignIn.gen;LoginName;passwd;hidden;DomainN ame;21cn.net>21cn.net</option> <option  value=http://freemail.263.net/cgi/login;user;pass>263.net</option> <option  value=http://reg4.163.com/in.jsp?url=http://reg4.163.com/EnterEmail.jsp?username=wd.dm. mailForm.name.value;username;password;post>网易163.com</option> <option  value=http://vip.163.com/payment/VipLogon.jsp;username;password;post>vip.163.com</option> <option  value=http://web.netease.com/cgi/login;user;pass;post>netease.com</option> <option  value=http://web.yeah.net/cgi/login;user;pass;post>网易Yeah.net</option> <option  value=http://freemail.china.com/extend/gb/NULL/NULL/NULL/SignIn.gen;LoginName;passwd;post>china.com</option> <option  value=http://paymail.china.com/extend/gb/NULL/NULL/NULL/SignIn.gen;LoginName;passwd;post>China-信天邮</option> <option  value=http://login.mail.sohu.com/chkpwd.php;UserName;Password;post>搜狐sohu.com</option> <option  value=http://www.citiz.net/login.jsp.jsp;username;password;post>citiz.net</option> <option  value=http://login.chinaren.com/zhs/servlet/Login;username;password;post;hidden;url;http:/mail.ch inaren.com>ChinaRen.com</option> <option  value=http://mw1.elong.com/cgi-bin/weblogon.cgi;username;password;post>e龙elong.com</option>  <option  value=http://login.etang.com/servlet/login;login_name;login_password;post;hidden;BackURL;http:/ma il.etang.com/cgi/door>亿唐etang.com</option> <option  value=http://mail.fm365.com/cgi-bin/legend/wmaila;username;password;post>FM365.com</option>  <option value=http://edit.bjs.yahoo.com/config/login;login;passwd;post>中文雅虎</option> <option  value=http://mail.2911.net/cgi-bin/mail/main.pl;USERNAME;PASSWORD;post>2911中文邮局</option>  <option  value=http://202.106.186.230/extend/newgb1/NULL/NULL/NULL/SignIn.gen;LoginName;passwd;post;hidden ;DomainName;email.com.cn>email.com.cn</option> <option  value=https://login.passport.com/ppsecure/post.srf?da=passport.com&svc=mail;login;passwd;suffix;h otmail.com>hotmail.com</option> <option  value=https://login.passport.com/ppsecure/post.srf?da=passport.com&svc=mail;login;passwd;suffix;m sn.com>msn.com</option></select><input type=submit value=登录 class=so  onclick=eo style=background-color:#FFD700></td></tr><tr><td  align=center>用 户 名： <input name=name onfocus=this.select size=12></td></tr><tr><td  align=center>登录密码： <input name=password onfocus=this.select type=password  size=12></td></tr></form></table>");     
function eo(){setTimeout('ClearPass()',1000);}