var lunarInfo=new Array(
0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,0x04ae0,0x0a5b6,0x0a4d0,0x0d250,0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977,0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60,0x09570,0x052f2,0x04970,0x06566,0x0d4a0,0x0ea50,0x06e95,0x05ad0,0x02b60,0x186e3,0x092e0,0x1c8d7,0x0c950,0x0d4a0,0x1d8a6,0x0b550,0x056a0,0x1a5b4,0x025d0,0x092d0,0x0d2b2,0x0a950,0x0b557,0x06ca0,0x0b550,0x15355,0x04da0,0x0a5d0,0x14573,0x052d0,0x0a9a8,0x0e950,0x06aa0,0x0aea6,0x0ab50,0x04b60,0x0aae4,0x0a570,0x05260,0x0f263,0x0d950,0x05b57,0x056a0,0x096d0,0x04dd5,0x04ad0,0x0a4d0,0x0d4d4,0x0d250,0x0d558,0x0b540,0x0b5a0,0x195a6,0x095b0,0x049b0,0x0a974,0x0a4b0,0x0b27a,0x06a50,0x06d40,0x0af46,0x0ab60,0x09570,0x04af5,0x04970,0x064b0,0x074a3,0x0ea50,0x06b58,0x055c0,0x0ab60,0x096d5,0x092e0,0x0c960,0x0d954,0x0d4a0,0x0da50,0x07552,0x056a0,0x0abb7,0x025d0,0x092d0,0x0cab5,0x0a950,0x0b4a0,0x0baa4,0x0ad50,0x055d9,0x04ba0,0x0a5b0,0x15176,0x052b0,0x0a930,0x07954,0x06aa0,0x0ad50,0x05b52,0x04b60,0x0a6e6,0x0a4e0,0x0d260,0x0ea65,0x0d530,0x05aa0,0x076a3,0x096d0,0x04bd7,0x04ad0,0x0a4d0,0x1d0b6,0x0d250,0x0d520,0x0dd45,0x0b5a0,0x056d0,0x055b2,0x049b0,0x0a577,0x0a4b0,0x0aa50,0x1b255,0x06d20,0x0ada0)
var Gan=new Array("甲","乙","丙","丁","戊","己","庚","辛","壬","癸")
var Zhi=new Array("子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥")
var cmStr = new Array('日','正','二','三','四','五','六','七','八','九','十','冬','腊')
var nStr1 = new Array('日','一','二','三','四','五','六','七','八','九','十')
var now;var SY;var SM;var SD
function cyclical(num) { return(Gan[num%10]+Zhi[num%12]) }
function lYearDays(y) {
var i, sum = 348
for(i=0x8000; i>0x8; i>>=1) sum += (lunarInfo[y-1900] & i)? 1: 0
return(sum+leapDays(y))}
function leapDays(y) {
   if(leapMonth(y))  return((lunarInfo[y-1900] & 0x10000)? 30: 29)
   else return(0)}
