var nav4 = window.Event ? true : false;

// Permite introducir sólo números en un input.
// Uso: onKeyPress="return acceptNum(event)"
function acceptNum(evt){	
// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57	
var key = nav4 ? evt.which : evt.keyCode;	
return (key <= 13 || (key >= 48 && key <= 57));
}

//Retorna el valor del la opcion seleccionada en el radiogroup que recibe
function getRadioButtonValue(ctrl)
{
    for(i=0;i<ctrl.length;i++)
        if(ctrl[i].checked) return ctrl[i].value;
}