var number;
function checkNum( form ) {
number = new Number( form.num.value ) || parseInt( form.num.value );
if (( form ) && ( isNaN( form.num.value )) || ( form.num.value.length < 1 )) {
form.num.focus();
form.num.select();
alert( "\"" + form.num.value + "\" is not a number. Please re-enter.");
return false;
} else {
if (( form ) && ( number > 100 )) {
alert("Number must be lower than 100!"); return false;
} else {
alert("This number is valid: " + number);
}
} return true;
}//-->