// JavaScript Document

function ConfirmDel()
{
   if(confirm("确定要删除这条信息吗？一旦删除将不能恢复！"))
     return true;
   else
     return false;
	 
}
function ConfirmMakehtml()
{
   if(confirm("确定要全部生成？"))
     return true;
   else
     return false;
	 
}

function dl(id) 
{ 
window.open("dl_liuyan.asp?id="+id,"","height=450,width=470,left=300,top=100,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}

function qg(id) 
{ 
window.open("qg_liuyan.asp?id="+id,"","height=420,width=470,left=300,top=100,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}

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 QGS(id) 
{ 
window.open("qgs_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>=4){
alert("最多只能选择 3 项")
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_S(o){
	 o.className="current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="S"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("S_con"+i);
	   if(id != o.id){
	   	 j.className="";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
	 
function doClick_A(o){
	 o.className="current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;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<=2;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_C(o){
	 o.className="current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="C"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("C_con"+i);
	   if(id != o.id){
	   	 j.className="";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
function doClick_D(o){
	 o.className="current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="D"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("D_con"+i);
	   if(id != o.id){
	   	 j.className="";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }	 
function doClick_E(o){
	 o.className="current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="E"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("E_con"+i);
	   if(id != o.id){
	   	 j.className="";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }
function doClick_F(o){
	 o.className="current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="F"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("F_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<=2;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  delgy(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=gy";  
	else		
	return false;     
      } 
function  delqg(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=qg";  
	else		
	return false;     
      } 
function  delzh(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=zh";  
	else		
	return false;     
      } 
function  delhz(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=hz";  
	else		
	return false;     
      }
function  delzr(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=zr";  
	else		
	return false;     
      }
function  delzx(myform){ 
	if(confirm("确定要删除选中的信息吗？"))
    myform.action="del.asp?channel=zx";  
	else		
	return false;     
      } 
	  
function  makehtmlzs(myform){   
     myform.action="makehtml.asp?channel=zs";    
     }
function  makehtmldl(myform){   
     myform.action="makehtml.asp?channel=dl";    
     }
function  makehtmlgy(myform){   
     myform.action="makehtml.asp?channel=gy";    
     }
function  makehtmlqg(myform){   
     myform.action="makehtml.asp?channel=qg";    
     }
function  makehtmlzh(myform){   
     myform.action="makehtml.asp?channel=zh";    
     }
function  makehtmlhz(myform){   
     myform.action="makehtml.asp?channel=hz";    
     }
function  makehtmlzr(myform){   
     myform.action="makehtml.asp?channel=zr";    
     }	 
function  makehtmlzx(myform){   
     myform.action="makehtml.asp?channel=zx";    
     }	 	 