
function activateMenu(nav){if(document.all&&document.getElementById(nav).currentStyle){var navroot=document.getElementById(nav);var lis=navroot.getElementsByTagName("LI");for(var i=0;i<lis.length;i++){lis[i].style.marginTop='-2px';lis[i].style.marginBottom='-3px';lis[i].style.paddingBottom='4px';if(lis[i].lastChild.tagName==="UL"){lis[i].onmouseover=function(){this.lastChild.style.display="block";};lis[i].onmouseout=function(){this.lastChild.style.display="none";};}}var uls=navroot.getElementsByTagName("UL");for(i=0;i<uls.length;i++){uls[i].style.marginLeft='94%';}}}window.onload=function(){activateMenu('dmenu');activateMenu('dmenu2');activateMenu('dmenu3');};var WO=null;function users_Update(usrname){var x=confirm("确定要删除 "+usrname+"?");if(x){return true;}else{alert("取消删除");}return false;}function Update(item){var x=confirm("确认要删除 "+item+"?");if(x){return true;}else{alert("取消删除");}return false;}function Restore(item){var x=confirm("确认要恢复 "+item+"? '这个不能被取消（只有系统管理员可以进行此操作）.");if(x){return true;}else{alert("取消恢复");}return false;}function Rereview(item){var x=confirm("确认要移动 "+item+" 返回到未查看状态?");if(x){return true;}else{alert("取消重新查看");}return false;}function Confirmregister(){var x=confirm(" 巴哈伊学术资料库 。当编辑或上载新文件时要求注册。点击“取消”或“好”来进行取消或继续。");return x?true:false;}function document_window(url){var new_win=window.open(url,"Viewer","width="+600+", height="+600+", scrollbars, location, status, resizable");}function record_window(url){var NEW_WIN=window.open(url,"Viewer","width="+600+", height="+600+", scrollbars, location, status, resizable");}function clear_initialformvalue(e){var el;if(window.event){el=window.event.srcElement;}else{el=e.target;}document.getElementById(el.id).value='';}