The standard syntax is:
valueInField = document.formName.fieldName.value;
as for the checking bit, you can use regular expressions, or the built-in
JS functions parseInt and parseFloat - then use isNAN() function to see if it is Not-A-Number.
hth
Phil