
var order = new Object();  // object to store order items in
var root  = new Object();  // selection criteria
var on    = true;
var off   = false;
var cntr  = 0;             // items in object
var opts  = 5;             // number of options to allow
var shpr  = function (wt) {return 0;} // what to charge for shipping;
var stxt  = "";            // shipping text
var spos  = -1;            // shipping position selector
var ttax  = 1;             // percent for taxes
var ttxt  = "Insurance";           // tax text
var insu  = 0;           // Insurance amount
var tpos  = -1;            // tax position selector
var air   = 1;			// is airmail avail?

var tamt=0,tqty=0,twgt=0,wgt=0,thnd=0;  // totals

function CalcRoot () {  // calc root stuff
  if (root.shp) spos=0; 
  if (root.tax) tpos=0;
}

function DispTots () {  // display totals on the page
var tmp,d;
  d = document.orderf;
  d.sub.value = Dollar (tamt);
  d.twgt.value = twgt;

  d.air = air;
  document.orderf["air"].value = air;



  if (root.shp) d.shp.value = Dollar (shpr (twgt));
//  tmp = tamt * ttax/100;
  if (spos == 1) if (tamt == 0) tmp = 0;
  if (spos == 1) if (tamt <= 100) tmp = .85;
  if (spos == 1) tmp = .85 + .85 * Math.floor (tamt / 100.0);

  if (spos >= 2) if (tamt == 0) tmp = 0;
  if (spos >= 2) if (tamt <= 100) tmp = 1.50;
  if (spos >= 2) tmp = 1.60 + 1.60 * Math.floor (tamt / 100.0);

if (spos == 68) tmp = 0;	//set none for code 42

  if (root.tax) d.tax.value = Dollar (tmp);
  thnd = 0;                    // assume the worst;
  if (d.hnd) d.hnd.value = "0.00";
  if (tamt*1.0 < root.hamt) {  // calculate handling charge
      thnd = root.hand;        // figure it out
      if (d.hnd) d.hnd.value = Dollar (thnd);
  }
  d.tot.value = Dollar (tamt + shpr (twgt) + tmp + thnd);

insu = tmp
}


function Dollar (val) {     // force to valid dollar amount
var str,pos,rnd=0;
  if (val < .995) rnd = 1;  // for old Netscape browsers
  str = escape (val*1.0 + 0.005001 + rnd);  // float, round, escape
  pos = str.indexOf (".");  // should be one, but OK if not
  if (pos > 0) str = str.substring (rnd, pos + 3);
  return str;               // return valid string
}

