//************************ varibles
StateTax=0.088;
TaxTotal=0.0;

//var SlipperCount=35+1;
//var slipper="24.95";
//var collegiate="28.95";
//var scuff="19.95";
var slipper="14.95";
var collegiate="14.95";
var scuff="9.95";


var BoxSet="14.95";
var FamilySet="19.95";
var FootPump="19.95";

var EdgeMaster="4";
var edgemaster="0";

var LampShipping="14.95";


var ColorSplits="19.95";
var ColorSplitsShipping="3.95";

var BlendyPen="19.95";
var BlendyPenShipping="3.95";

var BlendySplits="24.95";
var BlendySplitsShipping="6.95";

var Blendy5pc="19.95";
var Blendy5pcShipping="6.95";

var bot1="49.95";
var bot3="129.95";
var bot1ship="4.95";
var bot3ship="7.95";

var Grater="24.95";
var GraterShip="4.95";

var Brush="6.95";
var BrushShip="4.95";

var Peeler="7.95";
var PeelerShip="4.95";

var blopen="0";
var discus="0";
var lips="0";
var lamp="0";
var happy="0";
var nailjazz="0";
var spac="0";
var chopper="0";
var lampparts="0";
var garlic="0";
var pen="0";
var bag="0";
//************************


var LampList = new createArray(30);
for(t=0;t<30;t++)
  LampList[t] = new product('code','price','shipping','desc','quan','url');

var LipStickList = new createArray(41);
for(t=0;t<41;t++)
  LipStickList[t] = new product('code','price','shipping','desc','quan','url');

var HappyFeetList = new createArray(45);
for(t=0;t<45;t++)
  HappyFeetList[t] = new product('code','price','shipping','desc','quan','url');

var DiscusList = new createArray(18);
for(t=0;t<21;t++)
  DiscusList[t] = new product('code','price','shipping','desc','quan','url');

var BlopenList = new createArray(2);
for(t=0;t<2;t++)
  BlopenList[t] = new product('code','price','shipping','desc','quan','url');

var EdgeMasterList = new createArray(2);
for(t=0;t<2;t++)
  EdgeMasterList[t] = new product('code','price','shipping','desc','quan','url');

var NailJazzList = new createArray(3);
for(t=0;t<3;t++)
  NailJazzList[t] = new product('code','price','shipping','desc','quan','url');

var SpacList = new createArray(2);
for(t=0;t<2;t++)
  SpacList[t] = new product('code','price','shipping','desc','quan','url');

var ChopperList = new createArray(2);
for(t=0;t<2;t++)
  ChopperList[t] = new product('code','price','shipping','desc','quan','url');

var LampPartsList = new createArray(66);
for(t=0;t<66;t++)
  LampPartsList[t] = new product('code','price','shipping','desc','quan','url');

var PenList = new createArray(4);
for(t=0;t<4;t++)
  PenList[t] = new product('code','price','shipping','desc','quan','url');

var TabList = new createArray(2);
for(t=0;t<2;t++)
  TabList[t] = new product('code','price','shipping','desc','quan','url');

var GarlicList = new createArray(6);
for(t=0;t<8;t++)
  GarlicList[t] = new product('code','price','shipping','desc','quan','url');

var tax=0;
var items_ordered=1;
var item_num=0;
var LSTotal=0;
var LSOrderTotal=0;
var LSprice=0;
var FirstName;
var LastName;
var Address;
var City;
var State;
var Zip;
var Country;
var Phone;
var Email;
index = 0;
var send=false;
var temp=0;
var mess="";	
var order_discount_percent = 0.0;
actual_discount = 0;
vat_percent = 0.1;
var vat_value = 0;
var currency_text = '';
var currency_sign = '$';
vat_cost = 0;
var shipping_cost = 0;
uk_shipping=4.0;
overseas_shipping=6.0;
ordered_items_total = 0;
discounted_sub_total = 0;
total_amount_bill = 0;
discounts = 0;
five_nine_discount= 0.05;
ten_fourteen_discount=0.10;
fifteen_plus_discount=0.15;
var sub_total=0;
var HFsub_total=0;
var HFordered_items_total = 0;
var HFOrderTotal=0;
var HFShipping=0;
var Discus_Order=0;
var Discus_subtotal=0;
var Discus_shipping=0;
var Discus_total=0;
var Blopen_Order=0;
var Blopen_subtotal=0;
var Blopen_shipping=0;
var Blopen_total=0;
var EdgeMaster_Order=0;
var EdgeMaster_subtotal=0;
var EdgeMaster_shipping=0;
var EdgeMaster_total=0;
var Lamp_Order=0;
var Lamp_subtotal=0;
var Lamp_shipping=0;
var Lamp_total=0;

var NailJazz_Order=0;
var NailJazz_subtotal=0;
var NailJazz_shipping=0;
var NailJazz_total=0;

var Spac_Order=0;
var Spac_subtotal=0;
var Spac_shipping=0;
var Spac_total=0;

var Chopper_Order=0;
var Chopper_subtotal=0;
var Chopper_shipping=0;
var Chopper_total=0;

var LampParts_Order=0;
var LampParts_subtotal=0;
var LampParts_shipping=0;
var LampParts_total=0;


var Pen_Order=0;
var Pen_subtotal=0;
var Pen_shipping=0;
var Pen_total=0;

var Bag_Order=0;
var Bag_subtotal=0;
var Bag_shipping=0;
var Bag_total=0;

var Garlic_order=0;
var Garlic_subtotal=0;
var Garlic_shipping=0;
var Garlic_total=0;



//********************************************  cookie scripts  *****************************

function getCookieVal (offset)
{  
  var endstr = document.cookie.indexOf (";", offset);  
  if (endstr == -1)    
    endstr = document.cookie.length;  
  return unescape(document.cookie.substring(offset, endstr));
}


function SetCookie(name, value)
{
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}

function GetCookie (name)
{  
  var arg = name + "=";  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
      return getCookieVal (j);    
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return 'no id';//mess;
}




