<!--
//显示时间
function showtime()
{
var now;
var year, month, date, hour, minute, second
now = new Date(); //创建一个新的日期对象 now 
//获取时间信息
year = now.getYear();
month = now.getMonth() + 1;
date = now.getDate();
time.innerHTML = "今天是 " + year + " 年 " + month + " 月 " + date //显示时间
setTimeout("showtime()", 100); //设定函数自动执行时间为 1000 ms(1 s)
}

//eMail 邮件登陆系统
function check(input){
if(input.mailSelect.options.selectedIndex==0){
alert("提示：请正确选择你使用的邮箱");
return false;}
if(input.name.value==""){
alert("提示：邮箱用户名必须填写！");
input.name.focus();
return false;}
if(input.password.value=="" || input.password.value.length<3){
alert("提示：邮箱密码必须填写完整！");
input.password.focus();
return false;}
else{ClearPass();
go();
return false;}}

function makeURL(){   
var objForm=document.mailForm;   
var intIndex=objForm.mailSelect.options.selectedIndex;   
var varInfo=objForm.mailSelect.options[intIndex].value;    /*获取的表单中邮件服务器及用户账号和密码信息*/   
var arrayInfo=varInfo.split(';');    /*将以上获取的信息进行分割，并赋给数组变量*/   
var strName=objForm.name.value,varPasswd=objForm.password.value;   
var length=arrayInfo.length,strProvider=arrayInfo[0],strIdName=arrayInfo[1],varPassName=arrayInfo[2];   
if(length==3){   
var strUrl=strProvider+'?'+strIdName+'='+strName+'&'+varPassName+'='+varPasswd;    /*合并字符串，得到形如“http://mail.sina.com.cn/cgi-bin/log...”的字符串型URL*/   
}
else{
if(arrayInfo[3]=='suffix') strName+='@'+arrayInfo[4]
var strUrl='<form name="tmpForm" action="'+strProvider+'" method="post"><input type="hidden" name="'+strIdName+'" value="'+strName+'"><input type="hidden" name="'+varPassName+'" value="'+varPasswd+'">';   
if(arrayInfo[3]=='hidden') strUrl+='<input type="hidden" name="'+arrayInfo[4]+'" value="'+arrayInfo[5]+'">'
strUrl+='</form>';   
}
return strUrl; 
}

function go(){   
var strLocation=makeURL();   
if(strLocation.indexOf('<form name="tmpForm"')!=-1){/*对于只能用“post”来获取表单数据的邮箱使用自动提交的临时表单*/   
outWin=window.open('','','scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');   
doc=outWin.document;   
doc.open('text/html');   
doc.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>邮箱登录</title></head><body onload="document.tmpForm.submit()">');   
doc.write('<p align="center" style="font-size: 14px; color: #FF0000">ip363.com电子邮件登录系统，请稍候......</p>'+strLocation+'</body></html>');   
doc.close();  
 
}
else window.open(strLocation,'','scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');   
}

function ClearPass(){
document.mailForm.password.value="";
}

function News_Window(theURL,winName,features) {
window.open(theURL,winName,features);
}
//百度MP3搜索
function syn(form){
if (form.lm[7].checked){
 form.tn.value="baidump3ring";
 form.ct.value="285212672";
 form.rn.value="";
 form.action="http://mp3.baidu.com/m"
 } else { 
 if(form.lm[0].checked){
 form.rn.value="10";
 form.tn.value="baidump3lyric";
 form.ct.value="150994944";
 form.action="http://mp3.baidu.com/m"
 }else {
 if(form.lm[8].checked){
 form.tn.value="baidump3cal";
 form.ct.value="134217728";
 form.rn.value="";
 form.action="http://calling.baidu.com/m"
 }
 else {
 form.tn.value="baidump3";
 form.ct.value="134217728";
 form.rn.value="";
 form.action="http://mp3.baidu.com/m"
 }}}}
function sf(){document.f1.word.focus();}
function h(obj,url){obj.style.behavior='url(#default#homepage)';obj.setHomePage(url);}

//VeryCD搜索
function doSearch(o) {
    o.method = "post";
	
    o.action = "http://search.verycd.com/search";
    location.href = "http://search.verycd.com/query/" + encodeURI(o.q.value).replace(/\+/g,"%2B").replace(/(%20)+/, "+") + "/";
    return false;
}

function iask(f){if(f.k.value==""||f.k.value=="请输入查询词"){f.k.value="请输入查询词";f.k.focus();return false;}f.action="http://iask.com/s";f.submit();}

function ask(f) {if(f.k.value==""||f.k.value=="请输入查询词"){window.location.href="http://iask.sina.com.cn/";}else{window.location.href="http://iask.sina.com.cn/question/ask_new_2.php?title="+f.k.value;}}
function g(URL) {window.location.href=URL;}


//-->