function modify(){if(confirm("您确定要修改?")){return true;}return false;}
function reset1(){if(confirm("您确定要还原?")){return true;}return false;}
function Del(){if(confirm("您确定要删除?")){return true;}return false;}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function CheckAll(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 Do_del_class(data1)
{
if (confirm("此操作将删除c_id为 "+data1+" 的一级分类！\n\n真的要删除吗？\n\n删除后将无法恢复！"))
  window.location="?action=delclass&c_id="+data1
}

function Do_del_sort(data1)
{
if (confirm("此操作将删除s_id为 "+data1+" 的二级分类！\n\n真的要删除吗？\n\n删除后将无法恢复！"))
  window.location="?action=delclass&s_id="+data1
}
function Do_del_file(data1,data2,data3)
{
if (confirm("此操作将删除ID为 "+data3+" 的数据！\n\n真的要删除吗？\n\n删除后将无法恢复！"))
  window.location="?action=delclass&c_id="+data1+"&s_id="+data2+"&id="+data3
}
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}