// function to see if a suspected numeric input
// is a positive integer
function isPosInteger(inputStr) {
    var re = /^\d*$/;
    inputStr = inputStr.toString();
    if (!inputStr.match(re)) {
       return false;
    }
    return true;
}
