function Win_Tag(a,b,c)
{
	for (i=0;i<b;i++)
	{	
		if (i!=c)
		{
			document.all[a][i].bgColor = "B8C8E8";
			document.all[a+"_nr"][i].style.display="none";
		}else{
			document.all[a][i].bgColor = "transparent";
			document.all[a+"_nr"][i].style.display="";
		}

	}
}
function CnlistOpenWin(url)
{
	 var _oA = document.createElement('a');  
	_oA.href = url;  
	_oA.target = '_blank';  
	_oA.style.display="none"
	document.body.appendChild(_oA);  
	_oA.click();   
}
function fnWinOpen(surl,sname,iWidth,iHeight)
{
  if(iWidth==null)
  {
	iWidth=820
  }
  if(iHeight==null)
  {
	iHeight=630
  }
  if(sname==null)
  {
	sname=""
  }
  window.open(surl,sname,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=20,left=60,width="+iWidth+",height="+iHeight);
}

function fnChangeIcon(obj){
	obj.innerHTML = "<img src='/images/link02.gif' width='12' height='12' >";
}
	
	function fnRestorIcon(obj){
	obj.innerHTML = "<img src='/images/link01.gif' width='12' height='12' >";
}
	function set_Fontsize(a)
	{
			set_FontsizeSingle(1,a)
	}
	function set_FontsizeSingle(index,a)
	{
    if(a==1){ 
     SpanContent.style.fontSize=eval(parseInt(SpanContent.style.fontSize)+2)+"px" 
     SpanContent.style.lineHeight=eval(parseInt(SpanContent.style.lineHeight)+4)+"px" 
    } 
   else{ 
	if(parseInt(SpanContent.style.fontSize)>=8)
	  {
        SpanContent.style.fontSize=eval(parseInt(SpanContent.style.fontSize)-2)+"px" 
        SpanContent.style.lineHeight=eval(parseInt(SpanContent.style.lineHeight)-4)+"px" 
	   }else{
         SpanContent.style.fontSize="6px" 
        SpanContent.style.lineHeight="14px" 
	   }
    }  
} 

function fnResetDel(regionsel)
{
	document.all.ddlParent.selectedIndex=regionsel	
}
function gfn_SelEmp()
{
	return window.showModalDialog('/Manage/Pubic_SelUser.aspx','dialogWidth=600px;dialogHeight=600px') 
}
function gfn_SelRole()
{
	return window.showModalDialog('/Manage/Public_SelRole.aspx','dialogWidth=500px;dialogHeight=450px') 
}
function fnGetSelID()
{
	var bSel=false
	if(Form1.selID)
	{
		if(Form1.selID.length)
		{
			for(i=0;i<Form1.selID.length;i++)
			{
				if(Form1.selID[i].checked)
				{
					bSel=true
					break;
				}
			}
		}
		else
		{
			if(Form1.selID.checked)
			{
				bSel=true
			}
		}
	}		
	return bSel
}
/*
设置论坛头像
*/
function fnResetFace(face)
{
	var i = document.getElementById("face").length	;
	for(var j = 0; j<=i ; j++)
	{
		if (document.getElementById("face").options[j].value == face)
		{
			document.getElementById("face").options[j].selected	= true ;
			document.images['img'].src=face	;
			document.getElementById("userface").value = face ;
			break	;
		}
	}
}
//隐藏提示窗口
function HideLayer(id)
{
        var obj = document.getElementById(id);
        obj.style.color = "black" ;
        obj.className = "info" ;
}
//显示提示窗口
function ShowLayer(id)
{
        var obj = document.getElementById(id);
        obj.className = "" ;
        obj.style.color = "#999999" ;  
}