function SetPersonalCookie()//************* this sets sold and shiptp address
{
  var expDays = 365; // number of days the cookie should last
  var expDate = new Date();
  expDate.setTime(expDate.getTime() +  (24 * 60 * 60 * 1000 * expDays)); 
  var mess;
  mess=document.order.aaNameFirst.value+";"+
    document.order.aaNameLast.value+";"+
    document.order.aaAddress.value+";"+
    document.order.aaCity.value+";"+
    document.order.aaState.value+";"+
    document.order.aaZip.value+";"+
    document.order.aaCountry.value+";"+
    document.order.aaTelephone.value+";"+
    document.order.email.value;
    SetCookie('Personal', mess, expDate);

  mess=document.order.ssNameFirst.value+";"+
    document.order.ssNameLast.value+";"+
    document.order.ssAddress.value+";"+
    document.order.ssCity.value+";"+
    document.order.ssState.value+";"+
    document.order.ssZip.value+";"+
    document.order.ssCountry.value;
    SetCookie('Shipto', mess, expDate);
}




function savecookie()
{
var name='name';
var value='value';
var argv = savecookie.arguments;  
var argc = savecookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}

function ReadLipstickCookie()
{
  var string='';
  var arg='LipstickOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read Lipstick Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        LipStickList[item].shipping='0.00';
        LipStickList[item].quan=temp;
        LipStickList[item].price='11.00';
        LipStickList[item].url='http://pnwintl.com/Lipstick.html';
        t++;
        item++;
      }
    LipStickList[0].code='LS-Green';
    LipStickList[0].desc='Green';
    LipStickList[1].code='LS-Yellow';
    LipStickList[1].desc='Yellow';
    LipStickList[2].code='LS-Brown';
    LipStickList[2].desc='Brown';
    LipStickList[3].code='LS-White';
    LipStickList[3].desc='White';
    LipStickList[4].code='LS-Blue';
    LipStickList[4].desc='Blue';
    LipStickList[5].code='LS-Black';
    LipStickList[5].desc='Black';
    LipStickList[6].code='LS-2';
    LipStickList[6].desc='Grape_Ice';
    LipStickList[7].code='LS-3';
    LipStickList[7].desc='Light_Pink';
    LipStickList[8].code='LS-5';
    LipStickList[8].desc='Frosted_Copper';
    LipStickList[9].code='LS-6';
    LipStickList[9].desc='Orange';
    LipStickList[10].code='LS-19';
    LipStickList[10].desc='Mocha';
    LipStickList[11].code='LS-20';
    LipStickList[11].desc='Frosted_ Lilac';
    LipStickList[12].code='LS-22';
    LipStickList[12].desc='Mulberry';
    LipStickList[13].code='LS-23';
    LipStickList[13].desc='Simply_Red';
    LipStickList[14].code='LS-25';
    LipStickList[14].desc='Salmon_Berry';
    LipStickList[15].code='LS-26';
    LipStickList[15].desc='Mahogany';
    LipStickList[16].code='LS-28';
    LipStickList[16].desc='Clear_gloss';
    LipStickList[17].code='LS-29';
    LipStickList[17].desc='Ice_Mocha';
    LipStickList[18].code='LS-30';
    LipStickList[18].desc='Passion_Berry';
    LipStickList[19].code='LS-31';
    LipStickList[19].desc='Geranium';
    LipStickList[20].code='LS-32';
    LipStickList[20].desc='Raisin Rave';
    LipStickList[21].code='LS-33';
    LipStickList[21].desc='Barely_Nude';
    LipStickList[22].code='LS-34';
    LipStickList[22].desc='Pearl';
    LipStickList[23].code='LS-38';
    LipStickList[23].desc='Dusty_Pink';
    LipStickList[24].code='LS-41';
    LipStickList[24].desc='Espresso';
    LipStickList[25].code='LS-42';
    LipStickList[25].desc='Dusty_Rose';
    LipStickList[26].code='LS-43';
    LipStickList[26].desc='Eggplant';
    LipStickList[27].code='LS-44';
    LipStickList[27].desc='Pink_Ice';
    LipStickList[28].code='LS-45';
    LipStickList[28].desc='Moody_Mauve';
    LipStickList[29].code='LS-47';
    LipStickList[29].desc='Chili';
    LipStickList[30].code='LS-53';
    LipStickList[30].desc='Frosted_Amethyst';
    LipStickList[31].code='LS-91';
    LipStickList[31].desc='Cocoa';
    LipStickList[32].code='LS-92';
    LipStickList[32].desc='Peach';
    LipStickList[33].code='LS-93';
    LipStickList[33].desc='Bronze';
    LipStickList[34].code='LS-8';
    LipStickList[34].desc='Split-Pink/Orchid';
    LipStickList[35].code='LS-9';
    LipStickList[35].desc='Spilt-Blue/Yellow';
    LipStickList[36].code='LS-17';
    LipStickList[36].desc='Split-Blue/Red';
    LipStickList[37].code='LS-94';
    LipStickList[37].desc='Split-Sunset';
    LipStickList[38].code='LS-95';
    LipStickList[38].desc='Split-Hollywood_Pink';
    LipStickList[39].code='LS-96';
    LipStickList[39].desc='Split-Toner';
    LipStickList[40].code='LS-99';
    LipStickList[40].desc='Spice';
    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

