function adminOperate(obj) { var action = obj.options[obj.selectedIndex].value; if (action == '') { obj.options[0].selected = true; return; } var f = document.forms['admin']; var idList = ''; for (i=f.elements.length; i>0; i--) { if (f.elements[i-1].type.toLowerCase() == "checkbox") { if (f.elements[i-1].checked) { idList += f.elements[i-1].value.toString() + ","; } } } if (action == 'check') { location.href = 'accesstopic.aspx'; return ; } if (idList == '') { alert('没有选择任何记录行'); obj.options[0].selected = true; return; } idList = idList.substring(0, idList.length - 1); if (action == 'signed') { location.href = 'topic_signed.aspx@topicid=' + idList; }else if (action == 'move') { location.href = 'topic_move.aspx@topicid=' + idList; } else if (action == 'delete') { location.href = 'topic_delete.aspx@topicid=' + idList; } else if (action == 'top') { location.href = 'topic_SetTopTime.aspx@action=top&topicid=' + idList; } else if (action =='topall') { location.href = 'topic_SetTopTime.aspx@action=topall&topicid=' + idList; } else { f.event.value = action; f.action = location.href; f.submit(); } } function switchTopicOpenMode(box) { var isPopNew = box.checked; var anchorTags = document.getElementsByTagName('a'); for (var i=0; i