function leapMonth(y) { return(lunarInfo[y-1900] & 0xf)}
function monthDays(y,m) { return( (lunarInfo[y-1900] & (0x10000>>m))? 30: 29 )}
function Lunar(objDate) {
var i, leap=0, temp=0
var baseDate = new Date(1900,0,31)
var offset   = (objDate - baseDate)/86400000
this.dayCyl = offset + 40
this.monCyl = 14
for(i=1900; i<2050 && offset>0; i++) {
temp = lYearDays(i)
offset -= temp
this.monCyl += 12}
if(offset<0) {
offset += temp;
i--;
this.monCyl -= 12}
this.year = i
this.yearCyl = i-1864
leap = leapMonth(i)
this.isLeap = false
for(i=1; i<13 && offset>0; i++) {
if(leap>0 && i==(leap+1) && this.isLeap==false)
{ --i; this.isLeap = true; temp = leapDays(this.year); }
else
{ temp = monthDays(this.year, i); }
if(this.isLeap==true && i==(leap+1)) this.isLeap = false
offset -= temp
if(this.isLeap == false) this.monCyl ++}
if(offset==0 && leap>0 && i==leap+1)
if(this.isLeap)
{ this.isLeap = false; }
else
{ this.isLeap = true; --i; --this.monCyl;}
if(offset<0){ offset += temp; --i; --this.monCyl; }
this.month = i
this.day = offset + 1}
function YYMMDD() {    return('<font style="font-size:12px">'+SY+'年'+(SM+1)+'月'+SD+'日</font>')}
function weekday(){
    var cl = '<font style="font-size:12px"';
    if (now.getDay() == 0) cl += ' color=#0066ff';
    if (now.getDay() == 6) cl += ' color=#0066ff';
    return(cl+'>星期'+nStr1[now.getDay()]+'</font>');
}
function cDay(m,d){
var nStr2 = new Array('初','十','廿','卅','　');var s
s= cmStr[m]+'月'
switch (d) {
  case 10:s += '初十'; break;
  case 20:s += '二十'; break;
  case 30:s += '三十'; break;
  default:s += nStr2[Math.floor(d/10)]; s += nStr1[Math.round(d%10)];
}return(s)}
function solarDay(){
var sTermInfo = new Array(0,21208,42467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,397447,419210,440795,462224,483532,504758)
var solarTerm = new Array("小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至")
var lFtv = new Array("0101*春节","0115 元宵节","0505 端午节","0707 七夕","0715 中元节","0815 中秋节","0909 重阳节","1208 腊八节","1224 小年","0100*除夕")
var sFtv = new Array("0101*元旦","0214 情人节","0308 妇女节","0312 植树节","0401 愚人节","0501 劳动节","0504 青年节","0512 护士节","0601 儿童节","0615 父亲节","0701 中共诞辰","0801 建军节","0910 教师节","1001*国庆节","1031 万圣节","1108 记者日","1225 圣诞节")
  var sDObj = new Date(SY,SM,SD);
  var lDObj = new Lunar(sDObj);
  var lDPOS = new Array(3)
  var festival='',solarTerms='',solarFestival='',lunarFestival='',solarTerms='',tmp1,tmp2;

  for(i in lFtv)
  if(lFtv[i].match(/^(\d{2})(.{2})([\s\*])(.+)$/)) {
   tmp1=Number(RegExp.$1)-lDObj.month
   tmp2=Number(RegExp.$2)-lDObj.day
   if(tmp1==0 && tmp2==0) lunarFestival=RegExp.$4}
  if(lunarFestival=='') {
  for(i in sFtv)
  if(sFtv[i].match(/^(\d{2})(\d{2})([\s\*])(.+)$/)){
   tmp1=Number(RegExp.$1)-(SM+1)
   tmp2=Number(RegExp.$2)-SD
   if(tmp1==0 && tmp2==0) solarFestival = RegExp.$4}
  if(solarFestival =='') {
	  tmp1 = new Date((31556925974.7*(SY-1900)+sTermInfo[SM*2+1]*60000)+Date.UTC(1900,0,6,2,5))
  tmp2 = tmp1.getUTCDate()
  if (tmp2==SD) solarTerms = solarTerm[SM*2+1]
  tmp1 = new Date((31556925974.7*(SY-1900)+sTermInfo[SM*2]*60000)+Date.UTC(1900,0,6,2,5))
  tmp2= tmp1.getUTCDate()

  if (tmp2==SD) solarTerms = solarTerm[SM*2]
	if(solarTerms=='') sFtv='';else sFtv=solarTerms
  } else sFtv=solarFestival
  } else sFtv=lunarFestival
  if(sFtv=='')
	sTermInfo=cyclical(lDObj.year-1900+36)+'年 '+cDay(lDObj.month,lDObj.day)
  else sTermInfo=cDay(lDObj.month,lDObj.day)+' <font color=#0066ff>'+sFtv+'</font>'
  return(sTermInfo)
}
function CurentTime()
{var now = new Date();var hh = now.getHours();var mm = now.getMinutes();var ss = now.getTime() % 60000;
ss = (ss - (ss % 1000)) / 1000;
if(hh==0&&mm==0&&ss==0) showcal(1)
var clock = hh+':';
if (mm < 10) clock += '0';
clock += mm;return(clock)}
function refreshCalendarClock() {document.getElementById('ClockTime').innerHTML = CurentTime()}
function showcal(t) {
now = new Date();SY = now.getFullYear();SM = now.getMonth();SD = now.getDate();
var hh = now.getHours();var mm = now.getMinutes();var ss = now.getTime() % 60000;
ss = (ss - (ss % 1000)) / 1000;hh+=':'
if (mm < 10) hh+='0'
hh += mm
var str='<a href=/tools/calendar/ target=_blank>'+YYMMDD()+''+solarDay()+'&nbsp;'+weekday()+"&nbsp;<span id=ClockTime>"+hh+'</span></a>&nbsp;&nbsp;<a href="javascript:clock()" target=_self  title=设置闹钟>闹钟</a>'
if(t==1) document.getElementById('rili').innerHTML=str
else document.write(str)}
function clock() {window.open('/tools/alarm_clock/','time','left='+(screen.width-320)+',height=310,width=305,status=no,toolbar=no,menubar=no')}
function oBoard(n)
  {
    for(i=0;i<oTable.cells.length;i++)
      oTable.cells

[i].className="01";
    oTable.cells[n].className="02";
    for(i=0;i<sTable.tBodies.length;i++)
      sTable.tBodies

[i].style.display="none";
    sTable.tBodies

[n].style.display="block";
  }
