
29/03/2005, 19:00
|
 | | | Fecha de Ingreso: mayo-2002 Ubicación: Lima, Peru
Mensajes: 4.619
Antigüedad: 22 años, 10 meses Puntos: 7 | |
Yo pongo esta funcion en el OnBlur:
function CheckNumber(fieldName, fieldValue, decimals, mdefault) {
if (isNaN(fieldValue)) {
fieldName.value=mdefault;
} else {
timeshundred = parseFloat(fieldValue * Math.pow(10, decimals));
integervalue = parseInt(parseFloat(fieldValue) * Math.pow(10, decimals));
if (timeshundred != integervalue) {
fieldName.value=mdefault;
}
}
}
__________________ No tengo firma ahora... :( |