window.attachEvent("onload", sh_top);function add(f){document.location.href="pt_tr.asp?fileName="+f+"&exe=add";	}function set_print_col(f,typ){var s='resizable:yes;status:no;help:no;dialogHeight:600px;dialogWidth:300px';window.showModalDialog("../main/show_more_list_col.htm?list_or_win="+typ+"&fileName="+f,window,s)}function del(f){var ed=0;var cs=document.getElementsByName("id");for(var i=0;i<cs.length;i++){if(cs[i].checked==true)ed=1;}if(ed==0){alert('你没有选中任何记录')
return;	}form1.action="execute.asp?exe=del&from_page=pt&fileName="+f;form1.submit()}function undel(f){var ed=0;var cs=document.getElementsByName("id");for(var i=0;i<cs.length;i++){if(cs[i].checked==true)ed=1;}if(ed==0){alert('你没有选中任何记录')
return;	}form1.action="execute.asp?exe=undel&from_page=pt&fileName="+f;form1.submit()}function del_del(f){var ed=0;var cs=document.getElementsByName("id");for(var i=0;i<cs.length;i++){if(cs[i].checked==true)ed=1;}if(ed==0){alert('你没有选中任何记录')
return;	}if(confirm('删除后，无法找回记录。\n\n你真的要"彻底删除"所选记录吗?')){form1.action="execute.asp?exe=del_del&from_page=pt&fileName="+f;form1.submit()}}function del_all(f){if(confirm('清空后，无法找回记录。\n\n你真的要"清空"回收站的所有记录吗?')){document.location.href="execute.asp?exe=del_all&from_page=pt&fileName="+f;}}function exit_del(f){document.location.href="pt_main.asp?fileName="+f;}function show_del(f){document.location="pt_main.asp?del=1&fileName="+f;}function sel_all(form){for (var i=0;i<form.elements.length;i++){var e = form.elements[i];if (e.name != 'chkall')
e.checked = form.chkall.checked;}}function sh_top(obj){var f1=parent.document.getElementById('f1');if(!f1)return;if(!obj.id){var obj=document.getElementById("but_sh_top");if(!obj)return;obj.src=(f1.rows=="0,*")?'../img/top_to_bottom.gif':'../img/bottom_to_top.gif';}else{if(f1.rows=="0,*"){f1.rows="90,*";obj.src='../img/bottom_to_top.gif';}else{f1.rows="0,*";obj.src='../img/top_to_bottom.gif';}}}function sh_left(obj){var f3=parent.document.getElementById('f3');if(!f3)return;if(!obj.id){var obj=document.getElementById("but_sh_left");if(!obj)return;obj.src=(f3.cols=="0,*")?'../img/left_to_right.gif':'../img/right_to_left.gif';}else{if(f3.cols=="0,*"){f3.cols="200,*";obj.src='../img/right_to_left.gif';}else{f3.cols="0,*";obj.src='../img/left_to_right.gif';}}}function sou(f){var key=document.getElementById("keyword").value;var url="?sou_shai_type=sou&col_name=_notMemo_&fuhao=like&KeyWord="+encodeURIComponent(key)+"&fileName="+f;document.location.href=url;}function pt_save(){form1.submit();	}