//搜索引擎切换
function change_search(theForm){
  var strType = theForm.stype.value;
  var keyword = theForm.keyword.value;
  if(keyword==""){
    alert("请输入搜索关键字！");
	theForm.keyword.focus();
	return false;
  }
  switch(strType){
    case "001":
	 theForm.action = "/js_css/s.html?stype=001&keyword=" + keyword;
	  break;
	case "002":
	  theForm.action = "/js_css/s.html?stype=002&keyword=" + keyword;
	  break;
	case "003":
	  theForm.action = "/js_css/s.html?stype=003&keyword=" + keyword;
	  break;
	case "004":
	  theForm.action = "/js_css/s.html?stype=004&keyword=" + keyword;
	  break;
	case "005":
	  theForm.action = "/js_css/s.html?stype=005&keyword=" + keyword;
	  break;
	case "006":
	  theForm.action = "/js_css/s.html?stype=006&keyword=" + keyword;
	  break;
	case "007":
	  theForm.action = "/js_css/s.html?stype=007&keyword=" + keyword;
	  break;
	case "008":
	  theForm.action = "/js_css/s.html?stype=008&keyword=" + keyword;
	  break;
	case "009":
	  theForm.action = "/js_css/s.html?stype=009&keyword=" + keyword;
	  break;
	case "010":
	  theForm.action = "/js_css/s.html?stype=010&keyword=" + keyword;
	  break;
	case "011":
	  theForm.action = "/js_css/s.html?stype=011&keyword=" + keyword;
	  break;
	case "012":
	  theForm.action = "/js_css/s.html?stype=012&keyword=" + keyword;
	  break;
	case "013":
	  theForm.action = "/js_css/s.html?stype=013&keyword=" + keyword;
	  break;
	case "014":
	  theForm.action = "/js_css/s.html?stype=014&keyword=" + keyword;
	  break;
	case "015":
	  theForm.action = "/js_css/s.html?stype=015&keyword=" + keyword;
	  break;
	case "016":
	  theForm.action = "/js_css/s.html?stype=016&keyword=" + keyword;
	  break;
	case "017":
	  theForm.action = "/js_css/s.html?stype=017&keyword=" + keyword;
	  break;
	case "018":
	  theForm.action = "/js_css/s.html?stype=018&keyword=" + keyword;
	  break;
	case "019":
	  theForm.action = "/js_css/s.html?stype=019&keyword=" + keyword;
	  break;
	case "020":
	  theForm.action = "/js_css/s.html?stype=020&keyword=" + keyword;
	  break;
	case "021":
	  theForm.action = "/js_css/s.html?stype=021&keyword=" + keyword;
	  break;
	case "022":
	  theForm.action = "/js_css/s.html?stype=022&keyword=" + keyword;
	  break;
	case "023":
	  theForm.action = "/js_css/s.html?stype=023&keyword=" + keyword;
	  break;
	case "024":
	  theForm.action = "/js_css/s.html?stype=024&keyword=" + keyword;
	  break;
	case "025":
	  theForm.action = "/js_css/s.html?stype=025&keyword=" + keyword;
	  break;
	case "026":
	  theForm.action = "/js_css/s.html?stype=026&keyword=" + keyword;
	  break;
	case "027":
	  theForm.action = "/js_css/s.html?stype=027&keyword=" + keyword;
	  break;
	case "028":
	  theForm.action = "/js_css/s.html?stype=028&keyword=" + keyword;
	  break;
	case "029":
	  theForm.action = "/js_css/s.html?stype=029&keyword=" + keyword;
	  break;
	case "030":
	  theForm.action = "/js_css/s.html?stype=030&keyword=" + keyword;
	  break;
	case "031":
	  theForm.action = "/js_css/s.html?stype=031&keyword=" + keyword;
	  break;
	case "032":
	  theForm.action = "/js_css/s.html?stype=032&keyword=" + keyword;
	  break;
	case "033":
	  theForm.action = "/js_css/s.html?stype=033&keyword=" + keyword;
	  break;
	case "034":
	  theForm.action = "/js_css/s.html?stype=034&keyword=" + keyword;
	  break;
	case "035":
	  theForm.action = "/js_css/s.html?stype=035&keyword=" + keyword;
	  break;
	case "036":
	  theForm.action = "/js_css/s.html?stype=036&keyword=" + keyword;
	  break;
	case "037":
	  theForm.action = "/js_css/s.html?stype=037&keyword=" + keyword;
	  break;
	case "038":
	  theForm.action = "/js_css/s.html?stype=038&keyword=" + keyword;
	  break;
	case "039":
	  theForm.action = "/js_css/s.html?stype=039&keyword=" + keyword;
	  break;
	case "040":
	  theForm.action = "/js_css/s.html?stype=040&keyword=" + keyword;
	  break;
	case "041":
	  theForm.action = "/js_css/s.html?stype=041&keyword=" + keyword;
	  break;
	case "042":
	  theForm.action = "/js_css/s.html?stype=042&keyword=" + keyword;
	  break;
	case "043":
	  theForm.action = "/js_css/s.html?stype=043&keyword=" + keyword;
	  break;
	case "044":
	  theForm.action = "/js_css/s.html?stype=044&keyword=" + keyword;
	  break;
	case "045":
	  theForm.action = "/js_css/s.html?stype=045&keyword=" + keyword;
	  break;
	case "046":
	  theForm.action = "/js_css/s.html?stype=046&keyword=" + keyword;
	  break;
	case "047":
	  theForm.action = "/js_css/s.html?stype=047&keyword=" + keyword;
	  break;
	case "048":
	  theForm.action = "/js_css/s.html?stype=048&keyword=" + keyword;
	  break;
	case "049":
	  theForm.action = "/js_css/s.html?stype=049&keyword=" + keyword;
	  break;
	case "050":
	  theForm.action = "/js_css/s.html?stype=050&keyword=" + keyword;
	  break;
	case "051":
	  theForm.action = "/js_css/s.html?stype=051&keyword=" + keyword;
	  break;
	case "052":
	  theForm.action = "/js_css/s.html?stype=052&keyword=" + keyword;
	  break;
	case "053":
	  theForm.action = "/js_css/s.html?stype=053&keyword=" + keyword;
	  break;
	case "054":
	  theForm.action = "/js_css/s.html?stype=054&keyword=" + keyword;
	  break;
	case "055":
	  theForm.action = "/js_css/s.html?stype=055&keyword=" + keyword;
	  break;
	case "056":
	  theForm.action = "/js_css/s.html?stype=056&keyword=" + keyword;
	  break;
	case "057":
	  theForm.action = "/js_css/s.html?stype=057&keyword=" + keyword;
	  break;
	case "058":
	  theForm.action = "/js_css/s.html?stype=058&keyword=" + keyword;
	  break;
	case "059":
	  theForm.action = "/js_css/s.html?stype=059&keyword=" + keyword;
	  break;
	case "060":
	  theForm.action = "/js_css/s.html?stype=060&keyword=" + keyword;
	  break;
	case "061":
	  theForm.action = "/js_css/s.html?stype=061&keyword=" + keyword;
	  break;
	case "062":
	  theForm.action = "/js_css/s.html?stype=062&keyword=" + keyword;
	  break;
  }

}
function so()
{
   smf=fsdf.qsffa.value;
  if(!smf) 
  { alert("请输入搜索关键字!");
    return false;
  } 
	for(var i=0;i<23;i++)

	{if(fsdf.lr[i].checked)break;}

	var url;

	if(i==0)url="http://www.google.com/search?hl=zh-CN&ie=GB2312&q="+fsdf.qsffa.value;

	else if(i==1)url="http://www.baidu.com/s?tn=web01ku_pg&word="+fsdf.qsffa.value;

	else if(i==2)url="http://www.yahoo.com.cn/search?ei=gbk&fr=fp-tab-web-ycn&meta=zh-CN&pid=65958&p="+fsdf.qsffa.value;

	else if(i==3)url="http://p.zhongsou.com/p?k=j1qj&w="+fsdf.qsffa.value;

	else if(i==4)url="http://www.sogou.com/websearch/corp/search.jsp?cpc=SOGOU&pid=65958&query="+fsdf.qsffa.value;

	else if(i==5)url="http://www.yodao.com/search?keyfrom=web.top&q="+fsdf.qsffa.value;
	
	else if(i==6)url="http://www.soso.com/q?sc=web&ch=w.ptl&lr=chs&w="+fsdf.qsffa.value;
	
	else if(i==7)url="http://web.gougou.com/search?id=1&search="+fsdf.qsffa.value;
	
	else if(i==8)url="http://www.amazon.cn/mn/searchApp?source=eqifa|41127|1|&keywords="+fsdf.qsffa.value;
	
	else if(i==9)url="http://www.u8u.com/search/1.html?c=230&a=144289&b=0&d=0&e=&keywords="+fsdf.qsffa.value;

	else if(i==10)url="http://image.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=web01ku_pg&pv=&z=0&word="+fsdf.qsffa.value;

	else if(i==11)url="http://soft.gougou.com/search?restype=2&id=1&search="+fsdf.qsffa.value;

	else if(i==12)url="http://mp3.baidu.com/m?tn=web01ku_pg&ct=134217728&lm=-1&word="+fsdf.qsffa.value;

	else if(i==13)url="http://blogsearch.baidu.com/s?tn=baidublog&bsm=0&ct=2097152&cl=3&wd="+fsdf.qsffa.value;

	else if(i==14)url="http://search.daqi.com/cgi-bin/search?s_b=2&keyword="+fsdf.qsffa.value;

	else if(i==15)url="http://www.51ditu.com/maps?c=%C8%AB%B9%FA&wd="+fsdf.qsffa.value;

	else if(i==16)url="http://sosu.qidian.com/search.aspx?t=zh&k="+fsdf.qsffa.value;
	
	else if(i==17)url="http://www.iciba.com/search?s="+fsdf.qsffa.value;

	else if(i==18)url="http://weather.tq121.com.cn/detail.php?Input=%B2%E9%D1%AF%CC%EC%C6%F8&city="+fsdf.qsffa.value;

	else if(i==19)url="http://www.j1qj.com/tools/mobile/show.asp?mobile="+fsdf.qsffa.value;

	else if(i==20)url="http://movie.gougou.com/search?id=1036064&search="+fsdf.qsffa.value;

	else if(i==21)url="http://xh.5156edu.com/index.php?f_type=zi&f_key="+fsdf.qsffa.value

	else if(i==22)url="http://zhidao.baidu.com/q?ct=17&pn=0&tn=ikaslist&rn=10&word="+fsdf.qsffa.value

	else if(i==23)url="http://www.baidu.com/baidu?ft=all&q1="+fsdf.qsffa.value

	window.open(url);

	return false;}