function GetOrder (id, des, amt, wgt) {  // get all ordered items
var i,nr,val,qty,pos;
var op = new Array ();    // accumulate options here
  tamt=0,tqty=0,twgt=0;   // zero totals
  nr = id.substring (2);  // get number part of ID
  qty = document.orderf["qty" + nr].value;  // get qty
  if (isNaN (qty)) {      // test entry
    alert ("That is not a valid number!  Try again.");
    return;
	}
  if (qty <= -1) {      // test entry
    alert ("That is not a valid quantity!  Try again.");
    return;
  	}
  for (i=1; i<=opts; i++) {     // see if any options
    if (document.orderf["op" + i + nr]) {
      val = document.orderf["op" + i + nr].value;  // get option
      op[i] = val;
      pos  = val.indexOf ("+"); // price increment?
      if (pos > 0) amt = amt + val.substring (pos + 1)*1.0;
      pos  = val.indexOf ("%"); // percent change?
      if (pos > 0) amt = amt + (amt * val.substring (pos + 1)/100.0);
    }
    else op[i] = "";
  }
  document.orderf["prc" + nr].value = Dollar (qty * amt);
  document.orderf["toz" + nr].value = qty * wgt;
  if (cntr == 0) order = new Object (); // zap object
  cntr = cntr + 1;               // bump counter so no zap next time
  order[id] = new Object ();     // create new entry
  for (i=1; i<=opts; i++)        // load options
    if (op[i] != "") des = des + ", OP" + i + "=" + op[i];
  order[id].des = des;           // load up values
  order[id].amt = Dollar (amt);
  order[id].qty = qty;
  if (wgt) order[id].wgt = wgt;
    else order[id].wgt = 0;
  for (i in order) {             // calc totals we might use
    qty = order[i].qty*1.0;
    tamt = tamt + order[i].amt * qty;  // total amount
    tqty = tqty + qty;                 // total quantity
    twgt = twgt + order[i].wgt * qty;  // total ounces

  if (tamt <= 16) air = 1;  //if tamt is less than $30, air=1 and country menu gives fcmi options
  if (tamt >= 17) air = 0;	//if tamt is more than $30, air=0 and country menu gives express only to countries with fcmi issues
  if (tamt >= 199) air = 2; //if tamt is more than $199, air =2 and country menu gives only express

  spos = 0;
  shpr = function (wt) {return 0;}  // zap it

if (air == 2) {
document.orderf.shipper.options.length=0; //clear drop list
document.orderf.shipper.options[0]=new Option("Select your country 2", "Select your country", false, true);
document.orderf.shipper.options[1]=new Option("USA-Priority", "USA-Priority", false, false);
document.orderf.shipper.options[2]=new Option("Anguilla-Express", "Anguilla-Express", false, false);
document.orderf.shipper.options[3]=new Option("Argentina-Express", "Argentina-Express", false, false);
document.orderf.shipper.options[4]=new Option("Australia-Airmail", "Australia-Airmail", false, false);
document.orderf.shipper.options[5]=new Option("Australia-Express", "Australia-Express", false, false);
document.orderf.shipper.options[6]=new Option("Austria-Express", "Austria-Express", false, false);
document.orderf.shipper.options[7]=new Option("Belgium-Express", "Belgium-Express", false, false);
document.orderf.shipper.options[8]=new Option("Canada-Express", "Canada-Express", false, false);
document.orderf.shipper.options[9]=new Option("Chile-Express", "Chile-Express", false, false);
document.orderf.shipper.options[10]=new Option("Costa Rica-Express (limited service area)", "Costa Rica-Express", false, false);
document.orderf.shipper.options[11]=new Option("Cyprus-Express", "Cyprus-Express", false, false);
document.orderf.shipper.options[12]=new Option("Czech Republic-Express", "Czech Republic-Express", false, false);
document.orderf.shipper.options[13]=new Option("Denmark-Express", "Denmark-Express", false, false);
document.orderf.shipper.options[14]=new Option("Estonia-Express (limited service area)", "Estonia-Express", false, false);
document.orderf.shipper.options[15]=new Option("Finland-Express", "Finland-Express", false, false);
document.orderf.shipper.options[16]=new Option("France-Express", "France-Express", false, false);
document.orderf.shipper.options[17]=new Option("Germany-Express", "Chile-Express", false, false);
document.orderf.shipper.options[18]=new Option("Greece-Express", "Greece-Express", false, false);
document.orderf.shipper.options[19]=new Option("Hong Kong-Express", "Hong Kong-Express", false, false);
document.orderf.shipper.options[20]=new Option("Hungary-Express", "Hungary-Express", false, false);
document.orderf.shipper.options[21]=new Option("Iceland-Express", "Iceland-Express", false, false);
document.orderf.shipper.options[22]=new Option("Ireland-Express", "Ireland-Express", false, false);
document.orderf.shipper.options[23]=new Option("Israel-Express", "Israel-Express", false, false);
document.orderf.shipper.options[24]=new Option("Italy-Express", "Italy-Express", false, false);
document.orderf.shipper.options[25]=new Option("Jamaica-Express", "Jamaica-Express", false, false);
document.orderf.shipper.options[26]=new Option("Japan-Express", "Japan-Express", false, false);
document.orderf.shipper.options[27]=new Option("Latvia-Express", "Latvia-Express", false, false);
document.orderf.shipper.options[28]=new Option("Lithuania-Express", "Lithuania-Express", false, false);
document.orderf.shipper.options[29]=new Option("Luxembourg-Express", "Luxembourg-Express", false, false);
document.orderf.shipper.options[30]=new Option("Malta-Express", "Malta-Express", false, false);
document.orderf.shipper.options[31]=new Option("Netherlands-Express", "Netherlands-Express", false, false);
document.orderf.shipper.options[32]=new Option("New Zealand-Express", "New Zealand-Express", false, false);
document.orderf.shipper.options[33]=new Option("Norway-Express", "Norway-Express", false, false);
document.orderf.shipper.options[34]=new Option("Portugal-Express", "Portugal-Express", false, false);
document.orderf.shipper.options[35]=new Option("Singapore-Express", "Singapore-Express", false, false);
document.orderf.shipper.options[36]=new Option("South Korea-Express", "South Korea-Express", false, false);
document.orderf.shipper.options[37]=new Option("Spain-Express", "Spain-Express", false, false);
document.orderf.shipper.options[38]=new Option("Sweden-Express", "Sweden-Express", false, false);
document.orderf.shipper.options[39]=new Option("Switzerland-Express", "Switzerland-Express", false, false);
document.orderf.shipper.options[40]=new Option("Taiwan-Express", "Taiwan-Express", false, false);
document.orderf.shipper.options[41]=new Option("Thailand-Express", "Thailand-Express", false, false);
document.orderf.shipper.options[42]=new Option("United Kingdom-Express", "United Kingdom-Express", false, false);
}
if (air == 1) {
document.orderf.shipper.options.length=0; //clear drop list
document.orderf.shipper.options[0]=new Option("Select your country 1", "Select your country", false, true);
document.orderf.shipper.options[1]=new Option("USA-Priority");
document.orderf.shipper.options[2]=new Option("Anguilla-Airmail", "Anguilla-Airmail", false, false);
document.orderf.shipper.options[3]=new Option("Anguilla-Express", "Anguilla-Express", false, false);
document.orderf.shipper.options[4]=new Option("Argentina-Express", "Argentina-Express", false, false);
document.orderf.shipper.options[5]=new Option("Australia-Airmail", "Australia-Airmail", false, false);
document.orderf.shipper.options[6]=new Option("Australia-Express", "Australia-Express", false, false);
document.orderf.shipper.options[7]=new Option("Austria-Airmail", "Austria-Airmail", false, false);
document.orderf.shipper.options[8]=new Option("Austria-Express", "Austria-Express", false, false);
document.orderf.shipper.options[9]=new Option("Belgium-Express", "Belgium-Express", false, false);
document.orderf.shipper.options[10]=new Option("Canada-Airmail", "Canada-Airmail", false, false);
document.orderf.shipper.options[11]=new Option("Canada-Express", "Canada-Express", false, false);
document.orderf.shipper.options[12]=new Option("Chile-Express", "Chile-Express", false, false);
document.orderf.shipper.options[13]=new Option("Costa Rica-Express (limited service area)", "Costa Rica-Express", false, false);
document.orderf.shipper.options[14]=new Option("Cyprus-Airmail", "Cyprus-Airmail", false, false);
document.orderf.shipper.options[15]=new Option("Cyprus-Express", "Cyprus-Express", false, false);
document.orderf.shipper.options[16]=new Option("Czech Republic-Express", "Czech Republic-Express", false, false);
document.orderf.shipper.options[17]=new Option("Denmark-Airmail", "Denmark-Airmail", false, false);
document.orderf.shipper.options[18]=new Option("Denmark-Express", "Denmark-Express", false, false);
document.orderf.shipper.options[19]=new Option("Estonia-Express (limited service area)", "Estonia-Express", false, false);
document.orderf.shipper.options[20]=new Option("Finland-Airmail", "Finland-Airmail", false, false);
document.orderf.shipper.options[21]=new Option("Finland-Express", "Finland-Express", false, false);
document.orderf.shipper.options[22]=new Option("France-Airmail", "France-Airmail", false, false);
document.orderf.shipper.options[23]=new Option("France-Express", "France-Express", false, false);
document.orderf.shipper.options[24]=new Option("Germany-Airmail", "Germany-Airmail", false, false);
document.orderf.shipper.options[25]=new Option("Germany-Express", "Chile-Express", false, false);
document.orderf.shipper.options[26]=new Option("Greece-Airmail", "Greece-Airmail", false, false);
document.orderf.shipper.options[27]=new Option("Greece-Express", "Greece-Express", false, false);
document.orderf.shipper.options[28]=new Option("Hong Kong-Airmail", "Hong Kong-Airmail", false, false);
document.orderf.shipper.options[29]=new Option("Hong Kong-Express", "Hong Kong-Express", false, false);
document.orderf.shipper.options[30]=new Option("Hungary-Express", "Hungary-Express", false, false);
document.orderf.shipper.options[31]=new Option("Iceland-Airmail", "Iceland-Airmail", false, false);
document.orderf.shipper.options[32]=new Option("Iceland-Express", "Iceland-Express", false, false);
document.orderf.shipper.options[33]=new Option("Ireland-Airmail", "Ireland-Airmail", false, false);
document.orderf.shipper.options[34]=new Option("Ireland-Express", "Ireland-Express", false, false);
document.orderf.shipper.options[35]=new Option("Israel-Airmail", "Israel-Airmail", false, false);
document.orderf.shipper.options[36]=new Option("Israel-Express", "Israel-Express", false, false);
document.orderf.shipper.options[37]=new Option("Italy-Express", "Italy-Express", false, false);
document.orderf.shipper.options[38]=new Option("Jamaica-Airmail", "Jamaica-Airmail", false, false);
document.orderf.shipper.options[39]=new Option("Jamaica-Express", "Jamaica-Express", false, false);
document.orderf.shipper.options[40]=new Option("Japan-Airmail", "Japan-Airmail", false, false);
document.orderf.shipper.options[41]=new Option("Japan-Express", "Japan-Express", false, false);
document.orderf.shipper.options[42]=new Option("Latvia-Express", "Latvia-Express", false, false);
document.orderf.shipper.options[43]=new Option("Lithuania-Express", "Lithuania-Express", false, false);
document.orderf.shipper.options[44]=new Option("Luxembourg-Express", "Luxembourg-Express", false, false);
document.orderf.shipper.options[45]=new Option("Malta-Express", "Malta-Express", false, false);
document.orderf.shipper.options[46]=new Option("Netherlands-Express", "Netherlands-Express", false, false);
document.orderf.shipper.options[47]=new Option("New Zealand-Airmail", "New Zealand-Airmail", false, false);
document.orderf.shipper.options[48]=new Option("New Zealand-Express", "New Zealand-Express", false, false);
document.orderf.shipper.options[49]=new Option("Norway-Airmail", "Norway-Airmail", false, false);
document.orderf.shipper.options[50]=new Option("Norway-Express", "Norway-Express", false, false);
document.orderf.shipper.options[51]=new Option("Portugal-Express", "Portugal-Express", false, false);
document.orderf.shipper.options[52]=new Option("Singapore-Express", "Singapore-Express", false, false);
document.orderf.shipper.options[53]=new Option("South Korea-Express", "South Korea-Express", false, false);
document.orderf.shipper.options[54]=new Option("Spain-Airmail", "Spain-Airmail", false, false);
document.orderf.shipper.options[55]=new Option("Spain-Express", "Spain-Express", false, false);
document.orderf.shipper.options[56]=new Option("Sweden-Airmail", "Sweden-Airmail", false, false);
document.orderf.shipper.options[57]=new Option("Sweden-Express", "Sweden-Express", false, false);
document.orderf.shipper.options[58]=new Option("Switzerland-Airmail", "Switzerland-Airmail", false, false);
document.orderf.shipper.options[59]=new Option("Switzerland-Express", "Switzerland-Express", false, false);
document.orderf.shipper.options[60]=new Option("Taiwan-Airmail", "Taiwan-Airmail", false, false);
document.orderf.shipper.options[61]=new Option("Taiwan-Express", "Taiwan-Express", false, false);
document.orderf.shipper.options[62]=new Option("Thailand-Express", "Thailand-Express", false, false);
document.orderf.shipper.options[63]=new Option("United Kingdom-Airmail", "United Kingdom-Airmail", false, false);
document.orderf.shipper.options[64]=new Option("United Kingdom-Express", "United Kingdom-Express", false, false);
document.orderf.shipper.options[65]=new Option("Code 42", "Code 42", false, false);
}
if (air == 0) {
document.orderf.shipper.options.length=0; //clear drop list
document.orderf.shipper.options[0]=new Option("Select your country 0", "Select your country", false, false);
document.orderf.shipper.options[1]=new Option("USA-Priority", "USA-Priority", false, false);
document.orderf.shipper.options[2]=new Option("Anguilla-Express", "Anguilla-Express", false, false);
document.orderf.shipper.options[3]=new Option("Argentina-Express", "Argentina-Express", false, false);
document.orderf.shipper.options[4]=new Option("Australia-Airmail", "Australia-Airmail", false, false);
document.orderf.shipper.options[5]=new Option("Australia-Express", "Australia-Express", false, false);
document.orderf.shipper.options[6]=new Option("Austria-Express", "Austria-Express", false, false);
document.orderf.shipper.options[7]=new Option("Belgium-Express", "Belgium-Express", false, false);
document.orderf.shipper.options[8]=new Option("Canada-Airmail", "Canada-Airmail", false, false);
document.orderf.shipper.options[9]=new Option("Canada-Express", "Canada-Express", false, false);
document.orderf.shipper.options[10]=new Option("Chile-Express", "Chile-Express", false, false);
document.orderf.shipper.options[11]=new Option("Costa Rica-Express (limited service area)", "Costa Rica-Express", false, false);
document.orderf.shipper.options[12]=new Option("Cyprus-Express", "Cyprus-Express", false, false);
document.orderf.shipper.options[13]=new Option("Czech Republic-Express", "Czech Republic-Express", false, false);
document.orderf.shipper.options[14]=new Option("Denmark-Express", "Denmark-Express", false, false);
document.orderf.shipper.options[15]=new Option("Estonia-Express (limited service area)", "Estonia-Express", false, false);
document.orderf.shipper.options[16]=new Option("Finland-Express", "Finland-Express", false, false);
document.orderf.shipper.options[17]=new Option("France-Express", "France-Express", false, false);
document.orderf.shipper.options[18]=new Option("Germany-Express", "Chile-Express", false, false);
document.orderf.shipper.options[19]=new Option("Greece-Express", "Greece-Express", false, false);
document.orderf.shipper.options[20]=new Option("Hong Kong-Express", "Hong Kong-Express", false, false);
document.orderf.shipper.options[21]=new Option("Hungary-Express", "Hungary-Express", false, false);
document.orderf.shipper.options[22]=new Option("Iceland-Express", "Iceland-Express", false, false);
document.orderf.shipper.options[23]=new Option("Ireland-Express", "Ireland-Express", false, false);
document.orderf.shipper.options[24]=new Option("Israel-Express", "Israel-Express", false, false);
document.orderf.shipper.options[25]=new Option("Italy-Express", "Italy-Express", false, false);
document.orderf.shipper.options[26]=new Option("Jamaica-Express", "Jamaica-Express", false, false);
document.orderf.shipper.options[27]=new Option("Japan-Airmail", "Japan-Airmail", false, false);
document.orderf.shipper.options[28]=new Option("Japan-Express", "Japan-Express", false, false);
document.orderf.shipper.options[29]=new Option("Latvia-Express", "Latvia-Express", false, false);
document.orderf.shipper.options[30]=new Option("Lithuania-Express", "Lithuania-Express", false, false);
document.orderf.shipper.options[31]=new Option("Luxembourg-Express", "Luxembourg-Express", false, false);
document.orderf.shipper.options[32]=new Option("Malta-Express", "Malta-Express", false, false);
document.orderf.shipper.options[33]=new Option("Netherlands-Express", "Netherlands-Express", false, false);
document.orderf.shipper.options[34]=new Option("New Zealand-Airmail", "New Zealand-Airmail", false, false);
document.orderf.shipper.options[35]=new Option("New Zealand-Express", "New Zealand-Express", false, false);
document.orderf.shipper.options[36]=new Option("Norway-Express", "Norway-Express", false, false);
document.orderf.shipper.options[37]=new Option("Portugal-Express", "Portugal-Express", false, false);
document.orderf.shipper.options[38]=new Option("Singapore-Express", "Singapore-Express", false, false);
document.orderf.shipper.options[39]=new Option("South Korea-Express", "South Korea-Express", false, false);
document.orderf.shipper.options[40]=new Option("Spain-Express", "Spain-Express", false, false);
document.orderf.shipper.options[41]=new Option("Sweden-Airmail", "Sweden-Airmail", false, false);
document.orderf.shipper.options[42]=new Option("Sweden-Express", "Sweden-Express", false, false);
document.orderf.shipper.options[43]=new Option("Switzerland-Airmail", "Switzerland-Airmail", false, false);
document.orderf.shipper.options[44]=new Option("Switzerland-Express", "Switzerland-Express", false, false);
document.orderf.shipper.options[45]=new Option("Taiwan-Express", "Taiwan-Express", false, false);
document.orderf.shipper.options[46]=new Option("Thailand-Express", "Thailand-Express", false, false);
document.orderf.shipper.options[47]=new Option("United Kingdom-Airmail", "United Kingdom-Airmail", false, false);
document.orderf.shipper.options[48]=new Option("United Kingdom-Express", "United Kingdom-Express", false, false);
document.orderf.shipper.options[49]=new Option("Code 42", "Code 42", false, false);
}

  }

if (twgt <= 5) {twgt = Math.floor(twgt + 6.00)} else {twgt = Math.floor(twgt + 7.00);} 
// is product weight 5oz or less? if yes add 6oz packing weight 
// if no get ounces add 7 for packing


  DispTots ();                         // calc totals
}

