I'm trying to make this golfscorecard script and it is working allmost correct...

It counts the numbers as it should and if a user inserts a nonnumeric value like "-" it counts that as 11. Great. But I also want to count "0" as 11 but not sure how to do so...

Here is my script:
Code JavaScript:
// Makes sure variable is a number
function validNum(nmbr)
{
// forces variable into integer type
nmbr = (nmbr * 1);
 
// Checks if variable is Not a Number
if(!isNaN(nmbr))
// If a number, return value
return nmbr;
else
// If not a number, return eleven
	return 11;
}

The full script can be testet at http://mdesigns.dk/autotab.php

Hoping for help and thanks in advance...