function ReadHappyFeetCookie()
{
  var string='';
  var arg='SlipperOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read HappyFeet Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        HappyFeetList[item].quan=temp;
        HappyFeetList[item].shipping='0.00';
        HappyFeetList[item].price=slipper;
        HappyFeetList[item].url='http://pnwintl.com/HappyFeet.html';
        t++;
        item++;
      }
    x=0;
    HappyFeetList[x].code='HF-MultiColor-Kids';
    HappyFeetList[x].desc='MultiColor_Kids';
    x++;
    HappyFeetList[x].code='HF-MultiColor-Med';
    HappyFeetList[x].desc='MultiColor_Medium';
    x++;
    HappyFeetList[x].code='HF-MultiColor-Lrg';
    HappyFeetList[x].desc='MultiColor_Large';
    x++;
    HappyFeetList[x].code='HF-MultiColor-Xlg';
    HappyFeetList[x].desc='MultiColor_X-Large';
    x++;
    HappyFeetList[x].code='HF-MultiColor-XXlg';
    HappyFeetList[x].desc='MultiColor_XX-Large';
    x++;
    HappyFeetList[x].code='HF-Red&Green-Med';
    HappyFeetList[x].desc='Red_&_Green_Medium';
    x++;
    HappyFeetList[x].code='HF-Red&Green-Lrg';
    HappyFeetList[x].desc='Red_&_Green_Large';
    x++;
    HappyFeetList[x].code='HF-Red&Green-Xlg';
    HappyFeetList[x].desc='Red_&_GreenX-Large';
    x++;
    HappyFeetList[x].code='HF-Blue&White-Med';
    HappyFeetList[x].desc='Blue_&_White_Medium';
    x++;
    HappyFeetList[x].code='HF-Blue&White-Lrg';
    HappyFeetList[x].desc='Blue_&_White_Large';
    x++;
    HappyFeetList[x].code='HF-Blue&White-Xlg';
    HappyFeetList[x].desc='Blue_&_White_X-Large';
    x++;
    HappyFeetList[x].code='HF-Blue&White-XXlg';
    HappyFeetList[x].desc='Blue_&_White_XX-Large';
    x++;
    HappyFeetList[x].code='HF-Red&Black&White-Kids';
    HappyFeetList[x].desc='Red_Black_&_White_Kids';
    x++;
    HappyFeetList[x].code='HF-Red&Black&White-Medium';
    HappyFeetList[x].desc='Red_Black_&_White_Medium';
    x++;
    HappyFeetList[x].code='HF-Red&Black&White-Lrg';
    HappyFeetList[x].desc='Red_Black_&_White_Large';
    x++;
    HappyFeetList[x].code='HF-Red&Black&White-Xlg';
    HappyFeetList[x].desc='Red_Black_&_White_X-Large';
    x++;
    HappyFeetList[x].code='HF-Red&Black&White-XXlg';
    HappyFeetList[x].desc='Red_Black_&_White_XX-Large';
    x++;
    HappyFeetList[x].code='HF-Aqua-Med';
    HappyFeetList[x].desc='Aqua_Medium';
    x++;
    HappyFeetList[x].code='HF-Aqua-Lrg';
    HappyFeetList[x].desc='Aqua_Large';
    x++;
    HappyFeetList[x].code='HF-Aqua-Xlg';
    HappyFeetList[x].desc='Aqua_X-Large';
    x++;
    HappyFeetList[x].code='HF-Rainbow-Med';
    HappyFeetList[x].desc='Rainbow_Medium';
    x++;
    HappyFeetList[x].code='HF-Rainbow-Lrg';
    HappyFeetList[x].desc='Rainbow_Large';
    x++;
    HappyFeetList[x].code='HF-Rainbow-Xlg';
    HappyFeetList[x].desc='Rainbow_X-Large';
// Patriotic
    x++;
    HappyFeetList[x].code='HF-Patriotic-Kids';
    HappyFeetList[x].desc='Patriotic_Kids';
    HappyFeetList[x].price=collegiate;// same price as collegiate
    x++;
    HappyFeetList[x].code='HF-Patriotic-Med';
    HappyFeetList[x].desc='Patriotic_Medium';
    HappyFeetList[x].price=collegiate;// same price as collegiate
    x++;
    HappyFeetList[x].code='HF-Patriotic-Lrg';
    HappyFeetList[x].desc='Patriotic_Large';
    HappyFeetList[x].price=collegiate;// same price as collegiate
    x++;
    HappyFeetList[x].code='HF-Patriotic-Xlg';
    HappyFeetList[x].desc='Patriotic_X-Large';
    HappyFeetList[x].price=collegiate;// same price as collegiate
    x++;
    HappyFeetList[x].code='HF-Patriotic-XXlg';
    HappyFeetList[x].desc='Patriotic_XX-Large';
    HappyFeetList[x].price=collegiate;// same price as collegiate
// collegiate
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-UW-Med';
    HappyFeetList[x].desc='U_of_Wash_Medium';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-UW-Lrg';
    HappyFeetList[x].desc='U_of_Wash_Large';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-UW-Xlg';
    HappyFeetList[x].desc='U_of_Wash_X-Large';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-WaST-Med';
    HappyFeetList[x].desc='Wash_State_Medium';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-WaST-Lrg';
    HappyFeetList[x].desc='Wash_State_Large';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-WaST-Xlg';
    HappyFeetList[x].desc='Wash_State_X-Large';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-UO-Med';
    HappyFeetList[x].desc='U_of_Oregon_Medium';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-UO-Lrg';
    HappyFeetList[x].desc='U_of_Oregon_Large';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-UO-Xlg';
    HappyFeetList[x].desc='U_of_Oregon_X-Large';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-OrgST-Med';
    HappyFeetList[x].desc='Oregon_State_Medium';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-OrgST-Lrg';
    HappyFeetList[x].desc='Oregon_State_Large';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-OrgST-Xlg';
    HappyFeetList[x].desc='Oregon_State_X-Large';
    x++;
    HappyFeetList[x].price=collegiate;
    HappyFeetList[x].code='HF-OrgST-XXlg';
    HappyFeetList[x].desc='Oregon_State_XX-Large';

// scuff
    x++;
    HappyFeetList[x].price=scuff;
    HappyFeetList[x].code='Scuff-BlkGryWhtLg';
    HappyFeetList[x].desc='Scuff_Black_Grey&_White_Large';
    x++;
    HappyFeetList[x].price=scuff;
    HappyFeetList[x].code='Scuff-BlkGryWhtXlg';
    HappyFeetList[x].desc='Scuff_Black_Grey&_White_XLarge';
    x++;
    HappyFeetList[x].price=scuff;
    HappyFeetList[x].code='Scuff-RbowMed';
    HappyFeetList[x].desc='Scuff_Rainbow_Medium';
    x++;
    HappyFeetList[x].price=scuff;
    HappyFeetList[x].code='Scuff-RbowLg';
    HappyFeetList[x].desc='Scuff_Rbow_Large';
    x++;
//    HappyFeetList[x].price=slipper;

    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

function ReadDiscusCookie()
{
//alert('readDiscusCookie');
  var string='';
  var arg='DiscusOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read Discus Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        DiscusList[item].quan=temp;
        DiscusList[item].url='http://pnwintl.com/discgear.htm';
        t++;
        item++;
      }
      DiscusList[0].code='Discus20';
      DiscusList[0].desc='Black';
      DiscusList[0].shipping='4.95';
      DiscusList[0].price='24.95';
