

// required entry to load the cookies (for older browsers)
  LoadIt ();               // force load of data - REQUIRED!
  if (root.xx_id == "") {  // REQUIRED!
// set-list for any cart-wide options here
//    SetCartHN (0, 1,1);  // $1 handling charge for whole cart.
//    SetCartSH (1, 1,5, 2,7, 3,8.50);
    SetPerSH  (0, 1,10, 300,9, 750,8 );  //Shipping and handling based on total purchase price, paired array  $0-$299.99 @ 10% $300+ @ 9%  etc.
    SetCartDC (0, 2,5, 4,10, 6,12, 8,15);   //sets cart-wide discount based on number of pieces ordered. 2+@5%, 4+@10% etc.
//The following set cart display options, and internal PayPal options
    root.xx_cc   = on;   // display credit card line
    root.xx_cdmp = off;  // root diagnostic cookie dump (leave off)
    root.xx_chkbx= off;   // agreement checkbox
    root.xx_coup = off;   // ask for coupon code on cart page
    root.xx_cval = "okay,aloha,mahalo"; // input acceptable coupon passwords here
    root.xx_cdis = "5,10,15"; // corresponding coupon percentage discounts okay=5%, aloha=10%, etc.
    root.xx_camt = "0,0,0";  // corresponding coupon specific monetary amount discount
    root.xx_dadd = on;   // display cart when add-cart is clicked.
    root.xx_gwbx = on;   // gift wrapping checkbox
    root.xx_gwcg = 5;   // giftwrapping charge per item (if selected)
    root.xx_img  = on;   // show images in cart (SetImg)
    root.xx_mamt = 0;    // minimum amount of order, or zero.
    root.xx_mqty = 1;    // minimum quantity of order, or zero.
    root.xx_pc   = on;   // display product category in item list
    root.xx_prt  = on;   // Make mail/fax form available in cart
    root.xx_siz  = off;   // for img, on = resize, off = use orig thumbnail size
    root.xx_sum  = off;   // displays product cat summaries below shopping cart table
    root.xx_tax  = off;   // asks user for tax options
    root.xx_wt   = on;   // display weight totals
    root.xx_wtent= "";   // default entry = ounces, "gm" = grams.
    root.xx_wtrup= 10;   // rounding value - oz always up to lbs
                         //  gm rounds up to these grams.
// place for user-specific options
    root.xx_bn   = "";   // business code, or null
    root.xx_can  = "";   // place for PayPal cancel return path
    root.xx_cbt  = "";   // continue button text, or null

// for security reasons your paypal ID is broken into bits and pieces.
    if (root.xx_id  == "") {
        $at1 = "@";    // the sum of these parts make up your paypal email address
        $dot = ".";
        $typ = "com";
        $id1 = "made";    // real id1  (change here)
        $id2 = "inhawaii";    // real id2  (change here)
        $url = "hawaii.rr";       // real URL (change here)
        root.xx_id = $id1 + $id2 + $at1 + $url + $dot + $typ; //<-formula to put it together
    }

    root.xx_cur  = "USD";// enter default currency code (or null)
    root.xx_lc   = "US"; // enter default country code (or null)
    root.xx_ret  = "";   // place for PayPal return path, or null
    root.xx_sty  = "";   // place for PayPal page style, or null
// required entry to store stuff off
    root.store ();       // required entry!!
}                      // REQUIRED!
// global variables to form MY addresses


