数量の正規表現を書きましたが、注文できる最大数はそれぞれ (夏、秋、冬) 500 です。式は -
var chkquantity = ^([1-9]?\d|[1-4]\d{2}|500)$/
テストが正しいかどうかはわかりません -
if ((chkquantity.test(quantity)== false){
alertmsg = alertmsg + "Please limit each magazine to 500 copies or less:" + "\n";
}
?