var version = "other"
browserName = navigator.appName;   
browserVer = parseInt(navigator.appVersion);

if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Netscape" && browserVer < 3) version = "n2";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";

//***********显示时间*****************
function clock()
  {
crtdate=new Date();
crthours=crtdate.getHours();
crtminutes=crtdate.getMinutes();
crtSeconds=crtdate.getSeconds();

if (crthours >= 7 && crthours < 12)
  apm="上午";
else if (crthours >= 12 && crthours < 19)
  apm="下午";
else
  apm="晚上";

if (crthours >12 )
  crthours=crthours % 12;
if (crtminutes < 10)
  crtminutes="0"+crtminutes;
if (crtSeconds < 10)
 crtSeconds="0" + crtSeconds;

viewtime="现在是" + apm + crthours + "点" + crtminutes + "分" + crtSeconds + "秒";

esh.innerText=viewtime;

setTimeout("clock()",1000);

}

//********新闻的打开窗口***********
function OpenWin(url) {
  var newwin=window.open(url,"NewWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=620,height=510,top=20,left=100");
  newwin.focus();
  return false;
}


//********网上搜索**************
function startsearch()
{
	var sf = document.searchform;
	var skey = sf.searchText.value;

	url = new Array();

url[0]="http://search.sohu.com/cgi-bin/search_main.cgi?txt_keyword="+skey+"&page_index=0&catagory=main";
url[1]="http://cn.search.yahoo.com/search/cn?p="+skey;
	url[2]="http://search.sina.com.cn/cgi-bin/search/search.cgi?_ss=sina&_searchkey="+skey+"&_andor=and";
	
url[3]="http://www.yeah.net/cgi-bin/search/engine/search.fcgi?key="+skey;
url[4]="http://www.goyoyo.com.cn/gyy/search%20GB?query="+skey;	url[5]="http://search.263.net/cgi-bin/tsearch?p="+skey+"&func=0";
url[6]="http://search.tonghua.com.cn/search?p="+skey;
url[7]="http://www.cseek.com/cgi/srchengine.cgi?searchcgi=%2Fhomepage%2Fcgi%2F&all=yes&note=&searchkey="+skey+"&sortby=2";
	
	url[8]="http://search.yahoo.com/bin/search?p="+skey;
	url[9]="http://www.lycos.com/srch/?lpv=1&loc=searchhp&query="+skey;
url[10]="http://www.askjeeves.com/main/askjeeves.asp?ask="+skey+"&origin=&site_name=Jeeves&metasearch=yes";
	url[11]="http://www.ussc.alltheweb.com/cgi-bin/asearch?type=all&query="+skey;
url[7]="http://www.altavista.com/cgi-bin/query?pg=q&sc=on&hl=on&q="+skey+"&kl=zh&stype=stext";
	url[12]="http://www.google.com/search?q="+skey;
	url[13]="http://search.excite.com/search.gw?search="+skey;

	url[14]="http://www.download.com.cn/show.phtml?ss=Name&action=search&sk="+skey;
	url[15]="http://www.search.com/search?channel=1&tag=st.se.fd..sch&q="+skey;
	url[16]="http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/search.html?Utext="+skey;
	url[17]="http://www.winsite.com/bin/Search?q="+skey;

	if(skey == "")
	{
		alert("请输入搜索关键词!");
		sf.searchText.focus();
		return false;
	}
	window.open(url[sf.website.selectedIndex]);

}




