/****************************************************
'过程名：SelectIterm
'作  用：全选，反选，取消
'参  数：无
'****************************************************/
function   SelectIterm(form,sign){  

for(var   i=0;i<form.elements.length;i++){  

   if(form.elements[i].type=='checkbox'){  
  var   e=form.elements[i]  
  if(sign==0)   e.checked=true; 
  if(sign==1)   e.checked=!e.checked; 
  if(sign==2)   e.checked=false; 
    }
	if (e.checked)  e.parentNode.parentNode.style.background = "#FFFFE1";
	if (!e.checked) e.parentNode.parentNode.style.background = "#FFFFFF";
}
}
/****************************************************
'过程名：OpenWin
'作  用：弹出窗口
'参  数：无
'****************************************************/
function OpenWin(file,w,h,r,s){
    window.open(file,'','width='+w+',height='+h+",resizable="+r+',scrollbars='+s+',left='+(screen.availWidth-w)/2+',top='+(screen.availHeight-h)/2);
}

/****************************************************
'过程名：sureDel
'作  用：单条信息删除
'参  数：无
'****************************************************/
function sureDel(NewsID) 

{ 
if(confirm("删除后此条信息将无法恢复，您确定要删除吗？")) 
{ 
//选择确定 
window.location.href="?NewsID="+NewsID+"&Action=Del"; 
} 
//else不做任何事 
} 

/****************************************************
'过程名：sureDel
'作  用：控制左侧菜单栏目 打开/关闭
'参  数：无
'****************************************************/
win = "on";
function switchSysBar() {
	if (win == "on") {
		win = "off";
		switchPoint.src = "images/open.gif";
		document.all("leftFrm").style.display = "none";
	} else {
		win = "on";
		switchPoint.src = "images/close.gif";
		document.all("leftFrm").style.display = "";
	}
}
/*显示认证码 o start1*/
function GetCodeComtz() {
	var Vote_CodeFile = "inc/GetCodeComtz.asp";
	if(document.getElementById("imgid"))
		document.getElementById("imgid").innerHTML = '<img src="'+Vote_CodeFile+'?t='+Math.random()+'" alt="点击刷新验证码" style="cursor:pointer;border:0;vertical-align:middle;" onclick="this.src=\''+Vote_CodeFile+'?t=\'+Math.random()" /> 点击图片刷新验证码'
}
/*o end*/

