// JavaScript Document

function ConfirmDel()
{
   if(confirm("确定要删除这条信息吗？一旦删除将不能恢复！"))
     return true;
   else
     return false;
	 
}

function dl(id) 
{ 
window.open("dl.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.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("user_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("user_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();
    }   
}