// JavaScript Document
function ConfirmDel()
{
   if(confirm("确定要删除这条信息吗？一旦删除将不能恢复！"))
     return true;
   else
     return false;	 
}

function DLS(id) 
{ 
window.open("dls_show.asp?id="+id,"","height=420,width=470,left=300,top=100,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
function liuyan(id) 
{ 
window.open("liuyan.asp?id="+id,"","height=340,width=470,left=300,top=100,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
function setbgcolor(obj){
	var objChildCheck = document.all ? obj.children[0].children[0] : obj.childNodes[1].childNodes[1];
	if(objChildCheck.checked){
	obj.style.backgroundColor = '#E6E6E6';
	}	
	else{
	obj.style.backgroundColor = '';
	}
	return true;
}
function anyCheck(form,aa) { //多选了就提示-选择时就检察
var total = 0;
var max = document.getElementsByName("ID").length;

for (var idx = 0; idx < max; idx++) {
if (eval("form.ID[" + idx + "].checked") == true) {
    total += 1;
   }
}
if(aa=='xuanze') {
if (total>5){
alert("最多只能选择 5 项")
return false; }
	}
 return true;
} 

function anyCheck2(form,aa) {//少选了就提示-最快也只有当点击对比时检察
var total = 0;
var max = document.getElementsByName("ID").length;

for (var idx = 0; idx < max; idx++) {
if (eval("form.ID[" + idx + "].checked") == true) {
    total += 1;
   }
}
if (total==0){
alert("\请先选择要对比的信息！")
return false;
}

if(aa=='duibi') {
if (total==1){
alert("至少选择 2 项才能进行比较")
return false; }
}
 return true;
} 

function showfilter(obj2) {
	if (obj2.style.visibility == "visible") {
        obj2.style.visibility = "hidden";
    }
    else {
		obj2.filters[0].apply();
        obj2.style.visibility = "visible";
		obj2.filters[0].play();
    }   
}

	 
function doClick_A(o){
	 o.className="current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=3;i++){
	   id ="A"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("A_con"+i);
	   if(id != o.id){
	   	 j.className="";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
function doClick_B(o){
	 o.className="current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=3;i++){
	   id ="B"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("B_con"+i);
	   if(id != o.id){
	   	 j.className="";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }	 
function doClick_down_reg(o){
	 o.className="current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=3;i++){
	   id ="down_reg"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_reg"+i);
	   if(id != o.id){
	   	 j.className="";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	function CheckUserForm()
	{
		if(document.UserLogin.username.value=="")
		{
			alert("请输入用户名！");
			document.UserLogin.username.focus();
			return false;
		}
		if(document.UserLogin.password.value == "")
		{
			alert("请输入密码！");
			document.UserLogin.password.focus();
			return false;
		}
		/*if(document.UserLogin.codestr.value == "")
		{
			alert("请输验证码！");
			document.UserLogin.codestr.focus();
			return false;
		}*/
	}
	
function fSetBg(obj){
	obj.style.backgroundColor = '#E6E6E6';
}
function fReBg(obj){
	var objChildCheck = document.all ? obj.children[0].children[0] : obj.childNodes[1].childNodes[1];
	if(objChildCheck.checked){
		return false;
	}
	obj.style.backgroundColor = '';
}
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  pass(myform){   
      myform.action="?action=pass";   
      //myform.target="_blank";     //指向什么帧名，你自己定，我这是新开一页   
      //myform.submit();   
      } 
function  del(myform){   
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="?action=del";  
	else		
	return false;     
      }  
function  delzs(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=zs";  
	else		
	return false;     
      } 
function  deldl(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=dl";  
	else		
	return false;     
      } 

function  delzh(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=zh";  
	else		
	return false;     
      } 
function  delgq(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=gq";  
	else		
	return false;     
      }
function  delzx(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=zx";  
	else		
	return false; 
	 }
function  dellicence(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=licence";  
	else		
	return false; 	    
      } 
	  
function  makehtmlzs(myform){   
     myform.action="makehtml.asp?channel=zs";    
     }
function  makehtmldl(myform){   
     myform.action="makehtml.asp?channel=dl";    
     }
function  makehtmlzh(myform){   
     myform.action="makehtml.asp?channel=zh";    
     }	
function  makehtmlgq(myform){   
     myform.action="makehtml.asp?channel=gq";    
     }
	 
function  makehtmlzx(myform){   
     myform.action="makehtml.asp?channel=zx";    
     }	 	 