<!--
var RootName = "orient";
function ShowList(ObjName,ImgObj,CloseV,OpenV){
	var DivObj = document.getElementById(ObjName);
	var DivObjEX = document.getElementById(ImgObj);
	if (DivObj){
		if (DivObj.style.display=='none'){
			SetCookie(ObjName,1);
			DivObjEX.src=OpenV;
			DivObj.style.display='';
		}else{
			SetCookie(ObjName,0);
			DivObjEX.src=CloseV;
			DivObj.style.display='none';
		}
	}
}
function Content(size){
	document.getElementById('Content').style.fontSize=size+'px'
}
function openwin(url,winName,width,height,scrolls){
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 )){
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	theproperty="width="+width+",height="+height+",fullscreen=0,location=0,menubar=0,resizable=1,scrollbars="+scrolls+",status=0,titlebar=0,toolbar=0,hotkeys=0,screenx="+xposition+",screeny="+yposition+",left="+xposition+",top="+yposition;
	window.open(url,winName,theproperty);
}
//显示栏目
function showsubmenu(sid){
	whichEl = eval("submenu" + sid);
	if (whichEl.style.display == "none"){
		eval("submenu" + sid + ".style.display=\"\";");
	}
	else{
		eval("submenu" + sid + ".style.display=\"none\";");
	}
}
//改变行背景颜色
function exchange(obj,txts,act){
	if(obj.checked==true) document.all[txts].style.backgroundColor = '#888888';
	else document.all[txts].style.backgroundColor = '';
	if(document.all.exa.value=='') document.all.exa.value=act;
	else{
		if(document.all.exa.value==act) document.all.exa.value='';
		else document.all.exb.value=act;
	}
}
//选择全部
function selectall(objname,act){
	if(objname==null) alert("对不起，当前没有记录可选择！");
	else if(objname.length==null) objname.checked=act;
	else{
		var n=objname.length;
		for (i=0;i<n;i++) objname[i].checked=act;
	}
}
//批量赋值
function bq(objname,txt){
	if(objname==null) alert("对不起，当前没有记录可赋值！");
	else if(objname.length==null) objname.value=txt;
	else{
		var n=objname.length;
		for (i=0;i<n;i++) objname[i].value=txt;
	}
}
//改变多文件本框高度
function sizeChangeh(obj,size){
	var height = parseInt(obj.style.height);
	if (height+size>=50){
		obj.style.height=height+size;
	}
}
//改变多文件本框宽度
function sizeChangew(obj,size){
	var width = parseInt(obj.style.width);
	if (width+size>=50){
		obj.style.width=width+size;
	}
}
//
function high(which2){
	theobject=which2
	highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
	clearInterval(highlighting)
	which2.filters.alpha.opacity=70
}

function highlightit(cur2){
	if (cur2.filters.alpha.opacity < 100)
		cur2.filters.alpha.opacity += 8
	else if (window.highlighting)
		clearInterval(highlighting)
}
function changeamount(index){
	var mytr = document.getElementById("txt"+index);
	var mycheckbox = document.getElementById(index);
	var mytext = document.getElementById("text"+index);
	if(mycheckbox.checked == true){
		mytext.disabled = false;
		if(mytext.value == "0" || mytext.value == ""){
			mytext.value = "1";
		}
		mytr.style.backgroundColor = '#EEEEEE';
	}
	else{
		mytr.style.backgroundColor = '';
	}

	if(mycheckbox.checked == false){
		mytext.disabled = true;
	}
}
function GetCookie (name) {  
	var arg = RootName + name + "=";  
	var alen = arg.length;  
	var clen = window.document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
		var j = i + alen;    
		if (window.document.cookie.substring(i, j) == arg)	return getCookieVal (j);    
		i = window.document.cookie.indexOf(" ", i) + 1;    
		if (i == 0) break;   
	}  
	return null;
}
function getCookieVal (offset) {  
	var endstr = window.document.cookie.indexOf (";", offset);  
	if (endstr == -1) endstr = window.document.cookie.length;  
	return unescape(window.document.cookie.substring(offset, endstr));
}
function SetCookie (name, value) {  
	var exp = new Date();  
	exp.setTime(exp.getTime() + (30*24*60*60*1000));
	window.document.cookie = RootName + name + "=" + escape (value) + "; expires=" + exp.toGMTString()+";path=/";
}
function DeleteCookie (name) {  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	var cval = GetCookie (RootName + name);  
	window.document.cookie = RootName + name + "=" + cval + "; expires=" + exp.toGMTString()+";path=/";
}
//-->