//
      DiscusList[1].code='Discus20';
      DiscusList[1].desc='Blue';
      DiscusList[1].shipping='4.95';
      DiscusList[1].price='24.95';
//
      DiscusList[2].code='Discus20';
      DiscusList[2].desc='Green';
      DiscusList[2].shipping='4.95';
      DiscusList[2].price='24.95';
//
      DiscusList[3].code='Discus20';
      DiscusList[3].desc='Yellow';
      DiscusList[3].shipping='4.95';
      DiscusList[3].price='24.95';
//
      DiscusList[4].code='Discus20';
      DiscusList[4].desc='Red';
      DiscusList[4].shipping='4.95';
      DiscusList[4].price='24.95';
//
      DiscusList[5].code='Discus20';
      DiscusList[5].desc='Purple';
      DiscusList[5].shipping='4.95';
      DiscusList[5].price='24.95';
//
      DiscusList[6].code='Discus40';
      DiscusList[6].desc='Black';
      DiscusList[6].shipping='4.95';
      DiscusList[6].price='39.95';
//
      DiscusList[7].code='Discus40';
      DiscusList[7].desc='Purple';
      DiscusList[7].shipping='4.95';
      DiscusList[7].price='39.95';
//
      DiscusList[8].code='Discus_Docker';
      DiscusList[8].desc='Black';
      DiscusList[8].shipping='4.95';
      DiscusList[8].price='12.95';
//
      DiscusList[9].code='ModPod';
      DiscusList[9].desc='ModPod';
      DiscusList[9].shipping='4.95';
      DiscusList[9].price='19.95';
//
      DiscusList[10].code='Selector40';
      DiscusList[10].desc='Black';
      DiscusList[10].shipping='9.95';
      DiscusList[10].price='29.95';
//
      DiscusList[11].code='Selector50';
      DiscusList[11].desc='Black';
      DiscusList[11].shipping='9.95';
      DiscusList[11].price='49.95';
//
      DiscusList[12].code='Selector50';
      DiscusList[12].desc='Wine&Black';
      DiscusList[12].shipping='9.95';
      DiscusList[12].price='49.95';
//
      DiscusList[13].code='Selector100';
      DiscusList[13].desc='Black';
      DiscusList[13].shipping='9.95';
      DiscusList[13].price='79.95';
//
      DiscusList[14].code='Selector100';
      DiscusList[14].desc='Wine&Black';
      DiscusList[14].shipping='9.95';
      DiscusList[14].price='79.95';
//
      DiscusList[15].code='Discware';
      DiscusList[15].desc='Album';
      DiscusList[15].shipping='4.95';
      DiscusList[15].price='12.95';
//
      DiscusList[16].code='CleanKit';
      DiscusList[16].desc='Clean&Rep_Kit';
      DiscusList[16].shipping='4.95';
      DiscusList[16].price='12.95';
    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

function ReadBlopenCookie()
{
  var string='';
  var arg='BlopenOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read Blopen Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        //BlopenList[item].shipping='0.00';
        BlopenList[item].quan=temp;
        //BlopenList[item].price='9.00';
        BlopenList[item].url='http://pnwintl.com/Blopens.htm';
        t++;
        item++;
      }
    BlopenList[0].code='BP-Box';
    BlopenList[0].desc='Blopen_Box_Set';
    BlopenList[0].price=BoxSet;
    BlopenList[0].shipping='4.95';
    BlopenList[1].code='BP-Family';
    BlopenList[1].desc='Blopen_Family_Set';
    BlopenList[1].price=FamilySet;
    BlopenList[1].shipping='5.95';
    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

function ReadEdgeMasterCookie()
{
//alert('readEdgeMasterCookie');
  var string='';
  var arg='EdgeMaster=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
//alert('cookie='+document.cookie.substring(i, j))      
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read EdgeMaster Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        EdgeMasterList[item].code='EM';
        EdgeMasterList[item].desc='EdgeMaster';
        EdgeMasterList[item].shipping='4.00';
        EdgeMasterList[item].quan=temp;
        EdgeMasterList[item].price='4.00';
        EdgeMasterList[item].url='http://pnwintl.com/EdgeMaster.htm';
        t++;
        item++;
      }
    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

function ReadLampCookie()
{
  var string='';
  var arg='LampOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read Lamp Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        LampList[item].quan=temp;
        LampList[item].shipping=LampShipping;
        LampList[item].url='http://pnwintl.com/MistLamps.htm';
        t++;
        item++;
      }
    x=0;
    LampList[x].code='1000_blue';
    LampList[x].desc='1000_blue';
    LampList[x].price='79.95';
    x++;
    LampList[x].code='1000_white';
    LampList[x].desc='1000_white';
    LampList[x].price='79.95';
    x++;
    LampList[x].code='1000_green';
    LampList[x].desc='1000_green';
    LampList[x].price='79.95';
    x++;
    LampList[x].code='1000_pink';
    LampList[x].desc='1000_pink';
    LampList[x].price='79.95';
    x++;
    LampList[x].code='1000_yellow';
    LampList[x].desc='1000_yellow';
    LampList[x].price='79.95';
//
    x++;
    LampList[x].code='2000_blue';
    LampList[x].desc='2000_blue';
    LampList[x].price='79.95';
    x++;
    LampList[x].code='2000_white';
    LampList[x].desc='2000_white';
    LampList[x].price='79.95';
    x++;
    LampList[x].code='2000_green';
    LampList[x].desc='2000_green';
    LampList[x].price='79.95';
    x++;
    LampList[x].code='2000_pink';
    LampList[x].desc='2000_pink';
    LampList[x].price='79.95';
    x++;
    LampList[x].code='2000_yellow';
    LampList[x].desc='2000_yellow';
    LampList[x].price='79.95';
//
    x++;
    LampList[x].code='100_blue';
    LampList[x].desc='100_blue';
    LampList[x].price='59.95';
    x++;
    LampList[x].code='100_white';
    LampList[x].desc='100_white';
    LampList[x].price='59.95';