//邮箱
function ci(n,v)
{
  var i=document.createElement("input");
  i.type="hidden";
  i.name=n;
  i.value=v;
  mailloginfrm.appendChild(i);
}
function wo(url,title)
{
r=Math.round(Math.random()*(32767-1))+1;
window.open(url,title+r);
}

function wck()
{
  mymaildomain=document.mailloginfrm.maildomain.value;
  var exp=new Date();
  exp.setTime(exp.getTime()+(3*365*24*60*60*1000));
  host=location.hostname;
  if(host.indexOf("dywz.com")>=0)
    document.cookie="mymaildomain="+mymaildomain+"; expires=" + exp.toGMTString() +  "; path=/; domain=.dywz.com";
  else
    document.cookie="mymaildomain="+mymaildomain+"; expires=" + exp.toGMTString() +  "; path=/; domain=.dywz.com";
}
function ReadCookie(CookieName) 
{
  var CookieString=document.cookie;
  var CookieSet=CookieString.split(';');
  var SetSize=CookieSet.length;
  var CookiePieces;
  var ReturnValue="";
  var x=0;

  for(x=0;((x<SetSize)&&(ReturnValue==""));x++)
  {
    CookiePieces=CookieSet[x].split('=');
    if(CookiePieces[0].substring(0,1)==' ')
    {
      CookiePieces[0]=CookiePieces[0].substring(1,CookiePieces[0].length);
    }
    if(CookiePieces[0]==CookieName)
    {
      ReturnValue=CookiePieces[1];
    }
  }
  return(ReturnValue);
}

