// JavaScript Document

function teclaEvento(evento){ 
	if (evento.keyCode){
		return evento.keyCode;
	}
	else{
		return evento.which;
	}
} 

function continuarEvento(evento,continuar){ 
	if(evento.preventDefault && !continuar){
		evento.preventDefault();
		evento.stopPropagation();
	}
	return continuar;
}

function validaNumero(event,txtCampo){
	var ac;
	//no utilizo el name ya tengo la referencia del text
	var texto = txtCampo.value;
	
	
	ac = teclaEvento(event);
	if ((ac >= 48) && (ac <= 57)||(ac <= 10)) {
	
	}
	else {
			if (ac == 13) {
				window.lnkIntro.click();
			}
			else {
				//window.event.keyCode = " ";
				//esta funcion te garantiza que canceles el evento tanto en ie como en ff
				return continuarEvento(event,false)
			}
		}
	//document.forms.item(0).item(txtCampo).value = texto;
	texto = "";
}