//
    x++;
    LampList[x].code='4000_blue';
    LampList[x].desc='4000_blue';
    LampList[x].price='64.95';
    x++;
    LampList[x].code='4000_white';
    LampList[x].desc='4000_white';
    LampList[x].price='64.95';
    x++;
    LampList[x].code='4000_green';
    LampList[x].desc='4000_green';
    LampList[x].price='64.95';
    x++;
    LampList[x].code='4000_pink';
    LampList[x].desc='4000_pink';
    LampList[x].price='64.95';
    x++;
    LampList[x].code='4000_yellow';
    LampList[x].desc='4000_yellow';
    LampList[x].price='64.95';
//
    x++;
    LampList[x].code='6000_blue';
    LampList[x].desc='6000_blue';
    LampList[x].price='64.95';
    x++;
    LampList[x].code='6000_white';
    LampList[x].desc='6000_white';
    LampList[x].price='64.95';
//
    x++;
    LampList[x].code='7000_blue';
    LampList[x].desc='7000_blue';
    LampList[x].price='64.95';
    x++;
    LampList[x].code='7000_white';
    LampList[x].desc='7000_white';
    LampList[x].price='64.95';
    x++;
    LampList[x].code='7000_pink';
    LampList[x].desc='7000_pink';
    LampList[x].price='64.95';
    x++;
    LampList[x].code='7000_yellow';
    LampList[x].desc='7000_yellow';
    LampList[x].price='64.95';
//
    x++;
    LampList[x].code='8000_Frost_white';
    LampList[x].desc='8000_Frost_white';
    LampList[x].price='59.95';
//
    x++;
    LampList[x].code='IceCube_Frost_White';
    LampList[x].desc='IceCube_Frost_white';
    LampList[x].price='69.95';
//
    x++;
    LampList[x].code='Floor_lamp';
    LampList[x].desc='Floor_lamp';
    LampList[x].price='119.95';
//
    x++;
    LampList[x].code='9001_Crystal';
    LampList[x].desc='9001_Crystal';
    LampList[x].price='49.95';
//
    x++;
    LampList[x].code='9002_Crystal';
    LampList[x].desc='9002_Crystal';
    LampList[x].price='49.95';

    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

function ReadNailJazzCookie()
{
  var string='';
  var arg='NailJazzOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read NailJazz Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        NailJazzList[item].shipping='4.95';
        NailJazzList[item].quan=temp;
        NailJazzList[item].price='29.95';
        NailJazzList[item].url='http://pnwintl.com/NailRitz.htm';
        t++;
        item++;
      }
    NailJazzList[0].code='NR-FT';
    NailJazzList[0].desc='NailRitz_French';
    NailJazzList[1].code='NR-Mt';
    NailJazzList[1].desc='NailRitz_Matt';
    NailJazzList[2].code='NR-Sh';
    NailJazzList[2].desc='NailRitz_Shimmer';
    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

function ReadSpacCookie()
{
  var string='';
  var arg='SpacOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read Spac Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        SpacList[item].code='Spac';
        SpacList[item].desc='Spacepac';
        SpacList[item].shipping='4';
        SpacList[item].quan=temp;
        SpacList[item].price='6';
        SpacList[item].url='Spacepac.htm';
        t++;
        item++;
      }
    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

function ReadChopperCookie()
{
  var string='';
  var arg='ChopperOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read Chopper Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        ChopperList[item].code='Chopper';
        ChopperList[item].desc='Chopper';
        ChopperList[item].shipping='6.95';
        ChopperList[item].quan=temp;
        ChopperList[item].price='39.95';
        ChopperList[item].url='http://pnwintl.com/Chopper.htm';
        t++;
        item++;
      }
    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

function ReadLampPartsCookie()
{
  var string='';
  var arg='LampParts=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
// alert('read document.cookie string='+document.cookie);
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read Lamp Parts Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        LampPartsList[item].quan=temp;
        LampPartsList[item].url='http://pnwintl.com/mistlamp_parts.htm';
        t++;
        item++;
      }
    x=0;
    LampPartsList[x].code='CD-1';
    LampPartsList[x].desc='Ceramic_Disc_Kit';
    LampPartsList[x].price='5.00';
    LampPartsList[x].shipping='0.00';
    x++;
    LampPartsList[x].code='LU-1';
    LampPartsList[x].desc='Mist/Light Unit';
    LampPartsList[x].price='19.95';
    LampPartsList[x].shipping='4.95';
    x++;
    LampPartsList[x].code='TR-1';
    LampPartsList[x].desc='Xformer_Power_source';
    LampPartsList[x].price='9.95';
    LampPartsList[x].shipping='4.95';
    x++;
    LampPartsList[x].code='1000_BB';
    LampPartsList[x].desc='1000_blue_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='1000_WB';
    LampPartsList[x].desc='1000_white_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='1000_GB';
    LampPartsList[x].desc='1000_green_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='1000_PB';
    LampPartsList[x].desc='1000_pink_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='1000_YB';
    LampPartsList[x].desc='1000_yellow_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='1000_ST';
    LampPartsList[x].desc='1000_Stand';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='1000_BC';
    LampPartsList[x].desc='1000_blue_cover';
    LampPartsList[x].price='10.';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='1000_WC';
    LampPartsList[x].desc='1000_white_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='1000_GC';
    LampPartsList[x].desc='1000_green_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='1000_PC';
    LampPartsList[x].desc='1000_pink_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='1000_YC';
    LampPartsList[x].desc='1000_yellow_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
//
    x++;
    LampPartsList[x].code='2000_BB';
    LampPartsList[x].desc='2000_blue_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='2000_WB';
    LampPartsList[x].desc='2000_white_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='2000_GB';
    LampPartsList[x].desc='2000_green_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='2000_PB';
    LampPartsList[x].desc='2000_pink_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='2000_YB';
    LampPartsList[x].desc='2000_yellow_bowl';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='2000_ST';
    LampPartsList[x].desc='2000_Stand';
    LampPartsList[x].price='39.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='2000_BC';
    LampPartsList[x].desc='2000_blue_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='2000_WC';
    LampPartsList[x].desc='2000_white_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='2000_GC';
    LampPartsList[x].desc='2000_green_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='2000_PC';
    LampPartsList[x].desc='2000_pink_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='2000_YC';
    LampPartsList[x].desc='2000_yellow_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
