function News_Window(theURL,winName,features){window.open(theURL,winName,features);}
function setMovBtn(sId,nMax,nNow){
 if (sId=="hSiteCate") {
    var upstr = "将“网址分类”版块移动至“实用酷站”版块之上。";
    var downstr = "将“网址分类”版块移动至“实用酷站”版块之下。";
 } else {
    var upstr = "将“实用酷站”版块移动至“网址分类”版块之上。";
    var downstr = "将“实用酷站”版块移动至“网址分类”版块之下。";
 }

 if(nNow<=0) {
	 $("btn_"+sId).innerHTML="<a href=\"javascript:;\" target='_self' onclick=\"moveBox('"+sId+"',1);\" title='"+downstr+"'>下移↓</a>";
 } else {
	if (nNow>=nMax-1) {
	 $("btn_"+sId).innerHTML="<a href=\"javascript:;\" target='_self' onclick=\"moveBox('"+sId+"',-1);\" title='"+upstr+"'>上移↑</a>";
	} else {
	 $("btn_"+sId).innerHTML="<a href=\"javascript:;\" target='_self' onclick=\"moveBox('"+sId+"',-1);\" title='"+upstr+"'>上移↑</a>&nbsp;<a href=\"javascript:;\" target='_self' onclick=\"moveBox('"+sId+"',1);\" title='"+downstr+"'>下移↓</a>";
	}
 }
}

function check(i){
 if(i.MailBox.options.selectedIndex==0){
	 alert("提示：请正确选择你使用的邮箱");
	 return false;
 } else {
	  var expdate=new Date();
	  expdate.setTime(expdate.getTime()+(24*60*60*1000*30));
	  SetCookie("My265Mail",i.MailBox.value,expdate,"/","localhost:8080",false);
 }
 if(i.Username.value=="" || i.Username.value=="请在此输入您的用户名"){
	 alert("提示：邮箱用户名必须填写！");
	 i.Username.focus();
	 return false;
 }
 if(i.Password.value=="" || i.Password.value.length<3){
	 alert("提示：邮箱密码必须填写完整！");
	 i.Password.focus();
	 return false;
 }
var MailList = new Array(); 
MailList["26500"]=new Array("http://mail.265.com","login","passwd");
MailList["26501"]=new Array("http://reg.163.com/in.jsp?url=http://fm163.163.com/coremail/fcg/ntesdoor2?language=0&style=1","username","password");
MailList["26502"]=new Array("http://vip.163.com/logon.m","username","password","enterVip,true; style,");
MailList["26503"]=new Array("http://entry.126.com/cgi/login","user","pass","domain,126.com; language,0; bCookie,");
MailList["26504"]=new Array("http://mail.sina.com.cn/cgi-bin/login.cgi","u","psw","logintype,uid; product,mail");
MailList["26505"]=new Array("http://vip.sina.com.cn/cgi-bin/login.cgi","user","pass");
MailList["26506"]=new Array("http://passport.sohu.com/login.jsp","loginid","passwd","fl,1; vr,1|1; appid,1000; ru,http://login.mail.sohu.com/servlet/LoginServlet; eru,http://login.mail.sohu.com/login.jsp; ct,1173080990; sg,5082635c77272088ae7241ccdf7cf062","@sohu.com");
MailList["26507"]=new Array("http://passport.sohu.com/login.jsp","loginid","passwd","fl,1; vr,1|1; appid,1013; ru,http://vip.sohu.com/login/viplogin11.jsp; eru,; ct,1173857434; sg,885ebb7884194ee547f224fc8a6a5877","@vip.sohu.com");
MailList["26508"]=new Array("http://passport.21cn.com/maillogin.jsp","LoginName","passwd","NeedMoreSecurity,on; NeedIpCheck,on");
MailList["26509"]=new Array("http://g2wm.263.net/xmweb","usr","pass","domain,263.net; func,login");
MailList["26510"]=new Array("http://bjweb.163.net/cgi/163/login_pro.cgi","user","pass","type,0; style,10");
MailList["26511"]=new Array("http://mail.china.com//coremail/fcg/login","user","pass");
MailList["26512"]=new Array("http://reg.mail.188.com/servlet/coremail/login","user","pass","domain,188.com; language,0; style,-1");
MailList["26513"]=new Array("http://edit.bjs.yahoo.com/config/login","login","passwd",".intl,cn; .done,http://mail.yahoo.com");
MailList["26515"]=new Array("https://www.google.com/accounts/ServiceLoginAuth","Email","Passwd","continue,http://mail.google.com/mail?zy=l; service,mail; hl,zh-CN");
var iMail = i.MailBox.value;
var UserName = $("Username").value;
if (MailList[iMail] != null) {
    var cMail = MailList[iMail];
    i.action = cMail[0];
    $("Username").name = cMail[1];
    $("Password").name = cMail[2];
    if (cMail[3] != null) {
    	var aPairs = cMail[3].split("; ");
    	for (var j=0; j< aPairs.length; j++) {
    		var aPair = aPairs[j].split(",");
    		var el = document.createElement("INPUT");
    		el.type="hidden";
    		el.name=aPair[0];
    		el.value=aPair[1];
    		$("MailCheck").appendChild(el);
    	}
    }
    if (cMail[4] != null)
        $("Username").value = UserName + cMail[4];
} else {
 alert("请选择正确的邮箱！");
}
i.submit();
$("Username").value = UserName;
$("Password").value = "";
}

