// open additional window
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

// check to see if something is a number
function checknum(field) {
var valid = "0123456789.";
for (var i=0; i < field.length; i++) {
  temp = "" + field.substring(i, i+1);
  if (valid.indexOf(temp) == "-1") {
    return false;
  }
}
return true;
}

//convert to cents
function cent(amount) {
   amount -= 0;
   amount = (Math.round(amount*100))/100;
   return (amount == Math.floor(amount)) ? amount + '.00' : ( (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
}


