<!-- 
function validar_anio(){
	var f = document.forms[0];

	if (f.anio.checked==true){
//		var temp = "";
//		var anio = "";

		anio = trim(f.aniovalor.value);

		if (anio.length <= 0) {
			alert("Debe ingresar año");
			f.aniovalor.value="";
			f.aniovalor.focus();
			return false;
		}
		for (i = 0; i < anio.length; i++){
			if(anio.charAt(i) < "0" || anio.charAt(i) > "9") {
				alert("El año ingresado no es numérico");
				f.aniovalor.value="";
				f.aniovalor.focus();
				return false;
			}
		}
		if (anio < 1944) {
			alert("El año ingresado debe ser superior a 1944");
			f.aniovalor.value="";
			f.aniovalor.focus();
			return false;
		}
	}
	if (f.notbusqueda.checked==true){
		var valor = f.nobusquedatxt.value;
		var texto = "";
		var coma = ",";
		var otrasOp = new Array("Á","É","Í","Ó","Ú","Ñ");
		var caracter = 0;

		for (i=0; i<valor.length; i++) {
			txt = valor.charAt(i)
			if (txt != " ") {
				texto = texto + txt
			}
		}
		if (valor == "" || texto.length <= 0) {
			alert("Debe ingresar un texto a buscar");
			f.nobusquedatxt.value="";
			f.nobusquedatxt.focus();
			return false;			
		}
		texto = ""

		for (i=0; i<valor.length; i++) {
			txt = valor.charAt(i)
			if (txt >= "0" && txt <= "9") {
				texto = texto + txt
				caracter = 1;
			}else if (txt.toUpperCase() >= "A" && txt.toUpperCase <= "Z") {
				texto = texto + txt
				caracter = 1;
			}else if (txt == " " || txt == coma) {
				texto = texto + txt
				caracter = 1;
			}else {
				for (j=0 ; j<6 ; j++) {
					if (txt.toUpperCase() == otrasOp[j]) {
						texto = texto + txt
						caracter = 1;
					}
				}
			}
		}
		if (caracter==0) {
			alert("Caracter ingresado no válido");
			f.nobusquedatxt.value="";
			f.nobusquedatxt.focus();
			return false;
		}		

	}
return true;
}

function envia(){
	if (validar(",", 1, "no") && validar_anio())  {
		if (validar(",", 1, "si")) window.document.form.submit();
	}
}

function limpiar(){
	var f=document.form;
	f.busqueda.value = "";
	f.aniovalor.value = "";
	f.anio.checked = false;
	f.nobusquedatxt.value = "";
	f.notbusqueda.checked = false;
	f.busqueda.focus();
}

 -->