﻿
//登录论坛
function hook()
{

   if(document.all("UserNameView").value=="")
    {
    alert("用户名不可为空");
    document.all("UserNameView").focus();
    return ;
    }
   if(document.all("PwdView").value=="")
    {
    alert("密码不可为空");
    document.all("PwdView").focus();
    return ;
    }
  
  
   parent.document.all("username").value=document.all("UserNameView").value;
    parent.document.all("pwd").value=document.all("PwdView").value;
    
   parent.document.all("BoardID").value=16  //成招处栏目
   
   parent.document.all("SubmitType").value="bbs"
   parent.document.forms['formSwitch'].submit();
}

//成招处切换公示公告&政策文件
  function ChangeShowContent(str)
  {

	if(str=="gsgg")
	{document.all("gsggColor").style.color="#800080";
	 document.all("zcwjColor").style.color="#000";}
	else {document.all("zcwjColor").style.color="#800080";
	      document.all("gsggColor").style.color="#000";}
	
	 var TabList = new Array("gsgg","zcwj");
	 Tab(TabList,str,1)
  }
  
  //成招处切换政务公开&相关法规
  function ChangeShowContent1(str)
  {
	  if(str=="zwgk")
	{document.all("zwgkColor").style.color="#800080";
	 document.all("xgfgColor").style.color="#000";}
	else {document.all("xgfgColor").style.color="#800080";
	      document.all("zwgkColor").style.color="#000";}
	 var TabList = new Array("zwgk","xgfg");
     Tab(TabList,str,1)
  }
  function Tab(TabList,str,pt)
{
if(pt==1)
{
    for( i=0;i<TabList.length;i++)
       {
         if(str==TabList[i])
            document.all(TabList[i]).style.visibility ="visible"; 
         else
            document.all(TabList[i]).style.visibility ="hidden";
       }
       
}
}

