﻿function IsNumeric(strString) {
  var strValidChars = "0123456789.-";
  var strChar;
  var blnResult = true;

  if (strString.length == 0) return false;
  //  test strString consists of valid characters listed above
  for (i = 0; i < strString.length && blnResult == true; i++) {
    strChar = strString.charAt(i);
    if (strValidChars.indexOf(strChar) == -1) {
      blnResult = false;
    }
  }
  return blnResult;
}


function getRadioValue(radio) {
  if (radio) {
    for (var i = 0; i < radio.length; i++) {
      if (radio[i].checked) { break }
    }
    if (i == radio.length)
      return -1;
    else
      return radio[i].value;
  }
}



function ConfirmDelete() {
  if (confirm("Are you sure you wish to remove this item from your cart?"))
    return true;
  else
    return false;
}

