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