if(state=="NJ"){ alert("New Jersey currently requires classroom instruction to satisfy the state requirements. While we are working with the Boating Law Administrator of New Jersey to have America's Boating Course recognized as satisfying those requirements, you may want to obtain additional information prior to purchasing. Use the Back Button on your browser and use the 'Ask A Question' button to receive more information."); document.ABCFORM.TAX.value=0.00; document.ABCFORM.SHIPAMOUNT.value='5.50'; document.ABCFORM.PHONE.value="xxx-xxx-xxxx"; document.ABCFORM.ZIP.value=""; document.ABCFORM.PHONE.value=""; document.ABCFORM.USER10.value="US"; document.ABCFORM.AMOUNT.value=(document.ABCFORM.AMOUNT.value-0)+(document.ABCFORM.TAX.value-0); var newamount=document.ABCFORM.AMOUNT.value; newamount=newamount.toString() document.ABCFORM.AMOUNT.value=newamount.substring(0,5); } if(state=="CT"){ alert("Connecticut currently requires classroom instruction to satisfy the state requirements. While we are working with the Boating Law Administrator of Connecticut to have America's Boating Course recognized as satisfying those requirements, you may want to obtain additional information prior to purchasing. Use the Back Button on your browser and use the 'Ask A Question' button to receive more information."); document.ABCFORM.TAX.value=0.00; document.ABCFORM.SHIPAMOUNT.value='5.50'; document.ABCFORM.PHONE.value="xxx-xxx-xxxx"; document.ABCFORM.ZIP.value=""; document.ABCFORM.PHONE.value=""; document.ABCFORM.USER10.value="US"; document.ABCFORM.AMOUNT.value=(document.ABCFORM.AMOUNT.value-0)+(document.ABCFORM.TAX.value-0); var newamount=document.ABCFORM.AMOUNT.value; newamount=newamount.toString() document.ABCFORM.AMOUNT.value=newamount.substring(0,5); } if(state=="PR"){ alert("Puerto Rico currently requires instruction in charting to satisfy their requirements. While we are working with the Boating Law Administrator of Puerto Rico to satisfy those requirements, you may want to obtain additional information prior to purchasing. Use the Back Button on your browser and use the 'Ask A Question' button to receive more information."); document.ABCFORM.TAX.value=0.00; document.ABCFORM.SHIPAMOUNT.value='5.50'; document.ABCFORM.PHONE.value="xxx-xxx-xxxx"; document.ABCFORM.ZIP.value=""; document.ABCFORM.PHONE.value=""; document.ABCFORM.USER10.value="US"; document.ABCFORM.AMOUNT.value=(document.ABCFORM.AMOUNT.value-0)+(document.ABCFORM.TAX.value-0); var newamount=document.ABCFORM.AMOUNT.value; newamount=newamount.toString() document.ABCFORM.AMOUNT.value=newamount.substring(0,5); } if(state=="NC"){ //alert("North Carolina residents will be charged a Tax of $2.73."); document.ABCFORM.TAX.value=2.73; document.ABCFORM.SHIPAMOUNT.value='5.50'; document.ABCFORM.PHONE.value="xxx-xxx-xxxx"; document.ABCFORM.ZIP.value=""; document.ABCFORM.PHONE.value=""; document.ABCFORM.USER10.value="US"; document.ABCFORM.AMOUNT.value=(document.ABCFORM.AMOUNT.value-0)+(document.ABCFORM.TAX.value-0); var newamount=document.ABCFORM.AMOUNT.value; newamount=newamount.toString() document.ABCFORM.AMOUNT.value=newamount.substring(0,5); } else document.ABCFORM.TAX.value=0.00; document.ABCFORM.AMOUNT.value=40.45; document.ABCFORM.SHIPAMOUNT.value='5.50'; document.ABCFORM.PHONE.value="xxx-xxx-xxxx"; document.ABCFORM.ZIP.value=""; document.ABCFORM.USER10.value="US"; document.ABCFORM.AMOUNT.value=(document.ABCFORM.AMOUNT.value-0)+(document.ABCFORM.TAX.value-0); var newamount=document.ABCFORM.AMOUNT.value; newamount=newamount.toString() document.ABCFORM.AMOUNT.value=newamount.substring(0,5); { } }
