////////////////////////////////////////////////////////////////////////////////////////////////////////
// JavaScript Function Name:  NumChk
// Purpose: NumChk evaluates if the contents of an element are numeric.  If not, an error is returned.
////////////////////////////////////////////////////////////////////////////////////////////////////////

function NumChk(num,objName) {
var numfield = objName
var newnum
newnum = num * 1;
if (isNaN(newnum)) { // if the entire is not a number
  numfield.select();
  alert("The value must be numeric.  Please try again.");
  numfield.focus();
  return false;
   }
else {
  return true;
  }
}