function SendCart () {  // send the cart to PayPal
var frst = true;  // 1st pass thru items.
var winpar = "width=800,height=550,scrollbars," +
             "location,resizable,status";
var strn   = "https://www.paypal.com/cgi-bin/webscr?cmd=_cart" +
             "&upload=1" +
             "&business=" + root.busi +
             "&currency_code=" + root.ccod +
             "&lc=" + root.lc;
var i,j=0,des;
  for (i in order) {  // send all valid data
    if (order[i].qty > 0) {
      j = j + 1;
      des = order[i].des;
      if (j == 1) {  // put in descriptions for 1st item
        des = des + ", SHP=" + stxt;
        strn = strn + "&handling_cart=" + Dollar (thnd);
      }
      strn = strn + "&item_name_"    + j + "=" + escape (des) +
                    "&item_number_"  + j + "=" + i +
                    "&quantity_"     + j + "=" + order[i].qty +
                    "&amount_"       + j + "=" + order[i].amt;
      if (spos >= 0) {  // there is some shipping activity
        if (frst) {     // first time thru
          strn = strn + "&shipping_" + j + "=" + Dollar (insu + shpr(twgt));
        } else {        // every other time thru
          strn = strn + "&shipping_" + j + "=0";
        }
      }
      if (tpos >= 0) {   // there is some tax activity
        if (frst) {     // first time thru edited to give zero tax to paypal
          strn = strn + "&tax_"      + j + "=0";
        } else {        // every other time thru
          strn = strn + "&tax_"      + j + "=0";
        }
      }
      frst = false;
    }
  }
  if (j > 0) window.open (strn, "paypal", winpar);
}

