//
// Shopping Cart Configuration
//
var EW_PAYPAL_URL     = "https://www.paypal.com/cgi-bin/webscr";
var ew_cartCookie     = "ew_cart_item_";
var ew_cntCookie      = "ew_cart_count";
var ew_shipCookie     = "ew_ship";
var ew_maxCartItems   = 60; // max cart items : < ew_itemsPerCookie*20
var ew_itemsPerCookie = 4; // items per cookie
var ew_cartDelimiter  = "|";
var ew_optionDelim    = "; ";
var ew_optionSep      = ": ";
var ew_multiOptionSep = "|"; // 3.0
var ew_cartExpire     = null; // expires when browser is closed
//var ew_cartExpire     = 'CartExpire(0, 1, 0, 0)'; // expires in 0 day 1 hour 0 minute 0 second
var ew_cartPath       = "/";
var ew_ccySymbol      = "$";
var ew_ccyDlm1        = ",";
var ew_ccyDlm2        = ".";
//var ew_ccyShowDecimal = true;
var ew_ccyDecimal     = 2;
var ew_ccyExchange    = 1;
var ew_cartAddMsg     = "Item added to your shopping cart.";
var ew_cartFullMsg    = "Your shopping cart is full. Item not added.";
var ew_emptyItemMsg = "Item name is not valid. Item not added.";
var ew_cartRemoveMsg  = "Are you sure to remove this item from your shopping cart?";
var ew_cartEmptyMsg   = "No items";
var ew_shipEmptyMsg  = "No shipping details"; // 3.0
var ew_TextAreaCntMessage = "characters left"; // 3.0
var ew_fldID          = "id";
var ew_fldItemNumber  = "item_number"; // 0 (DO NOT LOCALIZE!)
var ew_fldItemName    = "item_name"; // 1
var ew_fldAmount      = "amount"; // 2
var ew_fldQuantity    = "quantity"; // 3
var ew_fldShipping    = "shipping"; // 4
var ew_fldShipping2   = "shipping2"; // 5
var ew_fldHandling    = "handling"; // 6
var ew_fldTax         = "tax"; // 7
var ew_fldOn0         = "on0"; // 8
var ew_fldOn0d        = "on0d"; // display
var ew_fldOn1         = "on1"; // 9
var ew_fldOn1d        = "on1d"; // display
var ew_fldOs0         = "os0"; // 10
var ew_fldOs0d        = "os0d"; // display
var ew_fldOs1         = "os1"; // 11
var ew_fldOs1d        = "os1d"; // display
var ew_fldDiscountType = "discounttype"; // 12 (2.0)
var ew_fldShipType    = "shiptype"; // 13 (2.0)
var ew_fldTaxType    = "taxtype"; // 14 (3.0)
var ew_fldOn2         = "on2"; // 15 (3.0)
var ew_fldOn2d        = "on2d"; // display
var ew_fldOn3         = "on3"; // 16 (3.0)
var ew_fldOn3d        = "on3d"; // display
var ew_fldOs2         = "os2"; // 17 (3.0)
var ew_fldOs2d        = "os2d"; // display (non js shopping cart)
var ew_fldOs3         = "os3"; // 18 (3.0)
var ew_fldOs3d        = "os3d"; // display (non js shopping cart)
var ew_fldOr0         = "or0";
var ew_fldOr1         = "or1";
var ew_fldOr2         = "or2"; // 3.0
var ew_fldOr3         = "or3"; // 3.0
var ew_fldWeight      = "weight"; // 19 (3.0)
var ew_fldWeightCart  = "weight_cart"; // 3.0
var ew_fldWeightUnit  = "weight_unit"; // 3.0
var ew_fldAmountBase  = "amount_base";
var ew_fldShipMethod    = "shipmethod"; // shipping method
var ew_fldFirstName   = "first_name"; // first name
var ew_fldLastName    = "last_name"; // last name
var ew_fldAddress1    = "address1"; // address1
var ew_fldAddress2    = "address2"; // address2
var ew_fldCity        = "city"; // city
var ew_fldState       = "state"; // state
var ew_fldZip         = "zip"; // zip
var ew_fldCountry     = "country"; // country
var ew_fldEmail       = "email"; // email
var ew_fldCustom    = "custom"; // custom // 3.0
var ew_shippingType = 2;
var ew_shippingTaxType = 0; // 3.0
var ew_taxType      = 2; // 3.0
// Profile Item post type (3.0)
// "0" = always post
// "1" = post if > 0
// "2" = post if >= 0
// "3" = always not post
var ew_profileTaxPostType = "1"; // 3.0
var ew_profileShippingPostType = "1"; // 3.0
var ew_weightCart = 0; // 3.0
var ew_weightUnit = "kgs"; // 3.0
var ew_fldHandlingCart = "handling_cart"; // handling_cart
var ew_HandlingCart = 0;
var ew_fldTaxCart     = "tax_cart"; // tax_cart
var ew_fldRemove      = "<img src='" + EW_ROOT_PATH + "images/delete.gif' alt='Remove' border='0'>";
var ew_descItemNumber = "Item #";
var ew_descItemName   = "Name";
var ew_descOption     = "Options";
var ew_descPrice     = "Price";
var ew_descQuantity   = "Qty";
var ew_descDiscount   = "Discount"; // discount
var ew_descAmount     = "Amount"; // amount
var ew_descSubtotal   = "Sub Total"; // sub total
var ew_descRemove     = "Remove";
var ew_descTotal1     = "<b>Total</b>";
var ew_descTotal2     = "<b>Total (Shipping, handling, and tax may be added upon checkout)</b>";
var ew_descTotal3     = "<b>Total</b>"; // confirm page total description
var ew_descShipping   = "Shipping Cost"; // confirm page shipping cost
var ew_descHandling   = "Handling Cost"; // confirm page handling cost
var ew_descTax        = "Tax"; // confirm page tax cost
var ew_urlCheckout    = "checkout.html";
var ew_urlShipping    = "shipping.html"; // shipping page
var ew_urlConfirm     = "confirm.html"; // confirm page
var ew_textCheckout   = "Checkout";
var ew_btnCheckout    = EW_ROOT_PATH + "images/ppcheckout.gif";
var ew_btnClickToPay  = EW_ROOT_PATH + "images/ppclicktopay.gif";
var ew_invalidAmount  = "Total amount must be greater than zero.";
//
var ew_priceCaption = "Price: ";
var ew_divAmountName = "div_amount_";
//
var ew_browserNotSupported = "Browser not supported. Please use newer browser like IE5+, NS6+ or FF1+.";
var ew_option1Message = "Please input";
var ew_option2Message = "Please input";
var ew_option3Message = "Please input"; // 3.0
var ew_option4Message = "Please input"; // 3.0
var ew_option1PleaseSelect = "Please select colour"; // 3.0
var ew_option2PleaseSelect = "Please select"; // 3.0
var ew_option3PleaseSelect = "Please select"; // 3.0
var ew_option4PleaseSelect = "Please select"; // 3.0
var ew_option5PleaseSelect = "Colour clay"; // 3.0
var ew_option6PleaseSelect = "Colour Yellow"; // 3.0
var ew_option7PleaseSelect = "Colour Blue"; // 3.0
var ew_option8PleaseSelect = "Colour Red"; // 3.0
var ew_option1None = "None"; // 3.0
var ew_option2None = "None"; // 3.0
var ew_option3None = "None"; // 3.0
var ew_option4None = "None"; // 3.0
var ew_option5None = "Clay"; // 3.0
var ew_option6None = "Yellow"; // 3.0
var ew_option7None = "Blue"; // 3.0
var ew_option8None = "Red"; // 3.0
var ew_RequiredMessage = "Please enter required field:";
var ew_InvalidMessage = "Invalid field:";
var ew_PleaseSelect = "Please Select";
var ew_disableColor = "#CCCCCC";
var ew_stateNA = "N.A.";
var ew_useMyPaypalAccount = "Use my Paypal account";
var ew_usePaypalStoredShippingAddress = "Use PayPal-stored shipping addresses";
var ew_firstName = "First Name";
var ew_lastName = "Last Name";
var ew_address1 = "Address 1";
var ew_address2 = "Address 2";
var ew_city = "City";
var ew_zip = "Postal Code";
var ew_country = "Country";
var ew_state = "State";
var ew_email = "Email";
var ew_shippingMethod = "<b>Shipping Method:</b> ";
var ew_custom = "Others"; // 3.0
var ew_customTextBox = false; // 3.0
// 3.0
var EW_OPTION_SELECT_ONE = 0
var EW_OPTION_SELECT_MULTIPLE = 1
var EW_OPTION_RADIO = 2
var EW_OPTION_CHECKBOX = 3
var EW_OPTION_TEXT = 4
//
var EW_OPTION_REPEAT_COLUMN = 5
var EW_OPTION_SELECT_MULTIPLE_SIZE = 4
// Region details
// - region id | region name
var ew_regionList  = "1,Asia|2,Africa|4,Central America|5,Europe|6,North America|7,Oceania|9,South America";
// Country details
// - region id , country id , country code | country name
var ew_countryList = "7,3,AU,Australia";
// State details
// - country id , state id , state code | state name
var ew_stateList = "";
//
// Discount details
// - discount type, discount quantity, discount rate (in percent)
//
var ew_discountList = "";
//
// Shipping cost details
// - if shipping type = 0, use qty range calculation (qty)
// - type, method, region, country, state, qty, basecost, extracost
// - if shipping type = 1, use price range calculation (price)
// - type, method, region, country, state, price, basecost, extracost
// - if shipping type = 2, use weight range calcuation (weight)
// - type, method, region, country, state, weight, basecost, extracost
//
var ew_shipMethodList = "0,Overnight express post (Australia wide only)";
var ew_shipcostList0 = "";
var ew_shipcostList1 = "";
var ew_shipcostList2 = "1,0,7,3,-1,10,2,0|1,0,7,3,-1,30,5,0|1,0,7,3,-1,500,8,0|1,0,7,3,-1,3000,12,0";
var ew_shipTypeList = "1,2";
//
// Tax details
// - type, region, country, state, tax rate (in percent)
//
var ew_taxList = "";
