function validar_rut(e) { 
    tecla = (document.all) ? e.keyCode : e.which; 
    if (tecla==8) return true; 
		 patron = /[k0123456789-]/;
		 te = String.fromCharCode(tecla); 
	return patron.test(te);  
} 

function validar_numero(e) { 
    tecla = (document.all) ? e.keyCode : e.which; 
    if (tecla==8) return true; 
	   patron = /\d/; 
       te = String.fromCharCode(tecla); 
    return patron.test(te); 
} 

function validar_letras(e) { 
    tecla = (document.all) ? e.keyCode : e.which; 
    if (tecla==8) return true; 
    patron =/[A-Za-zαινσϊΑΙΝΣΪρΡ\s]/;
    te = String.fromCharCode(tecla); 
    return patron.test(te); 
} 

function validar_fecha(e) { 
    tecla = (document.all) ? e.keyCode : e.which; 
    if (tecla==8) return true; 
		 patron = /[0123456789-]/;
		 te = String.fromCharCode(tecla); 
	return patron.test(te); 
} 


