| <SCRIPT>
var Item = new Array("Panda", "Koala", "Dolphin", "Otter"); var Price = new Array(32, 16, 8, 4); /*************** Cookie Functions ***************/ var thisCookie = document. cookie;function getCookie(name) {var index = thisCookie.indexOf(name + "="); if (index == -1) return null; index = thisCookie.indexOf("=", index) + 1; var endstr = thisCookie.indexOf(";", index); if (endstr == -1) endstr = thisCookie.length; return unescape(thisCookie.substring(index, endstr));} function setCookie(name, quantity) {if (value != null && value != "") document.cookie = name + "=" + quantity; thisCookie = document. cookie;} function deleteCookie(name,
path, domain) { /*************** End of Cookie Functions ***************/ function addCookie(name) {var quantity = document.orderForm[name].value; if (isNaN(quantity))
{ if (quantity.length > 0 && quantity.charAt(0) == 0) quantity = quantity.substring(1); if (!quantity) alert("Nothing
has been added to your Cart"); if (!quantity)
{ function upDate()
{ </SCRIPT> < BODY onLoad="upDate();">< FORM NAME="orderForm">< TABLE BORDER="1" CELLPADDING="5">< TR><TD BGCOLOR="#336699"> <FONT COLOR="#FFFFFF">Item Description</FONT> </TD> <TD BGCOLOR="#336699"> <FONT COLOR="#FFFFFF">Quantity</FONT> </TD> <TD BGCOLOR="#336699"> <FONT COLOR="#FFFFFF">Unit Price</FONT> </TD> <TD BGCOLOR="#336699"> </TD> </TR> <TR> <TD> Panda </TD> <TD> <INPUT TYPE="text" NAME="Panda" VALUE="0" SIZE="3"> </TD> <TD> $32 </TD> <TD> <A HREF="javascript:addCookie('Panda');" onMouseOver="status='Add the Item to the Shopping Cart'; return true;" onMouseOut="status='';"> <IMG SRC="images/addtocart.gif"> </A> </TD> </TR> etc... < /TABLE>< /FORM>< A HREF="checkout.htm"onMouseOver="status='Take Me to the Check Out'; return true;" onMouseOut="status='';"> <IMG SRC="images/checkout.gif"> </A> |