function SetShp (obj) {  // set shipping on user selection
  shpr = function (wt) {return 0;}  // zap it
  spos = obj.selectedIndex;  // which option selected
  stxt = obj.options[spos].text;
  // set various shipping functions.

if (stxt == "Select your country") shpr = function (wt) {	// No selection
  	if (wt <= 16) {return 0;}}

if (stxt == "USA-Priority") shpr = function (wt) {	//US Priority --1.2009--
  	if (wt <= 16) {return 4.95;}			// to 1
  	if (wt > 16 & wt < 32) {return 7.60;}	// 1-2
  	if (wt >= 32 & wt < 48) {return 9.90;}	// 2-3
  	if (wt >= 48 & wt < 64) {return 11.95;}	// 3-4
  	if (wt >= 64 & wt < 80) {return 13.75;}}	// 4-5

if (stxt == "Anguilla-Airmail") shpr = function (wt) {	//Anguilla FCMI Grp 9 --1.2009--
  	if (wt <= 7) {return 5.90;}				// to 7
  	if (wt == 8) {return 6.65;}				// 8
  	if (wt > 8 & wt < 12) {return 8.25;}	// 9-11
  	if (wt >= 12 & wt < 16) {return 9.85;}	// 12-15
  	if (wt >= 16 & wt < 20) {return 11.45;} // 16-19
  	if (wt >= 20 & wt < 24) {return 13.05;} // 20-23
  	if (wt >= 24 & wt < 28) {return 14.65;} // 24-27
  	if (wt >= 28 & wt < 32) {return 16.25;}	// 28-31
  	if (wt >= 32 & wt < 36) {return 17.85;}	// 32-35
  	if (wt >= 36 & wt < 40) {return 19.45;}	// 36-39
  	if (wt >= 40 & wt < 44) {return 21.05;}	// 40-43
  	if (wt >= 44 & wt < 48) {return 22.65;}	// 44-47
  	if (wt >= 48 & wt < 52) {return 24.25;}	// 48-51
  	if (wt >= 52 & wt < 56) {return 25.85;}	// 52-55
  	if (wt >= 56 & wt < 60) {return 27.45;}	// 56-59
  	if (wt >= 60 & wt < 65) {return 29.05;}}	// 60-64

if (stxt == "Anguilla-Express") shpr = function (wt) {	//Anguilla EMI Grp 9--1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1-2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2-3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3-4
  	if (wt >= 64 & wt < 80) {return 46.46;}}	// 4-5

if (stxt == "Argentina-Express") shpr = function (wt) {	//Argentina EMI Grp 9 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1-2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2-3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3-4
  	if (wt >= 64 & wt < 80) {return 46.46;}}	// 4-5

if (stxt == "Australia-Airmail") shpr = function (wt) {	//Australia FCMI Grp 3 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Australia-Express") shpr = function (wt) {	//Australia EMI Grp 10 --1.2009-- online rate
  	if (wt <= 16) {return 25.71;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.73;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 39.56;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 44.39;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 49.68;}}	// 4 to 5

if (stxt == "Austria-Airmail") shpr = function (wt) {	//Austria FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Austria-Express") shpr = function (wt) {	//Austria EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Belgium-Express") shpr = function (wt) {	//Belgium EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Canada-Airmail") shpr = function (wt) {	//Canada FCMI Grp 1 --1.2009-- Canada only NAFTA rate
  	if (wt <= 7) {return 2.62;}				// up to 7
  	if (wt == 8) {return 2.86;}				// 8
  	if (wt > 8 & wt < 12) {return 3.81;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 4.76;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 5.71;} 	// 16 to 19
  	if (wt >= 20 & wt < 24) {return 6.66;} 	// 20 to 23
  	if (wt >= 24 & wt < 28) {return 7.61;} 	// 24 to 27
  	if (wt >= 28 & wt < 32) {return 8.56;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 9.51;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 10.46;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 11.41;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 12.36;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 13.31;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 14.26;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 15.21;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 16.16;}}	// 60 to 64

if (stxt == "Canada-Express") shpr = function (wt) {	//Canada EMI Grp 1 --1.2009-- online rate
  	if (wt <= 16) {return 27.60;}			// up to 1
  	if (wt > 16 & wt < 32) {return 30.82;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 34.04;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 37.26;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 40.48;}}	// 4 to 5

if (stxt == "Chile-Express") shpr = function (wt) {	//Chile EMI Grp 9 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1-2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2-3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3-4
  	if (wt >= 64 & wt < 80) {return 46.46;}}	// 4-5

if (stxt == "Costa Rica-Express (limited service area)") shpr = function (wt) {	//Costa Rica EMI Grp 9 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1-2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2-3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3-4
  	if (wt >= 64 & wt < 80) {return 46.46;}}	// 4-5

if (stxt == "Cyprus-Airmail") shpr = function (wt) {	//Cyprus FCMI Grp 4 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Cyprus-Express") shpr = function (wt) {	//Cyprus EMI Grp 4 --1.2009-- online rates
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 32.89;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 36.80;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 40.71;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 44.62;}}	// 4 to 5

