function LoginEmail(email) { var emailType = new Array(new Array("@163.com", "http://mail.163.com/"), new Array("@126.com", "http://www.126.com/"), new Array("@qq.com", "http://mail.qq.com/cgi-bin/loginpage"), new Array("@vip.qq.com", "http://mail.qq.com/cgi-bin/loginpage"), new Array("@gmail.com", "https://mail.google.com/"), new Array("@yahoo.com", "http://mail.cn.yahoo.com/"), new Array("@hotmail.com", "http://www.hotmail.com/"), new Array("@sina.com", "http://mail.sina.com.cn/"), new Array("@sina.cn", "http://mail.sina.com.cn/"), new Array("@vip.sina.com", "http://mail.sina.com.cn/"), new Array("@my3ia.sina.com", "http://mail.sina.com.cn/"), new Array("@139.com", "http://mail.139.com/"), new Array("@tom.com", "http://mail.tom.com/"), new Array("@21cn.com", "http://mail.21cn.com/"), new Array("@sogou.com", "http://mail.sogou.com/"), new Array("@189.cn", "http://webmail5.189.cn/webmail/"), new Array("@yeah.net", "http://www.yeah.net/"), new Array("@sohu.com", "http://mail.sohu.com/"), new Array("@vip.sohu.com", "http://mail.sohu.com/"), new Array("@foxmail.com", "http://mail.qq.com/cgi-bin/loginpage")); var redirectUrl = "http://www.hao123.com"; if (emailType.length > 0) { for (var i = 0; i < emailType.length; i++) { if (email.indexOf(emailType[i][0]) > -1) { if (emailType.length) redirectUrl = emailType[i][1]; break; } } } if (redirectUrl != '') window.open(redirectUrl); }