//第六步,修改版主
function On_ChangeMaster()
{
//如果没有论坛被选中,则退出
if (frmManager.selForumName .selectedIndex == -1)
{
return 0 ;
}
if (frmManager.btnChangeMaster .value == "修改")
{
frmManager.btnChangeName .disabled = true ;
frmManager.btnDown .disabled = true ;
frmManager.btnUp .disabled = true ;
frmManager.btnModifyDescription .disabled = true ;
frmManager.btnAddForum .disabled = true ;
frmManager.btnDeleteForum .disabled = true ;
frmManager.btnSubmit .disabled =true ;
frmManager.selCategoryName .disabled = true ;
frmManager.selForumName .disabled = true ;
frmManager.selMaster .disabled = false ;
frmManager.btnChangeMaster.value = "确定" ;
return 0 ;
}
else
{
frmManager.btnChangeMaster.value = "修改" ;
frmManager.selCategoryName .disabled = false ;
frmManager.selForumName .disabled = false ;
frmManager.selMaster .disabled = true ;
frmManager.btnSubmit .disabled = false ;
var intForumIndex ;
for (var i = 0 ; i < aForum.length ; i ++)
{
if (frmManager.selForumName[frmManager.selForumName.selectedIndex].value == aForum[i].CategoryID )
&nbs