Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- order_confirm = confirm(""+Name+" you ordered "+Quantity+" of "+ProductName+". Is this correct?");
- if(!order_confirm)
- alert("Refresh the page to reload and place a new order");
- else
- {
- if(ProductName == "contract negotiation")
- Price=200 Discount=.05;
- else if(ProductName == "legal counseling")
- Price=350 Discount=.07;
- else if(ProductName == "contract extensions")
- Price=125 Discount=.02;
- else if(ProductName == "career marketing")
- Price=400 Discount=.1;
- else
- alert("Sorry, "+Name+". You entered an invalid product. Refresh the page to reload and place the order again.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement