function changeAdminFlag(Content){var row=parent.parent.headFrame.document.all.Trans.rows[0];row.cells[3].innerHTML=Content;return true;};function ConfirmDelSort(Result,ID){if(confirm("是否确定删除本类、子类及下属所有信息？")){window.location.href=Result+".Asp?Action=Del&ID="+ID}};function AddToSort(imagePath){window.opener.LPform.LPattern.focus();window.opener.document.LPform.LPattern.value=imagePath;window.opener=null;window.close();};function OpenScript(url,width,height){var win=window.open(url,"SelectToSort",'width='+width+',height='+height+',resizable=no,scrollbars=yes,menubar=no,status=no,location=no');};function EndSortChange(a,b){if(eval(a).style.display==''){eval(a).style.display='none';eval(b).className='SortEndFolderOpen';}else{eval(a).style.display='';eval(b).className='SortEndFolderClose';}};function SortChange(a,b){if(eval(a).style.display==''){eval(a).style.display='none';eval(b).className='SortFolderOpen';}else{eval(a).style.display='';eval(b).className='SortFolderClose';}};function CheckOthers(form){for(var i=0;i<form.elements.length;i++){var e=form.elements[i];if(e.checked==false){e.checked=true;}else{e.checked=false;}}};function CheckAll(form){for(var i=0;i<form.elements.length;i++){var e=form.elements[i];e.checked=true;}};function ConfirmDel(message){if(confirm(message)){document.formDel.submit()}};function OpenDialog(sURL,iWidth,iHeight){var oDialog=window.open(sURL,"_EditorDialog","width="+iWidth.toString()+",height="+iHeight.toString()+",resizable=no,left=0,top=0,scrollbars=no,status=no,titlebar=no,toolbar=no,menubar=no,location=no");oDialog.focus();};function voidNum(argValue){var flag1=false;var compStr="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";var length2=argValue.length;for(var iIndex=0;iIndex<length2;iIndex++){var temp1=compStr.indexOf(argValue.charAt(iIndex));if(temp1==-1){flag1=false;break;}else{flag1=true;}};return flag1;};function CheckAdminEdit(){if(document.editAdminForm.AdminName.value.length<3||document.editAdminForm.AdminName.value.length>10){alert("请正确输入登录名称(必须为0-9,a-z,-_组合)！");document.editAdminForm.AdminName.focus();return false;exit;};var check;if(!voidNum(document.editAdminForm.AdminName.value)){alert("请正确输入登录名称(必须为0-9,a-z,-_组合)！");document.editAdminForm.AdminName.focus();return false;exit;}};function CheckMemEdit(){if(document.editMemForm.MemName.value.length<3||document.editMemForm.MemName.value.length>16){alert("请正确输入登录名称(必须为0-9,a-z,-_组合)！");document.editMemForm.MemName.focus();return false;exit;};var check;if(!voidNum(document.editMemForm.MemName.value)){alert("请正确输入登录名称(必须为0-9,a-z,-_组合)！");document.editMemForm.MemName.focus();return false;exit;}};function AdminOut(){if(confirm("是否确定退出？"))location.replace("CheckAdmin.Asp?AdminAction=Out")};function GoPage(Myself){window.location.href=Myself+"Page="+document.formDel.SkipPage.value;};function AddSort(SortName,ID,Path){window.opener.editForm.SortName.focus();window.opener.document.editForm.SortName.value=SortName;window.opener.document.editForm.SortID.value=ID;window.opener.document.editForm.SortPath.value=Path;window.opener=null;window.close();};function test(){if(!confirm('是否确定进行批量操作？操作后不能恢复！'))return false;};function CopyWebTitle(v){document.editForm.SeoKeywords.value=v;document.editForm.SeoDescription.value=v;}