I've never used it before, so the function I wrote may not work as is, but isNaN is definitely the way to go in your case. Due to my lack of knowledge of the isNaN function, I would suggest trying to find someinfo on it. Might I suggest devguru.com ? That place has some swell quick refferences to stuff. Hope this at least helps point you in the right direction.
if(isNaN(input_var.value))
{
alert('Enter numbers only.');
return false;
}