// KCBS gear js functions

function isInteger(s) {
  return (s.toString().search(/^-?[0-9]+$/) == 0);
}


function changeSizePrice(formObj, price1, price2) {
  if ((formObj.os0.value == "2X") || (formObj.os0.value == "3X") || (formObj.os0.value == "Men's - 3X") || (formObj.os0.value == "Men's - 2X")) {
    formObj.amount.value = price2;
  }
  else {
    formObj.amount.value = price1;
  }
}

function changeQuantityPrice(formObj, price1, price2, qLimit){
  if(parseInt(formObj.quantity.value) >= qLimit){
    formObj.amount.value = price2;
  }
  else{
    formObj.amount.value = price1;
  }
}