if (stxt == "Czech Republic-Express") shpr = function (wt) {	//Czech Republic EMI Grp 4 --1.2009-- online rates
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 32.89;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 36.80;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 40.71;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 44.62;}}	// 4 to 5

if (stxt == "Denmark-Airmail") shpr = function (wt) {	//Denmark FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Denmark-Express") shpr = function (wt) {	//Denmark EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Estonia-Express (limited service area)") shpr = function (wt) {	//Estonia EMI Grp 4 --1.2009-- online rates
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 32.89;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 36.80;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 40.71;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 44.62;}}	// 4 to 5

if (stxt == "Finland-Airmail") shpr = function (wt) {	//Finland FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Finland-Express") shpr = function (wt) {	//Finland EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "France-Airmail") shpr = function (wt) {	//France FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "France-Express") shpr = function (wt) {	//France EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Germany-Airmail") shpr = function (wt) {	//Germany FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Germany-Express") shpr = function (wt) {	//Germany EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Greece-Airmail") shpr = function (wt) {	//Greece FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Greece-Express") shpr = function (wt) {	//Greece EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Hong Kong-Airmail") shpr = function (wt) {	//Hong Kong FCMI Grp 3 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Hong Kong-Express") shpr = function (wt) {	//Hong Kong EMI Grp 3 --1.2009-- online rate
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 33.35;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 37.72;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.09;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}}	// 4 to 5

