//PARA ACTIVAR LOS PARAMETROS POR DEFECTO DEL BUSCADOR
function activadefoult(idc,dk){
	for(i=0;i<5;i++){
		id=i+idc+dk;
		if(document.getElementById(id)){ document.getElementById(id).checked=true; break;}
	}
}
function cmpvalor2(idv,cmpval){
	if(document.getElementById(idv)){
		if(document.getElementById(idv).checked==true) document.getElementById(cmpval).value=document.getElementById(idv).value;
		else  document.getElementById(cmpval).value="";
	}
}
/*FUNCION ENCARGADA DE VERIFICAR LOS RADIOS ACTIVOS DONDE SE VA A BUSCAR*/
function paramBusquedaZ6(dkcmp,idChk,num,viewval,iddesmarcar,cantdesmarcar){
	var id;
	var valZona6='';
	for(var i=0;i<num;i++){
		id=i+idChk+dkcmp;
		if(document.getElementById(id)){
			if(document.getElementById(id).checked==true)
			{
				valZona6+=document.getElementById(id).value+",";
			}
			
		}
	}
	if(document.getElementById(viewval)) document.getElementById(viewval).value=valZona6;
	
	/*DESMARCAMOS LOS CONTRARIOS*/
		for(var i=0;i<cantdesmarcar;i++){
			id=i+iddesmarcar+dkcmp;
			if(document.getElementById(id)){
				document.getElementById(id).checked=false;
			}
		}
	/*END*/
}
/*END*/
//PARA INDICAR LA PLANTILLA DE BUSQUEDA A LA QUE SE VA A MANDAR LOS PARAMETROS
function plantillaBusZona(idinput,valor){
	if(document.getElementById(idinput)) document.getElementById(idinput).action=valor;
}

function propiedadFormBusqueda(idform,valor){
	if(document.getElementById(idform)) document.getElementById(idform).setAttribute("target",valor)
}