//
    x++;
    LampPartsList[x].code='100_BB';
    LampPartsList[x].desc='100_blue_bowl';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='100_WB';
    LampPartsList[x].desc='100_white_bowl';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='100_BC';
    LampPartsList[x].desc='100_blue_cover';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='100_WC';
    LampPartsList[x].desc='100_white_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
//
    x++;
    LampPartsList[x].code='4000_BB';
    LampPartsList[x].desc='4000_blue_bowl';
    LampPartsList[x].price='32.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='4000_WB';
    LampPartsList[x].desc='4000_white_bowl';
    LampPartsList[x].price='32.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='4000_GB';
    LampPartsList[x].desc='4000_green_bowl';
    LampPartsList[x].price='32.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='4000_PB';
    LampPartsList[x].desc='4000_pink_bowl';
    LampPartsList[x].price='32.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='4000_YB';
    LampPartsList[x].desc='4000_yellow_bowl';
    LampPartsList[x].price='32.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='4000_BC';
    LampPartsList[x].desc='4000_blue_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='4000_WC';
    LampPartsList[x].desc='4000_white_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='4000_GC';
    LampPartsList[x].desc='4000_green_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='4000_PC';
    LampPartsList[x].desc='4000_pink_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='4000_YC';
    LampPartsList[x].desc='4000_yellow_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
//
    x++;
    LampPartsList[x].code='6000_BB';
    LampPartsList[x].desc='6000_blue_bowl';
    LampPartsList[x].price='32.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='6000_WB';
    LampPartsList[x].desc='6000_white_bowl';
    LampPartsList[x].price='32.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='6000_ST';
    LampPartsList[x].desc='6000_Stand';
    LampPartsList[x].price='32.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='6000_BC';
    LampPartsList[x].desc='6000_blue_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='6000_WC';
    LampPartsList[x].desc='6000_white_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
//
    x++;
    LampPartsList[x].code='7000_BB';
    LampPartsList[x].desc='7000_blue_bowl';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='7000_WB';
    LampPartsList[x].desc='7000_white_bowl';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='7000_PB';
    LampPartsList[x].desc='7000_pink_bowl';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='7000_YB';
    LampPartsList[x].desc='7000_yellow_bowl';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='7000_ST';
    LampPartsList[x].desc='7000_Stand';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='7000_BC';
    LampPartsList[x].desc='7000_blue_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='7000_WC';
    LampPartsList[x].desc='7000_white_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='7000_PC';
    LampPartsList[x].desc='7000_pink_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
    x++;
    LampPartsList[x].code='7000_YC';
    LampPartsList[x].desc='7000_yellow_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
//
    x++;
    LampPartsList[x].code='8000_WB';
    LampPartsList[x].desc='8000_frostwhite_bowl';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='8000_ST';
    LampPartsList[x].desc='8000_Frosted_Stand';
    LampPartsList[x].price='29.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='8000_WC';
    LampPartsList[x].desc='8000_frostwhite_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
//
    x++;
    LampPartsList[x].code='IC-B';
    LampPartsList[x].desc='Ice_Cube_bowl';
    LampPartsList[x].price='35.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='IC-ST';
    LampPartsList[x].desc='Ice_Cube_Stand';
    LampPartsList[x].price='35.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='IC-C';
    LampPartsList[x].desc='Ice_Cube_Cubes';
    LampPartsList[x].price='19.95';
    LampPartsList[x].shipping='9.95';
//
    x++;
    LampPartsList[x].code='FL-B';
    LampPartsList[x].desc='Floor_Lamp_bowl';
    LampPartsList[x].price='59.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='FL-ST';
    LampPartsList[x].desc='Floor_Lamp_Stand';
    LampPartsList[x].price='59.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='FL-C';
    LampPartsList[x].desc='Floor_Lamp_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='3.95';
//
    x++;
    LampPartsList[x].code='9001-CB';
    LampPartsList[x].desc='9001_Clear_bowl';
    LampPartsList[x].price='24.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='9001-C';
    LampPartsList[x].desc='9001_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='9.95';
//
    x++;
    LampPartsList[x].code='9002-CB';
    LampPartsList[x].desc='9002_Clear_bowl';
    LampPartsList[x].price='24.95';
    LampPartsList[x].shipping='9.95';
    x++;
    LampPartsList[x].code='9002-C';
    LampPartsList[x].desc='9002_cover';
    LampPartsList[x].price='10.00';
    LampPartsList[x].shipping='9.95';

    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}


function ReadPenCookie()
{
  var string='';
  var arg='PenOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read Pen Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        //WiggleCarList[item].shipping='0.00';
        PenList[item].quan=temp;
        //WiggleCarList[item].price='9.00';
        PenList[item].url='http://pnwintl.com/blendy_pen.htm';
        t++;
        item++;
      }
    PenList[0].code='Splz';
    PenList[0].desc='Color_Splits_Set';
    PenList[0].price=ColorSplits;
    PenList[0].shipping=ColorSplitsShipping;
    PenList[1].code='Blndy';
    PenList[1].desc='Blendy_Pen_Set';
    PenList[1].price=BlendyPen;
    PenList[1].shipping=BlendyPenShipping;
    PenList[2].code='BlndySplz';
    PenList[2].desc='Blendy&Splits_Set';
    PenList[2].price=BlendySplits;
    PenList[2].shipping=BlendySplitsShipping;

    PenList[3].code='Blndy5pc';
    PenList[3].desc='Blendy_5_pc_Set';
    PenList[3].price=Blendy5pc;
    PenList[3].shipping=Blendy5pcShipping;
    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}