if (stxt == "Hungary-Express") shpr = function (wt) {	//Hungary EMI Grp 4 --1.2009-- online rates
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 32.89;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 36.80;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 40.71;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 44.62;}}	// 4 to 5
 
if (stxt == "Iceland-Airmail") shpr = function (wt) {	//Iceland FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Iceland-Express") shpr = function (wt) {	//Iceland EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Ireland-Airmail") shpr = function (wt) {	//Ireland FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Ireland-Express") shpr = function (wt) {	//Ireland EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Israel-Airmail") shpr = function (wt) {	//Israel FCMI Grp 8 --1.2009--
  	if (wt <= 7) {return 5.90;}				// to 7
  	if (wt == 8) {return 6.65;}				// 8
  	if (wt > 8 & wt < 12) {return 8.25;}	// 9-11
  	if (wt >= 12 & wt < 16) {return 9.85;}	// 12-15
  	if (wt >= 16 & wt < 20) {return 11.45;} // 16-19
  	if (wt >= 20 & wt < 24) {return 13.05;} // 20-23
  	if (wt >= 24 & wt < 28) {return 14.65;} // 24-27
  	if (wt >= 28 & wt < 32) {return 16.25;}	// 28-31
  	if (wt >= 32 & wt < 36) {return 17.85;}	// 32-35
  	if (wt >= 36 & wt < 40) {return 19.45;}	// 36-39
  	if (wt >= 40 & wt < 44) {return 21.05;}	// 40-43
  	if (wt >= 44 & wt < 48) {return 22.65;}	// 44-47
  	if (wt >= 48 & wt < 52) {return 24.25;}	// 48-51
  	if (wt >= 52 & wt < 56) {return 25.85;}	// 52-55
  	if (wt >= 56 & wt < 60) {return 27.45;}	// 56-59
  	if (wt >= 60 & wt < 65) {return 29.05;}}	// 60-64

