function deleteHandle(handle){var i=eval("window."+handle);window.clearTimeout(i);};function dropHandle(handle){var i=eval("window."+handle);window.clearInterval(i);};function changeEnterOn(arr,id,index,n){var i=eval("window."+index);with(document.getElementById(id)){src=eval("window."+arr+"["+parseInt(i)+"]");};eval("window."+index+"++");i++;if(i>parseInt(n))eval("window."+index+"=0");};function callChangeEnterOn(handle,arr,id,index,n,time){if(time==null||time=="0"||time==0)time=350;changeEnterOn(arr,id,index,n);eval("window."+handle+"="+window.setTimeout(function(){callChangeEnterOn(handle,arr,id,index,n,time);},time));};function doClickObj(id,tagName,arr,killStr,target,onColor,outColor){var i=0;while(i<document.getElementById(id).getElementsByTagName(tagName).length){if(killStr.indexOf(","+i+",",0)>-1){i++;continue;};var obj=document.getElementById(id).getElementsByTagName(tagName)[i];obj.onclick=new Function("window.open('"+arr[i]+"','"+target+"');");obj.onmouseover=function(){this.style.cursor="pointer";this.style.color=onColor;this.style.textDecoration="underline";};obj.onmouseout=function(){this.style.color=outColor;this.style.textDecoration="none";};i++;};};function changeBackgroundOfMenu(id,tagname,x,killStr,classOn,classOut){var i=0;var tn=document.getElementById(id).getElementsByTagName(tagname);while(i<tn.length){if(killStr.indexOf(","+i+",",0)>-1){i++;continue;};if(i==parseInt(x))tn[i].className=classOn;else tn[i].className=classOut;i++;};};function changeDisplayOfDiv(id,index,total){for(var i=1;i<=parseInt(total);i++){if(i==index)document.getElementById(id+i).style.display="";else document.getElementById(id+i).style.display="none";};};function __clearHandle(handle){for(var i=0;i<eval("window."+handle+".length");i++)eval(window.clearTimeout("window."+handle+"["+i+"]"));};function __setHandle(index,handle,id,current,total,time){if(time==null||time=="0"||time==0)time=16000;var c=eval("window."+current);if(c>eval("window."+handle+".length")||c<1){eval("window."+current+"=1");c=1;};changeDisplayOfDiv(id,c,total);eval("window."+current+"++");eval("window."+handle+"["+parseInt(index)+"]"+"="+window.setTimeout(function(){__setHandle(index,handle,id,current,total,time);},time));};function classNormal(id,sname,cur,on,out){var obj=document.getElementById(id).getElementsByTagName(sname);for(var i=0;i<obj.length;i++)if(i==parseInt(cur))obj[i].className=on;else obj[i].className=out;};


function play(id, arr, oid, osname, oon, oout, tid, tarr, zl) {	var parObj = document.getElementById(id);var obj = document.getElementById(oid);var temp = eval("window." + zl);if (browser()) {parObj.style.filter = "revealTrans(transition=" + Math.floor(Math.random() * 23) + ",duration=1)";parObj.filters[0].apply();parObj.innerHTML = arr[temp];parObj.filters[0].play();document.getElementById(tid).innerHTML = tarr[temp];classNormal(oid, osname, temp, oon, oout);temp += 1;if (temp >= arr.length) {temp = 0;}eval("window." + zl + "=" + temp);} else {parObj.innerHTML = arr[temp];document.getElementById(tid).innerHTML = tarr[temp];classNormal(oid, osname, temp, oon, oout);temp += 1;if (temp >= arr.length){temp = 0;}eval("window." + zl + "=" + temp);}};

function callPlay(id,arr,oid,osname,oon,oout,tid,tarr,zl,jb,time){if(time==null||time=="0"||time==0)time=4000;play(id,arr,oid,osname,oon,oout,tid,tarr,zl);eval("window."+jb+"="+window.setTimeout(function(){callPlay(id,arr,oid,osname,oon,oout,tid,tarr,zl,jb,time);},time));};

function returnEvent(oid,osname,id,arr,oon,oout,tid,tarr){var obj=document.getElementById(oid);var subObj=obj.getElementsByTagName(osname);var parObj=document.getElementById(id);for(var i=0;i<subObj.length;i++){with(subObj[i]){onclick=function(){if(browser()){parObj.style.filter="revealTrans(transition="+Math.floor(Math.random()*23)+",duration=1)";parObj.filters[0].apply();parObj.innerHTML=arr[arr.length-parseInt(this.innerHTML)];parObj.filters[0].play();}else{parObj.innerHTML=arr[arr.length-parseInt(this.innerHTML)];}classNormal(oid,osname,-1,oon,oout);this.className=oon;document.getElementById(tid).innerHTML=tarr[tarr.length-parseInt(this.innerHTML)];};}}};