function ReadGarlicCookie()
{
  var string='';
  var arg='GarlicOrder=';  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen)
  {    
    var j = i + alen;    
//alert('read Garlic Cookie string='+document.cookie.substring(i,j));
    if (document.cookie.substring(i, j) == arg)      
    {
      var item=0;
      string=getCookieVal(j);
//alert('read Garlic Cookie string='+string);
      for(t=1;t<=string.length;t++)
      {
        temp=string.charAt(t-1);
        temp+=string.charAt(t);
        GarlicList[item].quan=temp;
        GarlicList[item].url='http://pnwintl.com/Garlic_Grater.htm';
        t++;
        item++;
      }
    GarlicList[0].code='CGRed';
    GarlicList[0].desc='Grater_Red';
    GarlicList[0].price=Grater;
    GarlicList[0].shipping=GraterShip;
    GarlicList[1].code='CGBlue';
    GarlicList[1].desc='Grater_Blue';
    GarlicList[1].price=Grater;
    GarlicList[1].shipping=GraterShip;
    GarlicList[2].code='CGGrn';
    GarlicList[2].desc='Grater_Green';
    GarlicList[2].price=Grater;
    GarlicList[2].shipping=GraterShip;
    GarlicList[3].code='CGWide';
    GarlicList[3].desc='Grater_Wide_Red';
    GarlicList[3].price=Grater;
    GarlicList[3].shipping=GraterShip;


    GarlicList[4].code='BrushYel';
    GarlicList[4].desc='Brush_Yellow';
    GarlicList[4].price=Brush;
    GarlicList[4].shipping=BrushShip;


    GarlicList[5].code='GarlicPeeler';
    GarlicList[5].desc='Garlic_Peeler';
    GarlicList[5].price=Peeler;
    GarlicList[5].shipping=PeelerShip;
    }
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0)
      break;   
  }  
  return null;
}

//#########################################################################################
function GetPersonalCookie()
{
  mess=GetCookie('Personal');
  var lastpoint = -1;
  var len=mess.length;
  lastpoint = mess.indexOf(";");
  if (lastpoint > -1)
  {
    document.order.aaNameFirst.value=mess.substring(0,lastpoint);
    mess=mess.substring(lastpoint+1,len);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.aaNameLast.value=mess.substring(0,lastpoint);
    mess=mess.substring(lastpoint+1,len);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.aaAddress.value=mess.substring(0,lastpoint);
    mess=mess.substring(lastpoint+1,len);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.aaCity.value=mess.substring(0,lastpoint);      
    mess=mess.substring(lastpoint+1,len);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.aaState.value=mess.substring(0,lastpoint);      
    mess=mess.substring(lastpoint+1,len);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.aaZip.value=mess.substring(0,lastpoint);      
    mess=mess.substring(lastpoint+1,len);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.aaCountry.value=mess.substring(0,lastpoint);      
    mess=mess.substring(lastpoint+1,len);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.aaTelephone.value=mess.substring(0,lastpoint);      
    mess=mess.substring(lastpoint+1,len);
    document.order.email.value=mess;
  }
}


function GetShiptoCookie()
{
  mess=GetCookie('Shipto');
  var lastpoint = -1;
  var len=mess.length;
  lastpoint = mess.indexOf(";");
  if (lastpoint > -1)
  {
//alert('mess='+mess);
    document.order.ssNameFirst.value=mess.substring(0,lastpoint);
    mess=mess.substring(lastpoint+1,len);
//alert('mess='+mess);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.ssNameLast.value=mess.substring(0,lastpoint);
    mess=mess.substring(lastpoint+1,len);
//alert('mess='+mess);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.ssAddress.value=mess.substring(0,lastpoint);
    mess=mess.substring(lastpoint+1,len);
//alert('mess='+mess);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.ssCity.value=mess.substring(0,lastpoint);      
    mess=mess.substring(lastpoint+1,len);
//alert('mess='+mess);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.ssState.value=mess.substring(0,lastpoint);      
    mess=mess.substring(lastpoint+1,len);
//alert('mess='+mess);
    len=mess.length;
    lastpoint = mess.indexOf(";");
    document.order.ssZip.value=mess.substring(0,lastpoint);      
//alert('mess='+mess);
    mess=mess.substring(lastpoint+1,len);
//alert('mess='+mess);
    document.order.ssCountry.value=mess;
//alert('mess='+mess);
//    len=mess.length;
//    lastpoint = mess.indexOf(";");
//    document.order.aaTelephone.value=mess.substring(0,lastpoint);      
//    mess=mess.substring(lastpoint+1,len);
//alert('mess='+mess);
//    document.order.email.value=mess;

  }

}

//***********************************************  order math  *********************************

function createArray(n)
//n		size of array
//init	what you want all values initialized to
{
  this.length = n
  var i = 0
  for (i = 1 ; i < n ; i++) 
    this[i] =null;	
  return this
}

function ExpandArray(num)
{
  for(t=0;t<num;t++)
  {
    LampList[t] = new product('code','price','shipping','desc','quan','url');
    LipStickList[t] = new product('code','price','shipping','desc','quan','url');
    HappyFeetList[t] = new product('code','price','shipping','desc','quan','url');
    DiscusList[t] = new product('code','price','shipping','desc','quan','url');
    BlopenList[t] = new product('code','price','shipping','desc','quan','url');
    EdgeMasterList[t] = new product('code','price','shipping','desc','quan','url');
    NailJazzList[t] = new product('code','price','shipping','desc','quan','url');
    SpacList[t] = new product('code','price','shipping','desc','quan','url');
    LampPartsList[t] = new product('code','price','shipping','desc','quan','url');
    PenList[t] = new product('code','price','shipping','desc','quan','url');
    TabList[t] = new product('code','price','shipping','desc','quan','url');
    GarlicList[t] = new product('code','price','shipping','desc','quan','url');
  }
}

function product(code,price,shipping,desc,quan,url)
{
  this.code = code;
  this.price = price;
  this.shipping = shipping;
  this.desc = desc;
  this.quan =quan;
  this.url = url;
 return this;
}

function state()
{
  tax=0;
  temp=document.order.aaState.value;
  temp=temp.substring(0,2);
  if(temp.toUpperCase()=='WA')
    tax=1;
  update();  
}

