function cargarSubRubros(indice) { 
	last=document.formfind.subrubro.length-1;
	for (i=last;i>0;i--){
		if (document.all){
			document.formfind.subrubro.options.remove(i);
		}else{
			document.formfind.subrubro.options[i]=null;
		}
	}
	if (indice==-1) {
		if (document.all){
			//PROCEDURE ESPECIFICO PARA IE
			newElem=document.createElement("OPTION");
			newElem.text="Seleccionar Subrubro--";
			newElem.value="0";
			document.formfind.subrubro.options.add(newElem, 1);
		}else{
			document.formfind.subrubro.options[j]= new Option("Seleccionar Subrubro--", "0")
		}
	}else{
		j=1;
		for(i=0;i<asubrubro_ID.length;i++){
			if (parseInt(arubro_ID[i])==indice){
				if (document.all){
					//PROCEDURE ESPECIFICO PARA IE
					newElem=document.createElement("OPTION");
					newElem.text=asubrubro[i];
					newElem.value=asubrubro_ID[i];
					document.formfind.subrubro.options.add(newElem, j);
				}else{
					document.formfind.subrubro.options[j]= new Option(asubrubro[i], asubrubro_ID[i]);
				}
				j++;
			}
		}		
	}
}

function validar() { 
  if (document.formfind.rubro.selectedIndex==0){
  	alert('Seleccione el rubro de su búsqueda por favor ...');
  }else{
  	document.formfind.submit();
  }
}