function __scrollBack(id0,id1,id2,x){var id_0=document.getElementById(id0);var id_1=document.getElementById(id1);var id_2=document.getElementById(id2);var i=0;id_2.innerHTML=id_1.innerHTML;if(id_1.offsetWidth-id_0.scrollLeft<0)id_0.scrollLeft-=id_2.offsetWidth;else id_0.scrollLeft+=parseInt(x);};function __scrollForward(id0,id1,id2,x){var id_0=document.getElementById(id0);var id_1=document.getElementById(id1);var id_2=document.getElementById(id2);id_2.innerHTML=id_1.innerHTML;if(id_0.scrollLeft>0)id_0.scrollLeft-=parseInt(x);else id_0.scrollLeft+=id_1.offsetWidth;};function __callScrollBack(id0,id1,id2,x,handle,t){eval("window."+handle+"="+setInterval(function(){__scrollBack(id0,id1,id2,x);},t));};function switchContent(id1,id2){var str="";str=document.getElementById(id1).innerHTML;document.getElementById(id1).innerHTML=document.getElementById(id2).innerHTML;document.getElementById(id2).innerHTML=str;};

function setScrollUpDIV(id,v,w,h){with(document.getElementById(id)){style.width=w;style.height=h;style.overflowY="hidden";onmouseover=function(){eval("window."+v+"=true");};onmouseout=function(){eval("window."+v+"=false");};};};function scrollUp(id,copyid,v){var id_0=document.getElementById(id);var id_1=document.getElementById(copyid);id_1.innerHTML=id_0.innerHTML;if(eval("window."+v+"==true"))return;if(id_1.offsetHeight-id_0.scrollTop<=0||parseInt(id_1.style.height)-id_0.scrollTop<=0)id_0.scrollTop-=id_1.offsetHeight;else id_0.scrollTop++;};function callScrollUp(id,copyid,v,handle,time){eval("window."+handle+"="+window.setInterval(function(){scrollUp(id,copyid,v);},time));};

function setScrollLeftDIV(id,v,w,h){with(document.getElementById(id)){style.width=w;style.height=h;style.overflowY="hidden";onmouseover=function(){eval("window."+v+"=true");};onmouseout=function(){eval("window."+v+"=false");};};};
function scrollLeft(id,copyid,v){var id_0=document.getElementById(id);var id_1=document.getElementById(copyid);id_1.innerHTML=id_0.innerHTML;if(eval("window."+v+"==true"))return;if(id_1.offsetWidth-id_0.scrollLeft<=0||parseInt(id_1.style.width)-id_0.scrollLeft<=0){alert(id_1.offsetWidth);alert(id_0.scrollLeft);id_0.scrollLeft-=id_1.offsetWidth;}else{ alert(id_1.offsetWidth);alert(id_0.scrollLeft);id_0.scrollLeft++;}};function callScrollLeft(id,copyid,v,handle,time){eval("window."+handle+"="+window.setInterval(function(){scrollLeft(id,copyid,v);},time));};

function __scrollLeft(id0,id1,id2){var id_0=document.getElementById(id0);var id_1=document.getElementById(id1);var id_2=document.getElementById(id2);id_2.innerHTML=id_1.innerHTML;if(id_2.offsetWidth-id_0.scrollLeft<=0)id_0.scrollLeft-=id_1.offsetWidth;else id_0.scrollLeft+=3;};function __callScrollLeft(id0,id1,id2,handle,speed){eval("window."+handle+"="+window.setInterval(function(){__scrollLeft(id0,id1,id2);},speed));};

function creatURL(id,tagName,targetPage,conditionStr,target,onColor,outColor){creatUrlWithKillStr(id,tagName,",-1,",targetPage,conditionStr,target,onColor,outColor);};
function creatURL1(id,tagName,targetPage,conditionStr,target,onColor,outColor){var seleArray=new Array();var tn=document.getElementById(id).getElementsByTagName(tagName);for(i=0;i<tn.length;i++){if(tn[i].innerHTML.lastIndexOf("?��")!=-1){seleArray[i]=targetPage+conditionStr+"="+tn[i].innerHTML.slice(14);}else{seleArray[i]=targetPage+conditionStr+"="+tn[i].innerHTML;}};doClickObj(id,tagName,seleArray,",-1,",target,onColor,outColor);};function creatURL2(id,tagName,targetPage,conditionStr,target,onColor,outColor){var seleArray=new Array();var tn=document.getElementById(id).getElementsByTagName(tagName);for(i=0;i<tn.length;i++){seleArray[i]=targetPage+conditionStr;};doClickObj(id,tagName,seleArray,",-1,",target,onColor,outColor);};

function creatUrlWithKillStr(id,tagName,killStr,targetPage,conditionStr,target,onColor,outColor){var seleArray=new Array();var tn=document.getElementById(id).getElementsByTagName(tagName);for(i=0;i<tn.length;i++){seleArray[i]=targetPage+conditionStr+"="+tn[i].innerHTML;};doClickObj(id,tagName,seleArray,killStr,target,onColor,outColor);};

function browser() {var Sys = {};var ua = navigator.userAgent.toLowerCase();var s;(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] : (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] : (s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] : (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;if (Sys.ie) {return true;} else {return false;}};

function userLoginCheck(userName,userPwd)
{
	if(userName.value=="")
	{
		alert("�û�����Ϊ�գ�");
		userName.focus(); 
		return false;
	}else{
		if(userPwd.value=="")
		{
			alert("���벻��Ϊ�գ�");
			userPwd.focus();
			return false;
		}else{
			
			return true;
		}
	}
}