if (stxt == "Israel-Express") shpr = function (wt) {	//Israel EMI Grp 8 --1.2009-- online rate
  	if (wt <= 16) {return 30.82;}			// up to 1
  	if (wt > 16 & wt < 32) {return 35.42;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 40.02;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 44.62;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 49.22;}}	// 4 to 5
  	
if (stxt == "Italy-Express") shpr = function (wt) {		//Italy EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Jamaica-Airmail") shpr = function (wt) {	//Jamaica FCMI Grp 9 --1.2009--
  	if (wt <= 7) {return 5.90;}				// to 7
  	if (wt == 8) {return 6.65;}				// 8
  	if (wt > 8 & wt < 12) {return 8.25;}	// 9-11
  	if (wt >= 12 & wt < 16) {return 9.85;}	// 12-15
  	if (wt >= 16 & wt < 20) {return 11.45;} // 16-19
  	if (wt >= 20 & wt < 24) {return 13.05;} // 20-23
  	if (wt >= 24 & wt < 28) {return 14.65;} // 24-27
  	if (wt >= 28 & wt < 32) {return 16.25;}	// 28-31
  	if (wt >= 32 & wt < 36) {return 17.85;}	// 32-35
  	if (wt >= 36 & wt < 40) {return 19.45;}	// 36-39
  	if (wt >= 40 & wt < 44) {return 21.05;}	// 40-43
  	if (wt >= 44 & wt < 48) {return 22.65;}	// 44-47
  	if (wt >= 48 & wt < 52) {return 24.25;}	// 48-51
  	if (wt >= 52 & wt < 56) {return 25.85;}	// 52-55
  	if (wt >= 56 & wt < 60) {return 27.45;}	// 56-59
  	if (wt >= 60 & wt < 65) {return 29.05;}}	// 60-64

if (stxt == "Jamaica-Express") shpr = function (wt) {	//Jamaica EMI Grp 9 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1-2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2-3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3-4
  	if (wt >= 64 & wt < 80) {return 46.46;}}	// 4-5

if (stxt == "Japan-Airmail") shpr = function (wt) {	//Japan FCMI Grp 3 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Japan-Express") shpr = function (wt) {	//Japan EMI Grp 3 --1.2009-- online rate
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 33.35;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 37.72;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.09;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}}	// 4 to 5

if (stxt == "Latvia-Express") shpr = function (wt) {	//Latvia EMI Grp 4 --1.2009-- online rates
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 32.89;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 36.80;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 40.71;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 44.62;}}	// 4 to 5 

if (stxt == "Lithuania-Express") shpr = function (wt) {	//Lithuania EMI Grp 4 --1.2009-- online rates
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 32.89;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 36.80;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 40.71;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 44.62;}}	// 4 to 5

if (stxt == "Luxembourg-Express") shpr = function (wt) {	//Luxembourg EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Malta-Express") shpr = function (wt) {	//Malta EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Netherlands-Express") shpr = function (wt) {	//Netherlands EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5
	
if (stxt == "New Zealand-Airmail") shpr = function (wt) {	//New Zealand FCMI Grp 6 --1.2009--
  	if (wt <= 7) {return 5.90;}				// to 7
  	if (wt == 8) {return 6.65;}				// 8
  	if (wt > 8 & wt < 12) {return 8.25;}	// 9-11
  	if (wt >= 12 & wt < 16) {return 9.85;}	// 12-15
  	if (wt >= 16 & wt < 20) {return 11.45;} // 16-19
  	if (wt >= 20 & wt < 24) {return 13.05;} // 20-23
  	if (wt >= 24 & wt < 28) {return 14.65;} // 24-27
  	if (wt >= 28 & wt < 32) {return 16.25;}	// 28-31
  	if (wt >= 32 & wt < 36) {return 17.85;}	// 32-35
  	if (wt >= 36 & wt < 40) {return 19.45;}	// 36-39
  	if (wt >= 40 & wt < 44) {return 21.05;}	// 40-43
  	if (wt >= 44 & wt < 48) {return 22.65;}	// 44-47
  	if (wt >= 48 & wt < 52) {return 24.25;}	// 48-51
  	if (wt >= 52 & wt < 56) {return 25.85;}	// 52-55
  	if (wt >= 56 & wt < 60) {return 27.45;}	// 56-59
  	if (wt >= 60 & wt < 65) {return 29.05;}}	// 60-64

if (stxt == "New Zealand-Express") shpr = function (wt) {	//New Zealand EMI Grp 10 --1.2009-- online rate
  	if (wt <= 16) {return 25.71;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.73;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 39.56;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 44.39;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 49.68;}}	// 4 to 5

if (stxt == "Norway-Airmail") shpr = function (wt) {	//Norway FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Norway-Express") shpr = function (wt) {	//Norway EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Portugal-Express") shpr = function (wt) {	//Portugal EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Singapore-Express") shpr = function (wt) {	//Singapore EMI Grp 6 --1.2009-- online rate
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 32.89;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 36.80;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 40.71;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 44.62;}}	// 4 to 5

