//auto generates by the storecreator and templates var savedLoad=0; var floatQuantity=0; var currencyUnit ='$'; var orderInfoFile ='info.html'; var introFile ='intro.html'; var storeName='Denson Crystal Repair'; var searchFile = 'search.html'; var accountID = '1917'; var subDirID= '14'; var submitEmail= 'orders@waterwalk.com'; var encryptEmail= '0'; var noDecimal= 0; var storeContactAddress='R & B Denson & Assoc.,
17 Glen Ave., Corning, NY 14830, USA.
Tel:607 926 - 1980.
EMail:info@densoncrystalrepair.com.
Homepage:www.densoncrystalrepair.com'; var EMailSubject = 'Denson Crystal Order'; var serverURL= 'http://www.zilron.com/cgi-bin/storecreator/v3/checkout.cgi'; shipMethod = new Array();shipMethod[0]='Air mail';shipMethod[1]='Email';shipMethod[2]='Fed Ex US$10 per Kg';shipMethod[3]='UPS';shipMethod[4]='US Postal Service';billMethod = new Array();billMethod[0]='Discover';billMethod[1]='MasterCard';billMethod[2]='Visa'; var shipCalVer='1'; var mDCountryMinCharge='5.00'; var mDCountryPercentCharge='20.00'; var mDStateMinCharge='0.00'; var mDStatePercentCharge='0.00'; var mSStateMinCharge='2.50'; var mSStatePercentCharge='10.00'; var mCShipingTax=0; var mSShippingTax=0; var mCurrencyAfter =0; var mPaymentCard=1; var mPaymentCheck=0; var mPaymentFax=0; var mCartALink='#aaaa00'; var mAlignStr='
'; var mCartBGColor='#ffffff'; var mCartBGImage=''; var mCartTableBodyColor='#000000'; var mCartTableBodyBGColor='#d8d8d8'; var mCartTableHeaderBGColor='#808080'; var mCartTableHeaderColor='#ffffff'; var mCartText='#000000'; var mCartLink='#0000aa'; var mCartVLink='#0000aa'; var mServerALink='#aaaa00'; var mServerBGColor='#ffffff'; var mServerBGImage=''; var mServerTableBodyColor='#000000'; var mServerTableBodyBGColor='#d8d8d8'; var mServerTableHeader='#ffffff'; var mServerTableHeaderBGColor='#808080'; var mServerCheckoutMesg='Shipping charge will be added to your order. For details, please see the Order Info page.'; var mServerLink='#0000aa'; var mServerText='#000000'; var mServerThankYouMesg='Thank you,
Your order has been placed successfully.
We will process your order soon.
'; var mServerVLink='#0000aa'; var mServerLanguageStr='English'; var mServerEmailStyleStr='PlainText'; var MinimunInvoiceNumber='5000'; var FieldEmptyCheck='12221112200000000000000000000000000000000000000000'; var FieldShow='22222222200000000000000000000000000000000000000000'; var fHasCountryTax=0; var countryTaxName=''; var countryTaxRate=0.00; var storeCountry='USA'; var fHasStateTax=0; var stateTaxName=''; var stateTaxRate=0.00; var storeState=''; stateName = new Array(); function SelectCatalog(pageName, formName, selectName) { var i = eval("parent.frames['"+pageName+"'].document."+formName+"."+selectName+".selectedIndex"); var url = eval("parent.frames['"+pageName+"'].document."+formName+"."+selectName+".options["+i+"].value"); parent.frames['shop'].window.location.href=url; } function Display(buttonName, picture){ eval( buttonName+".src = \"" + picture + "\";");} function PrintSubmitField(cWin) { cWin.write(""); cWin.write(""); } var returnHtmlPath=introFile; function MakeArray(n) { this.length = n; for(var i = 0; i < n; i++){ this[i] = 0; } return this; } function Currency(money) { money = parseFloat(money); money += 0.005; money += ""; var monLen = money.length; var digPos = money.indexOf("."); if (noDecimal) { if(digPos != -1) { money = money.substring(0, digPos); } return money; } if(digPos == -1) { if (money <=0) { money ="0.00"; } else { money += ".00"; } return money; } else { if (digPos + 3 > monLen) { money += "0"; } else if (digPos + 3 != monLen) { money = money.substring(0, digPos+3); } return money; } } function RECORD(n) { this.length = n; this.curLength = 0; this.itemName=new MakeArray(n); this.price=new MakeArray(n); this.quantity=new MakeArray(n); this.itemID=new MakeArray(n); this.weight=new MakeArray(n); this.fTaxable=new MakeArray(n); return this; } var orderRecord = new RECORD(250); function AddRecord(itemName, unitPrice, qty, itemID, weight, fTaxable) { var i; for (i=0;i= 0) { returnHtmlPath = "catalog"+n1+"_" +n2+".html"; } else if (n1 == -1) { returnHtmlPath = orderInfoFile; } else if (n1 == -2) { returnHtmlPath = introFile; } else if (n1 == -3) { returnHtmlPath = "item"+n2+".html"; } } function Add(theForm) { var cWin= parent.frames["shop"].document; var itemName = theForm.itemName.value; var basePrice = parseFloat(theForm.basePrice.value); var totalPrice = basePrice; var totalSubField = parseInt(theForm.totalSubField.value); var itemID=theForm.itemID.value; var weight=parseFloat(theForm.itemWeight.value); var fTaxable=parseInt(theForm.itemTaxable.value); var i; var tmpStr; for (i=0;i= orderRecord.curLength) { alert("Can not remove this item"); return; } var i; var totalSum=orderRecord.price[n]*orderRecord.quantity[n]; for (i=n; i Zilron Store Creator Shopping Cart Viewer"); cWin.write("
"); cWin.write("
"); cWin.write("Your shopping cart is empty
"); cWin.write("

