potresti utilizzare anche le REgularExpression:

RE = /\d/g

if (!document.nomeform.nomecampo.value.match(RE))
{alert('Il campo deve essere numerico'); return false;}