if (stxt == "South Korea-Express") shpr = function (wt) {	//South Korea EMI Grp 3 --1.2009-- online rate
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 33.35;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 37.72;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.09;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}}	// 4 to 5

if (stxt == "Spain-Airmail") shpr = function (wt) {	//Spain FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Spain-Express") shpr = function (wt) {	//Spain EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Sweden-Airmail") shpr = function (wt) {	//Sweden FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Sweden-Express") shpr = function (wt) {	//Sweden EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Switzerland-Airmail") shpr = function (wt) {	//Switzerland FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "Switzerland-Express") shpr = function (wt) {	//Switzerland EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5

if (stxt == "Taiwan-Airmail") shpr = function (wt) {	//Taiwan FCMI Grp 6 --1.2009--
  	if (wt <= 7) {return 5.90;}				// to 7
  	if (wt == 8) {return 6.65;}				// 8
  	if (wt > 8 & wt < 12) {return 8.25;}	// 9-11
  	if (wt >= 12 & wt < 16) {return 9.85;}	// 12-15
  	if (wt >= 16 & wt < 20) {return 11.45;} // 16-19
  	if (wt >= 20 & wt < 24) {return 13.05;} // 20-23
  	if (wt >= 24 & wt < 28) {return 14.65;} // 24-27
  	if (wt >= 28 & wt < 32) {return 16.25;}	// 28-31
  	if (wt >= 32 & wt < 36) {return 17.85;}	// 32-35
  	if (wt >= 36 & wt < 40) {return 19.45;}	// 36-39
  	if (wt >= 40 & wt < 44) {return 21.05;}	// 40-43
  	if (wt >= 44 & wt < 48) {return 22.65;}	// 44-47
  	if (wt >= 48 & wt < 52) {return 24.25;}	// 48-51
  	if (wt >= 52 & wt < 56) {return 25.85;}	// 52-55
  	if (wt >= 56 & wt < 60) {return 27.45;}	// 56-59
  	if (wt >= 60 & wt < 65) {return 29.05;}}	// 60-64

if (stxt == "Taiwan-Express") shpr = function (wt) {	//Taiwan EMI Grp 6 --1.2009-- online rate
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 32.89;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 36.80;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 40.71;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 44.62;}}	// 4 to 5

if (stxt == "Thailand-Express") shpr = function (wt) {	//Thailand EMI Grp 6 --1.2009-- online rate
  	if (wt <= 16) {return 28.98;}			// up to 1
  	if (wt > 16 & wt < 32) {return 32.89;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 36.80;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 40.71;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 44.62;}}	// 4 to 5

if (stxt == "United Kingdom-Airmail") shpr = function (wt) {	//United Kingdom FCMI Grp 5 --1.2009--
  	if (wt <= 7) {return 6.20;}				// up to 7
  	if (wt == 8) {return 7.00;}				// 8
  	if (wt > 8 & wt < 12) {return 8.65;}	// 9 to 11
  	if (wt >= 12 & wt < 16) {return 10.30;}	// 12 to 15
  	if (wt >= 16 & wt < 20) {return 11.95;} // 16 to 19
  	if (wt >= 20 & wt < 24) {return 13.60;} // 20 to 23
  	if (wt >= 24 & wt < 28) {return 15.25;} // 24 to 27
  	if (wt >= 28 & wt < 32) {return 16.90;}	// 28 to 31
  	if (wt >= 32 & wt < 36) {return 18.55;}	// 32 to 35
  	if (wt >= 36 & wt < 40) {return 20.20;}	// 36 to 39
  	if (wt >= 40 & wt < 44) {return 21.85;}	// 40 to 43
  	if (wt >= 44 & wt < 48) {return 23.50;}	// 44 to 47
  	if (wt >= 48 & wt < 52) {return 25.15;}	// 48 to 51
  	if (wt >= 52 & wt < 56) {return 26.80;}	// 52 to 55
  	if (wt >= 56 & wt < 60) {return 28.45;}	// 56 to 59
  	if (wt >= 60 & wt < 65) {return 30.10;}}	// 60 to 64

if (stxt == "United Kingdom-Express") shpr = function (wt) {	//United Kingdom EMI Grp 5 --1.2009-- online rate
  	if (wt <= 16) {return 29.90;}			// up to 1
  	if (wt > 16 & wt < 32) {return 34.04;}	// 1 to 2
  	if (wt >= 32 & wt < 48) {return 38.18;}	// 2 to 3
  	if (wt >= 48 & wt < 64) {return 42.32;}	// 3 to 4
  	if (wt >= 64 & wt < 80) {return 46.46;}} // 4 to 5
 	
if (stxt == "Code 42") shpr = function (wt) {//Order add on No shipping
  	if (wt <= 16) {return 0.00;}
  	if (wt > 16 & wt < 32) {return 10.00;}
  	if (wt >= 32 & wt < 48) {return 15.00;}
	if (wt >= 48 & wt < 64) {return 20.00;}
  	if (wt >= 64 & wt < 80) {return 25.00;} }

  DispTots ();
}

function SetTax (obj) {
  tpos = obj.selectedIndex;  // which option selected
  ttxt = obj.options[tpos].text;
  ttax = obj.options[tpos].value*1.0;
  DispTots ();
}
