function isDigit (c,maxrows) {
        return (c > 0)
	}


function checkValue(field,maxrows) {
    if (!isDigit(field.value)) {
                    alert("You're kidding me, right?\n Please enter a number.");
                    field.focus();
        }
    if ( (parseInt(field.value) > maxrows) ) {
                    alert("Hmm, no messages there.");
                    field.focus();      // Force the user back into the field
        }
}

