function DisplayMiniCart(name,style) { var cookies=document.cookie; //read in all cookies var start = cookies.indexOf(name + "="); //set start to beginning of ss_cart cookie var cartvalues = ""; var linecount = 0; var start1; var end1; var tmp; // Start Output document.write("
\n"); if (style == "Detail") { document.write("\n"); document.write("\n"); document.write(""); } else if (style == "Summary") { document.write(""); document.write("Your Shopping Cart"); document.write(""); } else { document.write(""); document.write(""); document.write(" "); } if (start == -1) //No cart cookie { if (style == "Detail") { document.write("
"); document.write(""); document.write("Your Shopping Cart"); document.write("
\n"); } else if ((style == "ItemCount") || (style == "Subtotal")) { document.write(""); document.write("0 Items"); document.write(" "); document.write("
\n"); } else { document.write("\n"); } } else //cart cookie is present { start = cookies.indexOf("=", start) +1; var end = cookies.indexOf(";", start); if (end == -1) { end = cookies.length; } cartvalues = unescape(cookies.substring(start,end)); //read in just the cookie data start = 0; while ((start = cartvalues.indexOf("|", start)) != -1) { start++; end = cartvalues.indexOf("|", start); if (end != -1) { linecount++; if ((linecount == 2) && (style != "Detail")) // Total Quantity of Items { tmp = cartvalues.substring(start,end); colon = tmp.indexOf(":", 0); if ((style == "ItemCount") || (style == "Subtotal")) { document.write(""); } if (style == "Summary") { document.write("
Contains "); } document.write(tmp.substring(colon+1,end - start)); if (style == "Summary") { document.write(""); } if ((tmp.substring(colon+1,end - start)) == 1 ) { document.write(" Item"); } else { document.write(" Items"); } if (style == "ItemCount") { document.write("
"); } else if (style == "Subtotal") { document.write(": "); } else if (style == "Summary") { document.write("
Subtotal: "); } } if (linecount == 3) // Product Subtotal { if ((style == "Subtotal") || (style == "Summary")) { tmp = cartvalues.substring(start,end); colon = tmp.indexOf(":", 0); document.write(tmp.substring(colon+1,end - start)); if (style == "Summary") { document.write(""); } else { document.write(""); } } else if (style == "Detail") { start1 = start; end1 = end; document.write("Qty"); document.write("Product"); document.write("Price\n"); } } if ((linecount > 3) && (style == "Detail")) // individual products { tmp = cartvalues.substring(start,end); colon = tmp.indexOf(":", 0); document.write(""); document.write(""); document.write(tmp.substring(0,colon)); document.write(""); colon2 = tmp.indexOf(":", colon+1); document.write(tmp.substring(colon2+1,end - start)); document.write(""); document.write(tmp.substring(colon+1,colon2)); document.write("\n"); } start = end; } else break; } // end while loop //close minicart HTML if (style != "Detail") { document.write("\n"); } else { document.write(""); document.write("Subtotal"); document.write(""); tmp = cartvalues.substring(start1,end1); colon = tmp.indexOf(":", 0); document.write(tmp.substring(colon+1,end1 - start1)); document.write(""); document.write(""); document.write("\n"); document.write("\n"); } } } CH107-30.jpg

36" Original Cylinder Style Silver Men's Chain 6mm


$4.00
CH107

36" Original Cylinder Style Silver Men's Chain 6mm

Quantity