function initmed999Mail(){
	var sMail=GetCookie("My265Mail");
	if (sMail!="") {
		var oSel=$("MailBox");
		for (var i=0;i<oSel.length;i++){
		   if (oSel[i].value==sMail) {
			 oSel[i].selected=true;
			 return(false);
		   }
		}
	}
}

function CP(input){
 input.Password.value="";
}

function AddFav(sUrl, sTitle) {
  if ( window.sidebar && "object" == typeof( window.sidebar ) && "function" == typeof( window.sidebar.addPanel ) ) {
    window.sidebar.addPanel( sTitle, sUrl, '' );    
  } else if ( document.all && "object" == typeof( window.external ) ) {
    window.external.addFavorite( sUrl, sTitle );
  }
} 

function SyncQuery() {
 if (Engine=="VIDEO") {
  $("G2").value=$("Ka").value+"\ufeff";
  $("SoForm").acceptCharset="UTF-8";
 } else {
  $("SoForm").acceptCharset="UNKNOWN";
 }
}
function doSearch(){
	var key = "";
		key = encodeURIComponent(document.getElementById("key1").value);
		if(document.getElementById("checkboxGoogle").checked) {
			var url = "http://www.google.cn/search?hl=zh-CN&q=" + key;
			var winGoogle = window.open(url,"winGoogle");
		}
		if(document.getElementById("checkboxBaidu").checked) {
			var url = "http://www.baidu.com/s?ie=utf-8&wd=" + key;
			var winBaidu = window.open(url,"winBaidu");
		}
		if(document.getElementById("checkboxSelf").checked) {
			var url = "http://www.google.cn/search?complete=1&hl=zh-CN&newwindow=1&q=" + key +"+site%3Amed999.net&meta=";
			var winWeb = window.open(url,"winWeb");
		}
		if(document.getElementById("checkboxGoogleMap").checked) {
			var url = "http://ditu.google.cn/maps?hl=zh-CN&tab=wl&q="+key;
			var winMap = window.open(url,"winMap");
		}
		if(document.getElementById("checkboxGoogleScholar").checked) {
			var url = "http://scholar.google.com/scholar?q="+key;
			var winScholar = window.open(url,"winScholar");
		}
		if(document.getElementById("checkboxBaiduDic").checked) {
			var url = "http://www.baidu.com/baidu?ie=utf-8&bs=&sr=&z=&ct=1048576&cl=3&f=8&word=" + key;
			var winDic = window.open(url,"winDic");
		}
		if(document.getElementById("checkboxBaiduDoc").checked) {
			var url = "http://www.baidu.com/baidu?ie=utf-8&ft=all&q1="+key;
			var winDoc = window.open(url,"winDoc");
		}
		if(document.getElementById("checkboxMedWord").checked) {
			var url = "http://www.onelook.com/?w="+key+"&ls=b";
			var winMedWord = window.open(url,"winMedWord");
		}
		if(document.getElementById("checkboxWikipedia").checked) {
			var url = "http://www.encyclopedia.com/SearchResults.aspx?Q="+key;
			var winMedicine = window.open(url,"winMedicine");
		}
		if(document.getElementById("checkboxMesh").checked) {
			var url = "http://www.ncbi.nlm.nih.gov/sites/entrez?EntrezSystem2.PEntrez.DbConnector.Db=mesh&EntrezSystem2.PEntrez.DbConnector.TermToSearch="+key;
			var winMesh = window.open(url,"winMesh");
		}
		if(document.getElementById("checkboxCNKI").checked) {
			var url = "http://search.cnki.net/SearchResult.aspx?searchword="+key;
			var winCNKI = window.open(url,"winCNKI");
		}
		if(document.getElementById("checkboxPubMed").checked) {
			var url = "http://www.ncbi.nlm.nih.gov/sites/entrez?EntrezSystem2.PEntrez.DbConnector.Db=pubmed&EntrezSystem2.PEntrez.DbConnector.TermToSearch="+key;
			var winPubMed = window.open(url,"winPubMed");
		}
		if(document.getElementById("checkboxHighWire").checked) {
			var url = "http://highwire.stanford.edu/cgi/searchresults?andorexactfulltext=and&src=hw&searchsubmit=redo&resourcetype=1&search=Search&fulltext="+key;
			var winHighWire = window.open(url,"winHighWire");
		}
}

-->