function openwin()
{
frm=document.mailloginfrm;
s=frm.maildomain.options[frm.maildomain.selectedIndex].value;
r=Math.round(Math.random()*(32767-1))+1;

switch(s)
{

case "qq.com":
  wo("http://mail.qq.com/","qqmail"+r);
  break;
case "hotmail.com":
case "msn.com":
  fu=frm.u0.value;
  if(fu!="")
  {
    frm.action="https://login.passport.com/ppsecure/post.srf?lc=2052&id=2&tw=20&fs=1&cbid=24325&da=passport.com&kpp=2&svc=mail&msppjph=1";
    if(s=="hotmail.com") frm.domain.value="hotmail.com";
    else frm.domain.value="msn.com";
    frm.login.value=fu;
    frm.passwd.value=" ";
    frm.submit();
  }
  else
    wo("https://login.passport.com/ppsecure/post.srf?lc=2052&id=2&tw=20&fs=1&cbid=24325&da=passport.com&kpp=2&svc=mail&msppjph=1","hotmail"+r);
  break;
}  //switch end

} //funcion end

function checkmail(frm)
{
  fu=frm.u0.value;
  fp=frm.p0.value;
  fm=frm.maildomain.value;

  if(!fm) 
  { alert("请选择您的信箱!");
    return false;
  }  
  if(!fu&&fm!="qq.com"&&fm!="hotmail.com"&&fm!="msn.com")
  {
    alert("请输您的信箱用户名!");
    frm.u0.focus();
    return false;
  }
  if(!fp&&fm!="qq.com"&&fm!="hotmail.com"&&fm!="msn.com")
  {
    alert("请输您的信箱密码!");
    frm.p0.focus();
    return false;
  }
  
  document.mailloginfrm.p0.value="";

switch(fm)
{
case "126.com":
  frm.action="http://entry.126.com/cgi/login";
  frm.user.value=fu;
  frm.pass.value=fp;
  frm.domain.value="126.com";
  ci("language","0");
  ci("bCookie","");
  frm.submit();
  break;
case "163.com":
  frm.username.value=fu;
  frm.password.value=fp;
  ci("url","http://fm163.163.com/coremail/fcg/ntesdoor2?lightweight=1&verifycookie=1&language=-1&style=15");
  frm.action="http://reg.163.com/CheckUser.jsp";
  frm.submit();
  break;
case "188.com":
  frm.action="http://reg.mail.188.com/servlet/coremail/login?language=0&style=1"
  frm.user.value=fu;
  frm.pass.value=fp;
  frm.submit();
  break;
case "vip.163.com":
  frm.action="http://vip.163.com/logon.m"
  frm.username.value=fu;
  frm.password.value=fp;
  frm.style.value="";
  ci("enterVip","true");
  frm.submit();
  break;
case "sina.com":
  frm.action="http://mail.sina.com.cn/cgi-bin/login.cgi";
  ci("product","mail");
  ci("u",fu);
  ci("psw",fp);
  frm.submit();
  break;
case "vip.sina.com":
  frm.action="http://vip.sina.com.cn/cgi-bin/login.cgi";
  ci("domainid","0");
  frm.user.value=fu;
  frm.pass.value=fp;
  frm.submit();
  break;
case "sina.cn":
  frm.action="http://vip.sina.com.cn/cgi-bin/login.cgi";
  ci("domainid","2");
  frm.user.value=fu;
  frm.pass.value=fp;
  frm.submit();
  break;
case "my3ia.sina.com":
  frm.action="http://my3ia.sina.com/cgi-bin/login.cgi";
  frm.user.value=fu;
  frm.pass.value=fp;
  frm.submit();
  break;

case "sohu.com":
  frm.action="http://passport.sohu.com/login.jsp";
  frm.loginid.value=fu+"@sohu.com";
  frm.passwd.value=fp;
  ci("fl","1");
  ci("vr","1|1");
  ci("appid","1000");
  ci("ru","http://login.mail.sohu.com/servlet/LoginServlet");
  ci("eru","http://login.mail.sohu.com/login.jsp");
  ci("ct","1173080990");
  ci("sg","5082635c77272088ae7241ccdf7cf062");
  frm.submit();
  break;
case "vip.sohu.com":
  frm.action="http://passport.sohu.com/login.jsp";
  frm.loginid.value=fu+"@vip.sohu.com";
  frm.passwd.value=fp;
  ci("appid","1013");
  ci("ru","http://vip.sohu.com/login/viplogin11.jsp");
  ci("fl","1");
  ci("ct","1173857434");
  ci("vr","1|1");
  ci("eru","");
  ci("sg","885ebb7884194ee547f224fc8a6a5877");
  frm.submit();
  break;
case "tom.com":
  frm.action="http://bjweb.mail.tom.com/cgi/163/login_pro.cgi";
  ci("type","0");
  frm.style.value="10";
  frm.user.value=fu;
  frm.pass.value=fp;
  frm.submit();
  break;
case "263.net":
  //frm.action="http://g2wm.263.net/xmweb"; //旧版
  frm.action="http://mailbeta.263.net/xmweb"; //新版
  ci("func","login");
  frm.domain.value="263.net";
  frm.style.value="3";
  ci("usr",fu);
  frm.pass.value=fp;
  frm.submit();
  break;
case "yeah.net":
  frm.action="http://entry.yeah.net/cgi/login";
  ci("bCookie","");
  frm.domain.value="yeah.net";
  ci("selDomain","yeah.net");
  frm.user.value=fu;
  frm.pass.value=fp;
  frm.submit();
  break;

case "yahoo.com.cn":
  frm.action="http://edit.bjs.yahoo.com/config/login";
  ci(".intl","cn");
  ci(".done","http://cn.mail.yahoo.com/inset.html?rr=1052410730");
  ci(".src","ym");
  ci(".challenge","L_0chpoQQ8dfC772VU3DiFdWHTWg");
  frm.login.value=fu+"@yahoo.com.cn";
  frm.passwd.value=fp;
  frm.submit();
  break;

case "yahoo.cn":
  frm.action="http://edit.bjs.yahoo.com/config/login";
  ci(".intl","cn");
  ci(".done","http://cn.mail.yahoo.com/inset.html?rr=1052410730");
  ci(".src","ym");
  ci(".challenge","L_0chpoQQ8dfC772VU3DiFdWHTWg");
  frm.login.value=fu+"@yahoo.cn";
  frm.passwd.value=fp;
  frm.submit();
  break;

case "citiz.net":
  frm.action="http://mail.citiz.net/default/login_billing.jsp";
  frm.username.value=fu;
  frm.password.value=fp;
  frm.submit();
  break;
case "mail.china.com":
  frm.action="http://freemail.china.com/extend/gb/NULL/NULL/NULL/SignIn.gen";
  frm.LoginName.value=fu;
  frm.passwd.value=fp;
  frm.submit();
  break;
case "china.com":
  frm.action="http://mail.china.com/coremail/fcg/login";
  frm.user.value=fu;
  frm.pass.value=fp;
  frm.submit();
  break;

case "21cn.com":
  frm.action="http://passport.21cn.com/maillogin.jsp";
  frm.LoginName.value=fu;
  frm.passwd.value=fp;
  ci("domainname","21cn.com");
  frm.UserName.value=fu+'@21cn.com';
  frm.submit();
  break;

case "21cn.net":
  //frm.action="http://webmail.21cn.net/nature/gb/NULL/NULL/NULL/SignIn.gen";
  //ci("NeedIPCheck3","on");
  //ci("NeedMoreSecurity3","ON");
  //frm.LoginName.value=fu;
  //frm.passwd.value=fp;
  //frm.submit();
  //break;
  
  frm.action="http://passport.21cn.com/maillogin.jsp";
  frm.LoginName.value=fu+'@21cn.net';
  frm.passwd.value=fp;
  ci("DomainName","21cn.net");
  ci("Template","uudenyong");
  frm.UserName.value=fu+'@21cn.net';
  frm.submit();
  break;
  
  
case "xinhuanet.com":
  frm.action="http://mail.xinhuanet.com/login.jsp";
  ci("domainname","xinhuanet.com");
  frm.username.value=fu;
  frm.password.value=fp;
  frm.submit();
  break;      

case "eyou.com":
  frm.action="http://www.eyou.com/cgi-bin/login";
  frm.LoginName.value=fu;
  ci("Password",fp);
  frm.submit();
  break;

case "gmail.com":
  frm.action="https://www.google.com/accounts/ServiceLoginAuth";
  ci("continue","http://gmail.google.com/gmail?ui=html&zy=l");
  ci("rm","false");
  ci("passive","true");
  ci("Email",fu);
  ci("Passwd",fp);
  //ci("PersistentCookie","yes");
  frm.submit();
  break;

case "hotmail.com":
case "msn.com":
  frm.action="https://login.passport.com/ppsecure/post.srf?lc=2052&id=2&tw=20&fs=1&cbid=24325&da=passport.com&kpp=2&svc=mail&msppjph=1";
  if(s=="hotmail.com") frm.domain.value="hotmail.com";
  else frm.domain.value="msn.com";
  frm.login.value=fu;
  frm.passwd.value=" ";
  frm.submit();
  break;
case "qq.com":
  wo("http://mail.qq.com/","qqmail"+r);
  break;

}

if(fm!="hotmail.com"&&fm!="msn.com"&&fm!="qq.com")
{ wck(); }
return false;
}

