/**
 * Detects an input value and checks for lower than 5. 
 * If lower than 5, through error message and replace the input value with 0
 * used on category.aspx page
 */
function checkNumber(input, min, max, msg) {
msg = "A minimum of five must be ordered."
var str = input.value;
var num = parseFloat(str);
if (num < "5") {
input.value="0";
alert(msg);
return false;
   }
return true;
}