the user inpouts 1 of 3 codes to bring up a box displying the discout dependent on code selected can someone please help I beleive the while script is the one to use but am finding it near impossible to master


FSSAVE, ISSAVE and SOSAVE.


If (Discount code entered is FSSAVE)
give discount one
else if (discount code entered is ISSAVE)
give discount 2
else if
(discount code entered is SOSAVE)
give discount 3





var discount; fSSAVE; iSSAVE; sOSAVE

fSSAVE = 20p
iSSAVE = 30p
sOSAVE = 40p


discount = window.prompt('Please enter a discount code,' Here');