function update()
{
  OrderTotal=LSOrderTotal+
    Discus_subtotal+
    Lamp_subtotal+
    HFsub_total+
    Blopen_subtotal+
    NailJazz_subtotal+
    Spac_subtotal+
    Chopper_subtotal+
    LampParts_subtotal+
    Pen_subtotal+
    Bag_subtotal+
    Garlic_subtotal+
    EdgeMaster_subtotal;//HFOrderTotal;
    new_price=format(''+OrderTotal);
    document.order.SubTotal.value=new_price;

// line 1107
  var shipping=HFShipping+Discus_shipping+
  Blopen_shipping+
  Lamp_shipping+
  NailJazz_shipping+
  Spac_shipping+
  Chopper_shipping+
  LampParts_shipping+
  EdgeMaster_shipping+
  Pen_shipping+
  Bag_shipping+
  Garlic_shipping;
  new_price=format(''+shipping);
//  document.write('<input type="hidden" name="Shipping" value='+new_price+'>\n');
  document.order.Shipping.value=new_price;

  if(tax==1)
  {
//    new_price=format(''+((shipping+OrderTotal)*StateTax));
//    document.order.StateTax.value=new_price;
//    OrderTotal+=(shipping+OrderTotal)*StateTax;
  }
  
  if(lips)
  {
  new_price=format(''+LSprice);
  document.order.ls_disc_price.value=new_price;//format(LSprice,2);
  new_price=format(''+LSOrderTotal);
  document.order.ls_total_price.value=new_price;
  new_price=format(''+LSTotal);
  document.order.ls_qty_total.value=new_price;
  }


// happyfeet
  if(happy)
  {
  new_price=format(''+HFShipping);
  document.order.hf_shipping.value=new_price;
  new_price=format(''+HFsub_total);
  document.order.hf_subtotal.value=new_price;
  new_price=format(''+HFOrderTotal);
  document.order.hf_total.value=new_price;
  }


// discgear
  if(discus)
  {
//  Discus_shipping+=(Discus_Order-1)*2;
  new_price=format(''+Discus_shipping);
  document.order.discus_shipping.value=new_price;
  Discus_total=Discus_subtotal+Discus_shipping;//Discus*price;
  new_price=format(''+Discus_total);
  document.order.discus_total.value=new_price;
  new_price=format(''+Discus_subtotal);
  document.order.discus_subtotal.value='$'+new_price;
  }

// blopen
  if(blopen)
  {
    new_price=format(''+Blopen_shipping);
    document.order.Blopen_shipping.value=new_price;
    Blopen_total=Blopen_subtotal+Blopen_shipping;//Blopen*price;
  new_price=format(''+Blopen_total);
  document.order.Blopen_total.value=new_price;
  new_price=format(''+Blopen_subtotal);
  document.order.Blopen_subtotal.value='$'+new_price;
  }

// edgemaster
  if(edgemaster)
  {
    new_price=format(''+EdgeMaster_shipping);
    document.order.EdgeMaster_shipping.value=new_price;
    EdgeMaster_total=EdgeMaster_subtotal+EdgeMaster_shipping;
  new_price=format(''+EdgeMaster_total);
  document.order.EdgeMaster_total.value=new_price;
  new_price=format(''+EdgeMaster_subtotal);
  document.order.EdgeMaster_subtotal.value='$'+new_price;
  }
// lamp
  if(lamp)
  {
    new_price=format(''+Lamp_shipping);
    document.order.Lamp_shipping.value=new_price;
    Lamp_total=Lamp_subtotal+Lamp_shipping;
    new_price=format(''+Lamp_total);
    document.order.Lamp_total.value=new_price;
    new_price=format(''+Lamp_subtotal);
    document.order.Lamp_subtotal.value='$'+new_price;
  }

// NailJazz
  if(nailjazz)
  {
    new_price=format(''+NailJazz_shipping);
    document.order.NailJazz_shipping.value=new_price;
    NailJazz_total=NailJazz_subtotal+NailJazz_shipping;//NailJazz*price;
    new_price=format(''+NailJazz_total);
    document.order.NailJazz_total.value=new_price;
    new_price=format(''+NailJazz_subtotal);
    document.order.NailJazz_subtotal.value='$'+new_price;
  }

// Spac
  if(spac)
  {
    new_price=format(''+Spac_shipping);
    document.order.Spac_shipping.value=new_price;
    Spac_total=Spac_subtotal+Spac_shipping;//Spac*price;
    new_price=format(''+Spac_total);
    document.order.Spac_total.value=new_price;
    new_price=format(''+Spac_subtotal);
    document.order.Spac_subtotal.value='$'+new_price;
  }

// Chopper
  if(chopper)
  {
    new_price=format(''+Chopper_shipping);
    document.order.Chopper_shipping.value=new_price;
    Chopper_total=Chopper_subtotal+Chopper_shipping;//Spac*price;
    new_price=format(''+Chopper_total);
    document.order.Chopper_total.value=new_price;
    new_price=format(''+Chopper_subtotal);
    document.order.Chopper_subtotal.value='$'+new_price;
  }
// LampParts
  if(lampparts)
  {
    new_price=format(''+LampParts_shipping);
    document.order.LampParts_shipping.value=new_price;
    LampParts_total=LampParts_subtotal+LampParts_shipping;//Spac*price;
    new_price=format(''+LampParts_total);
    document.order.LampParts_total.value=new_price;
    new_price=format(''+LampParts_subtotal);
    document.order.LampParts_subtotal.value='$'+new_price;
  }
// Pen
  if(pen)
  {
    new_price=format(''+Pen_shipping);
    document.order.Pen_shipping.value=new_price;
    Pen_total=Pen_subtotal+Pen_shipping;//Pen*price;
    new_price=format(''+Pen_total);
    document.order.Pen_total.value=new_price;
    new_price=format(''+Pen_subtotal);
    document.order.Pen_subtotal.value='$'+new_price;
  }

// bag
  if(bag)
  {
    new_price=format(''+Bag_shipping);
    document.order.Bag_shipping.value=new_price;
    Bag_total=Bag_subtotal+Bag_shipping;//Blopen*price;
    new_price=format(''+Bag_total);
    document.order.Bag_total.value=new_price;
    new_price=format(''+Bag_subtotal);
    document.order.Bag_subtotal.value='$'+new_price;
  }

// garlic
  if(garlic)
  {
    new_price=format(''+Garlic_shipping);
    document.order.Garlic_shipping.value=new_price;
    Garlic_total=Garlic_subtotal+Garlic_shipping;
    new_price=format(''+Garlic_total);
    document.order.Garlic_total.value=new_price;
    new_price=format(''+Garlic_subtotal);
    document.order.Garlic_subtotal.value='$'+new_price;
  }

  new_price=format(''+(OrderTotal+shipping));
  document.order.GrandTotal.value=new_price;
}