Back"); cWin.write(""); cWin.close(); PrintCartTotal(); return; } ViewCart(); PrintCartTotal(); } function RemoveAll() { if( confirm("Ready to empty your shopping cart?")){ orderRecord.curLength=0; var cWin = parent.frames["shop"].document; cWin.open(); cWin.write(" Zilron StoreCreator Shopping Cart Viewer"); cWin.write("
"); cWin.write(""); cWin.write("Your shopping cart is empty
"); cWin.write("

Back"); cWin.write(""); cWin.close(); } PrintCartTotal(); return; } function ViewCart() { var cWin= parent.frames["shop"].document; if (orderRecord.curLength<=0) { alert("Your Shopping cart is empty"); return; } cWin.open(); cWin.write(" Zilron StoreCreator v3.0 Shopping Cart Viewer"); cWin.write("
"); cWin.write(" "+mAlignStr+""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write("

"+storeName+"

Contact Address:
"+storeContactAddress+"

"+mServerCheckoutMesg+"

Your current shopping cart
"); PrintSubmitField(cWin); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); for (i=0;i"); } cWin.write(""); for (i=0;i"); } cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); for (i=0;i"); } cWin.write(""); cWin.write(""); var totalPrice=0; cWin.write(""); for (var i=0;i"); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); cWin.write(""); } if (mCurrencyAfter) { cWin.write(""); } else { cWin.write(""); } cWin.write("
ItemID
Products
Quantity
Price("+currencyUnit+")
Total Price
Delete
"+orderRecord.itemID[i]+"
"+orderRecord.itemName[i]+"
"+Currency(orderRecord.price[i])+"Delete
Total
"+currencyUnit+"
Total
"+currencyUnit+"

[Keep Shopping|Empty Shopping Cart|]"); cWin.write("
If you can not submit your order form via the above button, please click here.

"); cWin.write("
"); cWin.close(); } function ModifyQty(n) { if (n >= orderRecord.curLength) { return; } var qty = eval("parent.frames['shop'].document.forms[0].qty"+n+".value"); if (qty<=0) qty=1; if (floatQuantity) { qty=parseFloat(qty) eval("parent.frames['shop'].document.forms[0].qty"+n+".value=parseFloat(qty)"); orderRecord.quantity[n]=parseFloat(qty); } else { qty=parseInt(qty) eval("parent.frames['shop'].document.forms[0].qty"+n+".value=parseInt(qty)"); orderRecord.quantity[n]=parseInt(qty); } var subTotalPrice=qty*orderRecord.price[n]; eval("parent.frames['shop'].document.forms[0].itemPrice"+n+".value=Currency(subTotalPrice)"); var totalPrice=0; for (var i=0;i Zilron StoreCreator v3.0 Shopping Cart Viewer"); cWin.write(""); cWin.write("
"+parent.storeName+"
Manual Order Form Submission

"); cWin.write("Please copy and paste the following order form into your email program and send it to us. Our email address is "+parent.submitEmail+"
Keep Shopping
"); var totalPrice=0; for (var i=0;iItem number:"+i+"
"); cWin.write(""+orderRecord.itemName[i]+"
"); cWin.write("Qty:"+orderRecord.quantity[i]+"
"); cWin.write("Unit Price:"+parent.currencyUnit+orderRecord.price[i]+"
"); cWin.write("SubTotal:"+parent.currencyUnit+Currency(itemPrice)+"
"); } cWin.write("========================================
Total Price "+parent.currencyUnit+Currency(totalPrice)+"

"); cWin.write("1. Please enter the shipping address.
"); cWin.write("Name:______________________________
"); cWin.write("Street Address:______________________________
"); cWin.write("City:______________________________
"); cWin.write("State/Province:______________________________
"); cWin.write("Zip/Postal Code:______________________________
"); cWin.write("Country:______________________________
"); cWin.write("Phone:______________________________
"); cWin.write("Shipping method:______________________________


"); cWin.write("2. Please enter the billing address.
"); cWin.write("Name:______________________________
"); cWin.write("Street Address:______________________________
"); cWin.write("City:______________________________
"); cWin.write("State/Province:______________________________
"); cWin.write("Zip/Postal Code:______________________________
"); cWin.write("Country:______________________________
"); cWin.write("Phone:______________________________


"); cWin.write("3. Please enter the paying method.
"); cWin.write("Credit card type:______________________________
"); cWin.write("Credit card Number:______________________________
"); cWin.write("Credit card expired Month:______________________________
"); cWin.write("Credit card expired Year:______________________________


"); cWin.write("4. Please enter the tax rate of your area, if any. ______________






"); cWin.write(""); cWin.close(); }