function promoErr(etype) {
switch (etype) {
    case 1:
    alert("Discount code not valid. Please try again.");
    break;
    case 2:
    alert("Sorry, discount code has expired.");
    break;
    case 3:
    alert("Sorry, discount has not started. Please try later");
    }
    
}