// alert("iCat: LOADED");

if(!parent.curline) {			// alert("iCat: INITIALIZED");
  curline = 0;				// CURRENT LINE ITEM
  totItem = 0;				// TOTAL LINE ITEMS USED SO FAR
  MAXITEM = 100;			// MAXIMUM NUMBER OF LINE ITEMS ON ORDER

//#ifndef	new040512
  var MAXDEL  = 10;		// MAXIMUM NUMBER OF DELIVERY CHARGE BREAKS
  var delBrea = new createArray(MAXDEL);// DELIVERY CHARGE BREAKPOINTS
  var delAmnt = new createArray(MAXDEL);// DELIVERY CHARGE AMOUNTS
  for(i=1;i<=MAXDEL;i++) {		// INITIALIZE LINE ITEM VARIABLES
    delBrea[i] = 0;
    delAmnt[i] = 0;
  }
  var delTotl = 0;			// DELIVERY CHARGE TOTAL
//#endif

  totPric = 0;				// ORDER TOTAL
  proPric = 0;				// PROMO TOTAL
  proNext = 0;				// AMOUNT TO NEXT LEVEL
  var proText = "Not Qualified For Promotion Yet";

  cmCont  = "";				// CREATE&INITIALIZE CUSTOMER VARIABLES
  cmMail  = "";
  cmTele  = "";
  cmFax   = "";
  cmCust  = "";
  cmPurc  = "";
  cmPmnt = "";
  cmCard = "";
  cmDate = "";
  cmAuth = "";
  cmBName = "";
  cmBAdd1 = "";
  cmBAdd2 = "";
  cmBCity = "";
  cmSName = "";
  cmSAdd1 = "";
  cmSAdd2 = "";
  cmSCity = "";
  message = "";

  var oiItem = new createArray(MAXITEM);	// ALLOCATE LINE ITEM VARIABLE SPACE
  for(i=1;i<=MAXITEM;i++) {		// INITIALIZE LINE ITEM VARIABLES
    oiItem[i] = new setItem(0,'','',0,0,"NONE");
  }
}

function createArray(n) {		// CREATE AN ARRAY OF "n" ITEMS
  this.length = n;
  for(i=1;i<n;i++) this[i] = null;	
  return this;
}	

function setItem(Promo,Part,Desc,Quan,Pric,Rurl) {	// CREATE A LINE ITEM
  // alert("setItem: "+Promo+Part+Desc+Quan+Pric+Rurl);
  this.icPart = Part;
  this.icDesc = Desc;
  this.oiQuan = Quan;
  this.oiPric = Pric;
  this.Rurl   = Rurl;
  this.Promo  = Promo;
  return this;
}

function	dumpObj(obj) {		// DEBUG ROUTINE TO SHOW OBJECTS VALUES
  alert('dumpObj()');
  var	j = 1;
  var	s = 'dumpObj\n';
  for(i in obj) {
    s += i + ':\t' + obj[i] + '\n';
    if(((j++)%20)==0) {
      j = 1;
      if(!confirm(s)) break;
     	s = 'dumpObj\n';
  } }
  if(j!=1) confirm(s);
}

//function switchto(url) {
//alert('switchto:close()');
//main.frames.document.close();		// CLOSE EXISTING PAGE
//alert('switchto:focus()');
//main.frames.focus();			// CHANGE KEYBOARD FOCUS TO THIS FRAME
//alert('switchto:open()');
//main.frames.document.open();		// THEN RE-OPEN
//alert('switchto:location='+url);
//main.frames.location = url;		// SWITCH TO NEW HTML FILE
//alert('switchto:return');
//}

function switchto(url) {
  frames[1].document.close();		// CLOSE EXISTING PAGE
  frames[1].focus();			// CHANGE KEYBOARD FOCUS TO THIS FRAME
  frames[1].document.open();		// THEN RE-OPEN
  frames[1].location = url;		// SWITCH TO NEW HTML FILE
}

function buyit(Promo,Part,Desc,Quan,Pric,Rurl) { // UPDATE LINE ITEM ON ORDER
//  alert('buyit('+Promo+','+Part+','+Desc+','+Quan+','+Pric+','+Rurl+')');
  for(cur=1;cur<=MAXITEM;cur++) {	// FIND LINE ITEM FOR EXISTING PART
    if(oiItem[cur].icPart==Part) break;
  }
  if(cur<=MAXITEM) {			// UPDATE EXISTING LINE ITEM'S QUANTITY
    oiItem[cur].oiQuan += eval(Quan);
  }
  else {					// OTHERWISE, ADD NEW LINE ITEM
    for(cur=1;cur<=MAXITEM;cur++) {	// FIND BLANK LINE ITEM FOR NEW PART
      if(oiItem[cur].icPart=="" &&
         oiItem[cur].icDesc=="" &&
         oiItem[cur].oiQuan==0  &&
         oiItem[cur].oiPric==0) break;
    }
    if(cur<=MAXITEM) {			// ADD NEW LINE ITEM INFORMATION
      oiItem[cur].icPart = Part;
      oiItem[cur].icDesc = Desc;
      oiItem[cur].oiQuan = Quan;
      oiItem[cur].oiPric = Pric;
      oiItem[cur].Rurl   = Rurl;
      oiItem[cur].Promo  = Promo;
    }
    else {				// ELSE, CHECK FOR TOO MANY LINE ITEMS
      alert('ERROR: Too Many Line Items: MAXITEM='+ MAXITEM);
      return;
  } }
  for(j=MAXITEM;j>0;j--) {		// COUNT TOTAL NUM LINE ITEMS
    if(oiItem[j-1].icPart!="" ||
       oiItem[j-1].icDesc!="" ||
       oiItem[j-1].oiQuan!=0  ||
       oiItem[j-1].oiPric!=0) break;
  }
  totItem = j;

  curline = cur;
  if(!parent.ORDERFORM)			// IF NO ORDERFORM DEFINED
       switchto('../icat/order.html');	// SWITCH TO DEFAULT NAME
  else switchto(parent.ORDERFORM);	// OTHERWISE SWITCH TO SPECIAL
}

function	tostr(s) {		// CONVERT BLANKS INTO &nbsp;'s
  var	i;
  var	d = "";
  for(i=0;i<s.length;i++) {
    var	c=s.substr(i,1);
    if(c==' ') d=d+"&nbsp;";
    else       d=d+c;
  }
//alert("s=:"+s+":, d=:"+d+":");
  return(d);
}

function format(val,totlen,declen) {
  var	decpoint;		// NUMBER OF PLACES INTO STRING WHERE "." IS
  var	beg = "";		// BEGINING POINT OF MAIN NUMBER
  var	end = "";		// BEGINING POINT OF DECIMAL PART OF NUMBER
  var	valstr;			// TEMP STRING
  valstr = "" + val;
  decpoint = valstr.indexOf(".");
  if(decpoint != -1) {				// IF DECIMAL POINT FOUND
    beg = valstr.substring(0,decpoint);
    end = valstr.substring(decpoint+1,valstr.length);
  }
  else {					// NO DECIMALS FOUND
    beg = valstr;
    end = "";
  }
//while(beg.length < totlen-declen-1) {		// PREFIX LEADING BLANKS
//  beg = '&nbsp;'+beg;
//}
  if(end.length < declen) {			// EXTEND TO "declen" DIGITS
    while(end.length < declen) end += "0";
  }
  end = end.substring(0,declen);		// TRUNCATE DECMIALS
  return(beg+"."+end);
}

function buy(Promo,Part,Desc,Quan,Pric1,Pric2,Pric3,Pric4,Unit) {
  Part=tostr(Part);
  Desc=tostr(Desc);
//alert('buy('+Promo+','+Part+','+Desc+','+Quan+','+Pric1+','+Pric2+','+Pric3+','+Pric4+')');
//ifdef	old020610
// if(Promo==0 &&			// IF ITEM IS NOT ON PROMO
//    PROMO_ONLY==1) return;		// AND WE'RE RUNNING IN SHORT MODE, QUIT
//else
  if(Promo==0 &&			// IF ITEM IS NOT ON PROMO AND
     parent.UASI) return;			// WE'RE RUNNING IN PROMO MODE, QUIT
//endif
  if     (parent.LTL==0) { Pric=0; Promo=0; }
  else if(parent.LTL==1) { Pric=format(Pric1,10,3);
                           if(Promo==0) Pric=format(Pric2,10,3); // new030609
                         }
  else if(parent.LTL==2) { Pric=format(Pric2,10,3); Promo=0; }
  else if(parent.LTL==3) { Pric=format(Pric3,10,3);
                           if(Promo==0) Pric=format(Pric4,10,3); // new030609
                         }
  else if(parent.LTL==4) { Pric=format(Pric4,10,3); Promo=0; }
  else return;
  Rurl = main.frames.location.pathname;
  main.frames.document.write(
    '<FONT SIZE="-1">'+
    '<PRE><A NAME='+Part+' HREF="#Click Here To Buy" onclick=javascript:'+
    'parent.buyit('+Promo+',"'+Part+'","'+Desc+'",'+Quan+','
                   +Pric+',"'+Rurl+'#'+Part+'")>');

               main.frames.document.write('<FONT COLOR=#000000>');
  if(Promo==1 ||
     Promo==2) main.frames.document.write('<FONT COLOR=#0000FF>');
               main.frames.document.write(Part+'  '+Desc+'  ');
  if     (Promo==1) main.frames.document.write('</FONT><FONT COLOR=#FF0000>');
  else if(Promo==2) main.frames.document.write('</FONT><FONT SIZE="+2" COLOR=#FF0000><B>');

//ifdef	old050317
//if(Pric>0)   main.frames.document.write('$'+Pric);
//else
  if(!Unit) Unit="Ea";
  if(Pric>0)   main.frames.document.write('$'+Pric+' '+Unit);
//endif
  if(Promo==1) main.frames.document.write(
      '</FONT>'+
      '<IMG SRC=../icat/promo.gif ALT="Click Here To Buy" ALIGN="absbottom">');
  else if(Promo==2) main.frames.document.write(' SALE PRICE!</B></FONT>');
  main.frames.document.write('</FONT></A></PRE></FONT>');
}

function oiItemTABLE() {
  parent.totPric = 0;

  for(i=1;i<=parent.totItem+2 || i<=5;i++) {

    // New catch to ignore blank lines
//    if(!parent.oiItem[i].icPart &&
//       !parent.oiItem[i].icDesc &&
//       !parent.oiItem[i].oiQuan) continue;

    parent.totPric += PRIC = eval(parent.oiItem[i].oiPric) * eval(parent.oiItem[i].oiQuan);

    document.write('<TR ALIGN="left">');
    document.write('  <TD><INPUT SIZE=10 TYPE="text" NAME=icPart VALUE="');
    document.write(     parent.oiItem[i].icPart+'">');
    if(parent.oiItem[i].Rurl != "NONE") {
      document.write('<A HREF='+parent.oiItem[i].Rurl+'>');
      document.write('<IMG ALIGN="ABSBOTTOM" SRC=review.jpg');
      document.write('  ALT="Return To Page"></A>');
    }
    document.write('</TD>');

    document.write('  <TD>&nbsp;<INPUT SIZE=20 TYPE="text" NAME=icDesc VALUE="');
    document.write(     parent.oiItem[i].icDesc+'"></TD>');
    document.write('  <TD>&nbsp;<INPUT SIZE=5  TYPE="text" NAME=oiQuan VALUE=');
    document.write(     parent.oiItem[i].oiQuan);
    document.write('    onchange=parent.compute(document.order)></TD>');
    document.write('  <TD>&nbsp;<INPUT SIZE=10 TYPE="text" NAME=oiPric VALUE=');
    document.write(     parent.format(parent.oiItem[i].oiPric,10,3));
    document.write('    onchange=parent.compute(document.order)></TD>');

    if(parent.oiItem[i].Promo == 1) {			// QUALIFIED PROMO ITEM
      parent.proPric += eval(PRIC);
      document.write('<IMG ALIGN="ABSBOTTOM" SRC=/icat/icat/promo.gif');
      document.write('  ALT="Qualifies For Promo">');
    }

    document.write('  <TD>&nbsp;<INPUT SIZE=12 TYPE="text" NAME=oiPRIC VALUE='+parent.format(PRIC,12,2)+'></TD>');
    document.write('  <TD>&nbsp;<INPUT SIZE=0 TYPE="hidden" NAME=Rurl  VALUE='+parent.oiItem[i].Rurl+'></TD>');
    document.write('  <TD>&nbsp;<INPUT SIZE=0 TYPE="hidden" NAME=Promo VALUE='+parent.oiItem[i].Promo+'></TD>');
    document.write('</TR>');
  }

  document.write('<TR ALIGN="center">');
  document.write('  <TD COLSPAN=4 ALIGN="right"><FONT SIZE=-2>ORDER TOTAL&nbsp;</TD>');
  document.write('  <TD ALIGN="left">&nbsp;<INPUT size=12 MAXLENGTH=12 TYPE="text" NAME=totPric value=');
  document.write(parent.format(parent.totPric,12,2)+'></TD>');
  document.write('</TR>');

  if(parent.MEMORABILIA==0) {
    document.write('<INPUT TYPE="hidden" NAME=proPric>');
    document.write('<INPUT TYPE="hidden" NAME=proText>');
    document.write('<INPUT TYPE="hidden" NAME=proNext>');
  }

  else {
    document.write('<TR ALIGN="center"><TD COLSPAN=5><HR></TD></TR>');
    document.write('<TR ALIGN="center">');
    document.write('  <TD ALIGN="left"  COLSPAN="3">');
    document.write('    <FONT SIZE="-2">Items Marked With');
    document.write('    <IMG SRC=/icat/icat/promo.gif>');
    document.write('    Qualify For Promotional Consideration</FONT></TD>');
    document.write('  <TD ALIGN="right" COLSPAN="1">');
    document.write('    <FONT SIZE="-2">Qualified For Promo&nbsp;</FONT></TD>');
    document.write('  <TD ALIGN="left">');
    document.write('    <INPUT size=12 MAXLENGTH=12 TYPE="text" NAME=proPric value=');
    document.write(       parent.format(parent.proPric,12,2)+'></TD></TR>');
    document.write('<TR ALIGN="center">');
    document.write('  <TD COLSPAN=3>');
    document.write('    <INPUT TYPE="text" SIZE=45 NAME=proText value=');
    document.write(       parent.proText+'></TD>');
    document.write('  <TD ALIGN="right" COLSPAN="1">');
    document.write('    <FONT SIZE="-2">Balance To Next Level&nbsp;</TD>');
    document.write('  <TD ALIGN="left">');
    document.write('    <INPUT size=12 MAXLENGTH=12 TYPE="text" NAME=proNext value=');
    document.write(       parent.format(parent.proNext,12,2)+'></TD></TR>');
    document.write('<TR ALIGN="center"><TD COLSPAN="5"><HR></TD></TR>');
  }

  document.write('</TABLE>');
}

function gopromo(P) {
  if(parent.LTL<3) {				// WHOLESALE PROMO'S
//    if(P >= 2400) {
//      B = 0;
//      parent.proText = "Level IV ($2400): Gary Player Golf Cart";
//    }
//    else
    if(P >= 2400) {
      B = 0;
      parent.proText = "Level III ($2400): Autographed NFL Model Helmet";
    }
    else if(P >= 1200) {
      B = 2250-P;
      parent.proText = "Level II ($1200): Autographed Model NASCAR";
    }
    else if(P >= 600) {
      B = 1200-P;
      parent.proText = "Level I ($600): Autographed Baseball";
    }
    else {
      B = 600-P;
      parent.proText = "Not Qualified For Promotion Yet";
    }
  }
  else {					// RETAIL PROMO'S
//    if(P >= 3000) {
//      B = 0;
//      parent.proText = "Level IV ($3000): Frazier Basketball";
//    }
//    else
    if(P >= 2700) {
      B = 0;
      parent.proText = "Level III ($3000): Autographed NFL Model Helmet";
    }
    else if(P >= 1500) {
      B = 3000-P;
      parent.proText = "Level II ($1500): Autographed Model NASCAR";
    }
    else if(P >= 750) {
      B = 1500-P;
      parent.proText = "Level I ($750): Autographed Baseball";
    }
    else {
      B = 750-P;
      parent.proText = "Not Qualified For Promotion Yet";
    }
  }
  if(B<0) B=0;
  parent.proNext = format(B,12,2);
}

parent.icatpath="../";
function abc(icatfile,descript) {
  if(icatfile == "none") {
       navbar.frames.document.write('<OPTION VALUE=none DISABLED>'+descript+'</OPTION>');
  }
  else navbar.frames.document.write('<OPTION VALUE='+icatpath+icatfile+'>'+descript+'</OPTION>');
}

function manfprodmenu() {
  navbar.frames.document.write('<FONT SIZE="-2">Click on menus below to view catalog items</FONT><BR>');
  navbar.frames.document.write('<SELECT NAME="manf" SIZE="1"');
  navbar.frames.document.write('        onChange=if(manf[selectedIndex].value!="none")parent.switchto(manf[selectedIndex].value)>');
  abc("none"					,"-Manufacturer-");
  abc("/cover/cover.html"			,"Catalogue Cover");
  abc("/accuform/accuform.html"			,"Accuform Signs");
  abc("/aearo/aearo.html"			,"Aearo/EAR");
if(!parent.UASI) {
  abc("/allsafe/allsafe.html"			,"Allsafe");
}
  abc("/americanlock/americanlock.html"		,"American Lock");
  abc("/americantool/americantool.html"		,"American Tool");
  abc("/anderson/anderson.html"			,"Anderson&reg;");
  abc("/ansell/ansell.html"			,"Ansell");
  abc("/aearo/aearo.html#aosafety"		,"AOSafety&reg;");
if(!parent.UASI) {
  abc("/archer/archer.html"			,"Archer Tools");
}
  abc("/verithin/verithin.html"			,"Berol Verithin");
  abc("/bestglove/bestglove.html"		,"Best Glove");
  abc("/bilsom/bilsom.html"			,"Bilsom&reg;");
  abc("/brightstar/brightstar.html"		,"Bright Star");
  abc("/bouton/bouton.html"			,"Bouton Eyewear");
  abc("/bullard/bullard.html"			,"Bullard");
  abc("/coleman/coleman.html"			,"Coleman Cable");
if(!parent.UASI) {
  abc("/cowhardhat/cowhardhat.html"		,"CowboyHardHat");
}
  abc("/crews/crews.html"			,"Crews&reg;");
if(!parent.UASI) {
  abc("/dayco/dayco.html"			,"Dayco");
  abc("/desa/desa.html"				,"Desa");
  abc("/dbldiamond/dbldiamond.html"		,"Double Diamond");
  abc("/direct/direct.html"			,"Direct Cable");
}
  abc("/dupont/dupont.html"			,"Dupont");
  abc("/dymon/dymon.html"			,"Dymon-Scrubs");
  abc("/dynaflux/dynaflux.html"			,"Dynaflux");
if(!parent.UASI) {
  abc("/eagle/eagle.html"			,"Eagle Industries");
}
  abc("/empire/empire.html"			,"Empire&reg;");
if(!parent.UASI) {
  abc("/epoxy/epoxy.html"			,"Epoxy&reg;");
}
  abc("/eveready/eveready.html"			,"Eveready");
  abc("/ergodyne/ergodyne.html"			,"Ergodyne");
  abc("/fendall/fendall.html"			,"fend-all");
  abc("/fibremetal/fibremetal.html"		,"Fibre-Metal");
  abc("/gatorade/gatorade.html"			,"Gatorade");
  abc("/gentec/gentec.html"			,"Gentec&reg;");
  abc("/gerson/gerson.html"			,"Gerson");
  abc("/goss/goss.html"				,"Goss&reg;");
if(!parent.UASI) {
  abc("/hanson/hanson.html"			,"Hanson");
  abc("/harris/harris.html"			,"Harris Welco");
}
  abc("/hitachi/hitachi.html"			,"Hitachi&reg;");
  abc("/howard/howard.html"			,"Howard Leight&reg;");
  abc("/huntsman/huntsman.html"			,"Huntsman");
  abc("/interactive/interactive.html"		,"Interactive Safety");
if(!parent.UASI) {
  abc("/interstate/interstate.html"		,"Interstate Pneum");
}
  abc("/ironclad/ironclad.html"			,"Iron Clad");
  abc("/jackson/jackson.html"			,"Jackson");
if(!parent.UASI) {
  abc("/jepson/jepson.html"			,"Jepson");
  abc("/johndeere/johndeere.html"		,"John Deere");
}
  abc("/justrite/justrite.html"			,"JustRite");
  abc("/keen/keen.html"				,"Keen");
if(!parent.UASI) {
  abc("/keeper/keeper.html"			,"Keeper");
}
  abc("/kimclark/kimclark.html"			,"Kimberly Clark");
  abc("/king/king.html"				,"King Tool");
if(!parent.UASI) {
  abc("/komelan/komelan.html"			,"Komelan");
  abc("/kromer/kromer.html"			,"Kromer");
}
  abc("/lamba/lamba.html"			,"Lamba");
  abc("/lenco/lenco.html"			,"Lenco");
  abc("/lenox/lenox.html"			,"Lenox&reg;");
  abc("/mechanix/mechanix.html"			,"MechanixWear");
  abc("/memphis/memphis.html"			,"Memphis Gloves");
  abc("/miller/miller.html"			,"Miller");
  abc("/milwaukee/milwaukee.html"		,"Milwaukee&reg;");
  abc("/moldex/moldex.html"			,"Moldex");
  abc("/msa/msa.html"				,"MSA");
  abc("/mrheater/mrheater.html"			,"Mr Heater");
  abc("/north/north.html"			,"North"); 
if(!parent.UASI) {
  abc("/nrs/nrs.html"				,"NRS Heaters");
}
  abc("/nissen/nissen.html"			,"Nissen&reg;");
  abc("/occunomix/occunomix.html"		,"Occunomix");
  abc("/olympia/olympia.html"			,"Olympia");
  abc("/optrel/optrel.html"			,"Optrel");
  abc("/pelican/pelican.html"			,"Pelican");
  abc("/aearo/aearo.html#peltor"		,"Peltor");
  abc("/perfectfit/perfectfit.html"		,"Perfectfit");
if(!parent.UASI) {
  abc("/pip/pip.html"				,"PIP");
  abc("/presco/presco.html"			,"Presco Flags");
}
  abc("/procraft/procraft.html"			,"Procraft");
  abc("/profax/profax.html"			,"Profax");
if(!parent.UASI) {
  abc("/ratcheteer/ratcheteer.html"		,"Ratcheteer");
}
  abc("/rawhyde/rawhyde.html"			,"RawhydeFrontier");
  abc("/rayovac/rayovac.html"			,"Rayovac");
if(!parent.UASI) {
  abc("/rickwest/rickwest.html"			,"Rick West");
}
  abc("/rivercity/rivercity.html"		,"River City");
  abc("/rubbermaid/rubbermaid.html#cooler"	,"Rubbermaid");
if(!parent.UASI) {
  abc("/safetee/safetee.html"			,"Safe-Tee");
}
  abc("/safewaze/safewaze.html"			,"Safewaze");
if(parent.UASI) {
  abc("/saftcart/saftcart.html"			,"SAF-T-CART");
}
if(!parent.UASI) {
  abc("/saftcart/cover.html"			,"SAF-T-CART");
  abc("/saftcart/100.html"			," &nbsp; 100-200 Series");
  abc("/saftcart/2010.html"			," &nbsp; 20-10 Series");
  abc("/saftcart/300.html"			," &nbsp; 300-400 Series");
  abc("/saftcart/500.html"			," &nbsp; 500-550 Series");
  abc("/saftcart/700.html"			," &nbsp; 700-750 Series");
  abc("/saftcart/900.html"			," &nbsp; 900 Series");
  abc("/saftcart/cabinet.html"			," &nbsp; Cabinet Series");
  abc("/saftcart/cradle.html"			," &nbsp; Cradle Series");
  abc("/saftcart/cylinder.html"			," &nbsp; Cylinder Racks");
  abc("/saftcart/eline.html"			," &nbsp; E-Line");
  abc("/saftcart/foldaway.html"			," &nbsp; Foldaway Series");
  abc("/saftcart/industrial.html"		," &nbsp; Industrial Series");
  abc("/saftcart/medical.html"			," &nbsp; Medical Series");
  abc("/saftcart/pallet.html"			," &nbsp; Pallet Series");
  abc("/saftcart/straps.html"			," &nbsp; Ratchet Straps");
  abc("/saftcart/running.html"			," &nbsp; Running Gear");
  abc("/saftcart/storage.html"			," &nbsp; Storage Series");
  abc("/saftcart/replacement.html"		," &nbsp; Wheels");
}
  abc("/sharpie/sharpie.html"			,"Sharpie");
if(!parent.UASI) {
  abc("/shipsupp/shipsupp.html"			,"Shipping Supplies");
}
  abc("/shurlite/shurlite.html"			,"Shurlite");
  abc("/simonds/simonds.html"			,"Simonds&reg;");
if(!parent.UASI) {
  abc("/skyhook/skyhook.html"			,"Skyhook");
  abc("/sog/sog.html"				,"S.O.G. Knives");
}
  abc("/sqwincher/sqwincher.html"		,"Sqwincher");
if(!parent.UASI) {
  abc("/stlouispn/stlouispn.html"		,"St. Louis Pneum");
}
  abc("/superior/superior.html"			,"Superior");
  abc("/tempil/tempil.html"			,"Tempil");
if(!parent.UASI) {
  abc("/txpneumat/txpneumat.html"		,"Texas Pneum");
}
  abc("/3m/3m.html"				,"3M");
  abc("/tillman/tillman.html"			,"Tillman");
  abc("/trucut/trucut.html"			,"Trucut");
  abc("/united/united.html"			,"United Brand");
  abc("/uvex/uvex.html"				,"Uvex&reg;");
  abc("/verithin/verithin.html"			,"Verithin");
if(!parent.UASI) {
  abc("/victor/victor.html"			,"Victor");
  abc("/summer/summer.html#wasp"		,"Wasp Spray");
}
  abc("/wd40/wd40.html"				,"WD-40");
  abc("/weldaid/weldaid.html"			,"Weld-Aid");
  abc("/weldas/weldas.html"			,"Weldas");
  abc("/welding/welding.html"			,"Welding Tools");
if(!parent.UASI) {
  abc("/weldtec/weldtec.html"			,"Weld Tec");
}
  abc("/wilson/wilson.html"			,"Wilson");
  abc("/willson/willson.html"			,"Willson&reg;");
  abc("/worthy/worthy.html"			,"Worthy");
  abc("/wypo/wypo.html"				,"Wypo");
  navbar.frames.document.write('</SELECT> ');

  navbar.frames.document.write('<SELECT NAME="prod" SIZE="1"');
  navbar.frames.document.write('        onChange=if(prod[selectedIndex].value!="none")parent.switchto(prod[selectedIndex].value)>');
  abc("none"					,"-Product Type-");
  abc("/cover/cover.html"			,"Catalogue Cover");
  abc("/united/united.html#chemicals"		,"Anti-Spatter");
  abc("none"					,"Batteries");
  abc("/brightstar/brightstar.html"		," &nbsp; Bright Star");
  abc("/eveready/eveready.html"			," &nbsp; Energizer");
  abc("/rayovac/rayovac.html"			," &nbsp; Rayovac");
  abc("/coleman/coleman.html#battery"		,"Battery Clamps");
  abc("/coleman/coleman.html#battery"		,"Battery Cables");
  abc("/wilson/wilson.html"			,"Blankets, Welding");
  abc("/north/north.html#boots"			,"Boots");
  abc("none"					,"Brushes");
  abc("/anderson/anderson.html"			," &nbsp; Anderson");
  abc("/united/united.html#brushes"		," &nbsp; UnitedBrand");
if(!parent.UASI) {
  abc("/dbldiamond/dbldiamond.html"		," &nbsp; DoubleDiamond");
  abc("/north/north.html"			,"Bug Repellant"); 
}
  abc("none"					,"C Clamps");
  abc("/americantool/americantool.html"		," &nbsp; American Tool");
if(!parent.UASI) {
  abc("/king/king.html"				," &nbsp; King Tool");
  abc("/welding/welding.html"			," &nbsp; Welding Tools");
}
  abc("none"					,"Cable");
  abc("/coleman/coleman.html"			," &nbsp; Coleman Cable");
if(!parent.UASI) {
  abc("/direct/direct.html"			," &nbsp; Direct Cable");
}
  abc("none"					,"Caps");
if(!parent.UASI) {
  abc("/kromer/kromer.html"			," &nbsp; Kromer Caps");
}
  abc("/united/united.html#caps"		," &nbsp; RawhydeFrontier");
  abc("none"					,"Carts & Carriers");
  abc("/saftcart/saftcart.html"			," &nbsp; SAF-T-CART&#153;");
if(!parent.UASI) {
  abc("/saftcart/100.html"			," &nbsp; 100-200 Series");
  abc("/saftcart/2010.html"			," &nbsp; 20-10 Series");
  abc("/saftcart/300.html"			," &nbsp; 300-400 Series");
  abc("/saftcart/500.html"			," &nbsp; 500-550 Series");
  abc("/saftcart/700.html"			," &nbsp; 700-750 Series");
  abc("/saftcart/900.html"			," &nbsp; 900 Series");
  abc("/saftcart/cabinet.html"			," &nbsp; Cabinet Series");
  abc("/saftcart/cradle.html"			," &nbsp; Cradle Series");
  abc("/saftcart/cylinder.html"			," &nbsp; Cylinder Racks");
  abc("/saftcart/eline.html"			," &nbsp; E-Line");
  abc("/saftcart/foldaway.html"			," &nbsp; Foldaway Series");
  abc("/saftcart/industrial.html"		," &nbsp; Industrial Series");
  abc("/saftcart/medical.html"			," &nbsp; Medical Series");
  abc("/saftcart/pallet.html"			," &nbsp; Pallet Series");
  abc("/saftcart/running.html"			," &nbsp; Running Gear");
  abc("/saftcart/storage.html"			," &nbsp; Storage Series");
  abc("/saftcart/replacement.html"		," &nbsp; Wheels");
}
  abc("/gentec/gentec.html#totes"		," &nbsp; Gentec&reg;");
  abc("/procraft/procraft.html#tape"		,"Caution Tape");
  abc("/americantool/americantool.html"		,"Clamps");
  abc("none"					,"Clamps, ground");
  abc("/jackson/jackson.html#clamps"		," &nbsp; Jackson");
  abc("/lenco/lenco.html#clamps"		," &nbsp; Lenco");
  abc("/dynaflux/dynaflux.html"			,"Cleaners, Aerosol");
  abc("none"					,"Cleaners, Tip");
if(!parent.UASI) {
  abc("/archer/archer.html"			," &nbsp; Archer");
  abc("/dbldiamond/dbldiamond.html"		," &nbsp; DoubleDiamond");
}
  abc("none"					,"Clothing, Leather");
  abc("/rawhyde/rawhyde.html#leather"		," &nbsp; RawhydeFrontier");
  abc("/procraft/procraft.html#leather"		," &nbsp; Procraft");
  abc("/ergodyne/ergodyne.html"			," &nbsp; Ergodyne");
  abc("/ironclad/ironclad.html"			," &nbsp; IronClad");
if(!parent.UASI) {
  abc("/tillman/tillman.html"			," &nbsp; Tillman");
}
  abc("/weldas/weldas.html"			," &nbsp; Weldas");
  abc("none"					,"Clothing, Protective");
  abc("/dupont/dupont.html"			," &nbsp; Dupont");
  abc("/kimclark/kimclark.html"			," &nbsp; Kimberly Clark");
  abc("/rawhyde/rawhyde.html#flame"		," &nbsp; RawhydeFrontier");
if(!parent.UASI) {
  abc("/safetee/safetee.html"			," &nbsp; Safe-Tee");
}
if(!parent.UASI) {
  abc("/tillman/tillman.html"			," &nbsp; Tillman");
}
  abc("/weldas/weldas.html"			," &nbsp; Weldas");
  abc("/profax/profax.html#collet"		,"Collets, Collet Bodies");
if(!parent.UASI) {
  abc("/weldtec/weldtec.html"			,"Collets, Collet Bodies");
}
  abc("/lenco/lenco.html#connect"		,"Connectors");
  abc("/profax/profax.html"			,"Contact Tips");
  abc("/superior/superior.html"			,"Couplers, Pneumatic");
  abc("/united/united.html#cover"		,"Cover Plates");
  abc("none"					,"Curtains, Welding");
  abc("/rawhyde/rawhyde.html#curtain"		," &nbsp; RawhydeFrontier");
  abc("/wilson/wilson.html"			," &nbsp; Wilson");
  abc("/goss/goss.html"				,"Cutting Tips");
  abc("/anderson/anderson.html"			,"Cyclone Flap Disc");
  abc("None"					,"Disposable Gloves");
  abc("/bestglove/bestglove.html"		," &nbsp; Best Glove");
  abc("/kimclark/kimclark.html#gloves"		," &nbsp; Kimberly Clark");
  abc("/memphis/memphis.html#disposable"	," &nbsp; Memphis");
if(!parent.UASI) {
  abc("/pip/pip.html"				," &nbsp; PIP");
}
  abc("/hitachi/hitachi.html#drill"		,"Drills");
  abc("none"					,"Drinks");
  abc("/gatorade/gatorade.html#gator"		," &nbsp; Gatorade");
  abc("/sqwincher/sqwincher.html"		," &nbsp; Sqwincher");
  abc("/procraft/procraft.html#electrodes"	,"Electrodes, Welding");
if(!parent.UASI) {
  abc("/harris/harris.html"			,"Electrodes, Welding");
}
  abc("none"					,"Electrode Holders");
  abc("/jackson/jackson.html#electrode"		," &nbsp; Jackson");
  abc("/lenco/lenco.html"			," &nbsp; Lenco");
  abc("/coleman/coleman.html"			,"Extension Cords");
  abc("none"					,"Eye Protection");
  abc("/aearo/aearo.html"			," &nbsp; Aearo");
if(!parent.UASI) {
  abc("/allsafe/allsafe.html"			," &nbsp; Allsafe");
}
  abc("/aearo/aearo.html#aosafety"		," &nbsp; AOSafety");
  abc("/bouton/bouton.html"			," &nbsp; Bouton");
  abc("/crews/crews.html"			," &nbsp; Crews");
  abc("/huntsman/huntsman.html#eye"		," &nbsp; Huntsman");
  abc("/interactive/interactive.html"		," &nbsp; Interactive");
  abc("/jackson/jackson.html#eye"		," &nbsp; Jackson");
  abc("/willson/willson.html"			," &nbsp; Willson&reg;");
  abc("/uvex/uvex.html"				," &nbsp; Uvex");
  abc("none"					,"Eyewash/Lens Care");
  abc("/bouton/bouton.html"			," &nbsp; Bouton");
  abc("/fendall/fendall.html"			," &nbsp; Fendall");
  abc("/united/united.html#eye"			," &nbsp; United");
  abc("/uvex/uvex.html#accy"			," &nbsp; Uvex");
  abc("none"					,"Face Shields");
  abc("/bullard/bullard.html"			," &nbsp; Bullard");
  abc("/huntsman/huntsman.html"			," &nbsp; Huntsman");
  abc("/interactive/interactive.html"		," &nbsp; Interactive");
  abc("/jackson/jackson.html#face"		," &nbsp; Jackson");
  abc("none"					,"Fall Protection");
  abc("/miller/miller.html"			," &nbsp; Miller");
  abc("/msa/msa.html#fall"			," &nbsp; MSA");
if(!parent.UASI) {
  abc("/safewaze/safewaze.html"			," &nbsp; Safewaze");
}
  abc("/simonds/simonds.html"			,"Files");
  abc("/north/north.html"			,"First Aid Kit"); 
  abc("/superior/superior.html"			,"Fittings, Brass");
if(!parent.UASI) {
  abc("/presco/presco.html"			,"Flags");
}
  abc("/procraft/procraft.html#tape"		,"Flagging Tape");
  abc("/anderson/anderson.html"			,"Flap Disc");
  abc("none"					,"Flashlights");
  abc("/brightstar/brightstar.html"		," &nbsp; Bright Star");
  abc("/pelican/pelican.html"			," &nbsp; Pelican");
  abc("/rayovac/rayovac.html"			," &nbsp; Rayovac");
  abc("/justrite/justrite.html"			,"Fuel Can");
  abc("/gatorade/gatorade.html#gator"		,"Gatorade");
  abc("/gentec/gentec.html#regulators"		,"Gauges");
  abc("none"					,"Gloves");
  abc("/ansell/ansell.html"			," &nbsp; Ansell");
  abc("/bestglove/bestglove.html"		," &nbsp; Best Glove");
  abc("/ergodyne/ergodyne.html"			," &nbsp; Ergodyne");
  abc("/ironclad/ironclad.html"			," &nbsp; IronClad");
  abc("/occunomix/occunomix.html#gloves"	," &nbsp; Occunomix");
if(!parent.UASI) {
  abc("/johndeere/johndeere.html"		," &nbsp; John Deere");
}
  abc("/kimclark/kimclark.html#gloves"		," &nbsp; Kimberly Clark");
  abc("/perfectfit/perfectfit.html"		," &nbsp; Perfectfit");
  abc("/mechanix/mechanix.html"			," &nbsp; MechanixWear");
  abc("/memphis/memphis.html"			," &nbsp; Memphis");
  abc("/rawhyde/rawhyde.html#gloves"		," &nbsp; RawhydeFrontier");
if(!parent.UASI) {
  abc("/pip/pip.html"				," &nbsp; PIP");
}
  abc("/tillman/tillman.html"			," &nbsp; Tillman");
  abc("/united/united.html#nascar"		," &nbsp; NASCAR");
if(!parent.UASI) {
  abc("/gloves/gloves.html"			," &nbsp; Miscellaneous");
}
  abc("none"					,"Gloves, Anti-Vibe");
  abc("/ergodyne/ergodyne.html"			," &nbsp; Ergodyne");
  abc("/occunomix/occunomix.html#antivibe"	," &nbsp; Occunomix");
  abc("none"					,"Goggles");
  abc("/aearo/aearo.html"			," &nbsp; Aearo");
  abc("/jackson/jackson.html#eye"		," &nbsp; Jackson");
  abc("/united/united.html"			," &nbsp; United Brand");
  abc("none"					,"Grinders");
  abc("/hitachi/hitachi.html#grinder"		," &nbsp; Hitachi");
  abc("/milwaukee/milwaukee.html"		," &nbsp; Milwaukee");
if(!parent.UASI) {
  abc("/eagle/eagle.html"			," &nbsp; Eagle");
  abc("/jepson/jepson.html"			," &nbsp; Jepson");
  abc("/stlouispn/stlouispn.html"		," &nbsp; St. Louis Pneumatic");
}
  abc("/lenco/lenco.html#clamps"		,"Ground Clamps");
  abc("/profax/profax.html"			,"Guns, MIG");
  abc("/lenox/lenox.html"			,"Hacksaws/Blades");
  abc("none"					,"Hard Hats");
  abc("/bullard/bullard.html"			," &nbsp; Bullard");
if(!parent.UASI) {
  abc("/cowhardhat/cowhardhat.html"		," &nbsp; Cowboy");
}
  abc("/msa/msa.html"				," &nbsp; MSA");
  abc("/jackson/jackson.html"			," &nbsp; Jackson");
if(!parent.UASI) {
  abc("/occunomix/occunomix.html#caps"		," &nbsp; Occunomix");
}
  abc("none"					,"Harnesses");
  abc("/msa/msa.html#harness"			," &nbsp; MSA");
  abc("/miller/miller.html"			," &nbsp; Miller");
  abc("none"					,"Hearing Protection");
  abc("/aearo/aearo.html#ear"			," &nbsp; Aearo");
  abc("/bilsom/bilsom.html"			," &nbsp; Bilsom&reg;");
  abc("/howard/howard.html"			," &nbsp; Howard Leight");
  abc("/moldex/moldex.html#ear"			," &nbsp; Moldex");
  abc("/north/north.html"			," &nbsp; North");
  abc("/aearo/aearo.html#peltor"		," &nbsp; Peltor");
  abc("/3m/3m.html#ear"				," &nbsp; 3M");
  abc("none"					,"Heaters");
  abc("/mrheater/mrheater.html"			," &nbsp; Mr. Heater");
if(!parent.UASI) {
  abc("/desa/desa.html"				," &nbsp; Desa");
  abc("/nrs/nrs.html"				," &nbsp; NRS");
}
  abc("none"					,"Helmets, Welding");
  abc("/fibremetal/fibremetal.html"		," &nbsp; Fibre-Metal");
  abc("/huntsman/huntsman.html"			," &nbsp; Huntsman");
  abc("/jackson/jackson.html#helm"		," &nbsp; Jackson");
  abc("/optrel/optrel.html"			," &nbsp; Optrel");
  abc("/lenco/lenco.html"			,"Holders, electrode");
if(!parent.UASI) {
  abc("/skyhook/skyhook.html"			,"Holders, hose");
}
  abc("none"					,"Hoses");
  abc("/dayco/dayco.html"			," &nbsp; Dayco");
if(!parent.UASI) {
  abc("/interstate/interstate.html"		," &nbsp; Interstate");
}
  abc("/superior/superior.html#hose"		,"Hose Repair Kits");
if(!parent.UASI) {
  abc("/dbldiamond/dbldiamond.html"		,"Hose Repair Kits");
}
  abc("none"					,"Kneepads");
  abc("/ergodyne/ergodyne.html"			," &nbsp; Ergodyne");
  abc("/occunomix/occunomix.html#knee"		," &nbsp; Occunomix");
  abc("/coleman/coleman.html"			,"Jumper Cables");
if(!parent.UASI) {
  abc("/sog/sog.html"				,"Knives");
}
  abc("/accuform/accuform.html"			,"Labels");
  abc("none"					,"Lenses");
  abc("/huntsman/huntsman.html#lens"		," &nbsp; Huntsman");
  abc("/united/united.html#lens"		," &nbsp; United");
  abc("none"					,"Levels");
if(!parent.UASI) {
  abc("/archer/archer.html#level"		," &nbsp; Archer");
}
  abc("/empire/empire.html"			," &nbsp; Empire");
  abc("none"					,"Lights");
  abc("/brightstar/brightstar.html"		," &nbsp; Bright Star");
  abc("/pelican/pelican.html"			," &nbsp; Pelican");
  abc("/rayovac/rayovac.html"			," &nbsp; Rayovac");
  abc("/shurlite/shurlite.html"			,"Lighters");
  abc("/americanlock/americanlock.html"		,"Locks");
  abc("/procraft/procraft.html#magnet"		,"Magnets");
if(!parent.UASI) {
  abc("/dbldiamond/dbldiamond.html"		,"Magnets");
}
  abc("/nissen/nissen.html"			,"Markers, Metal");
  abc("/sharpie/sharpie.html"			,"Markers, other");
  abc("none"					,"Nozzle Cleaner");
  abc("/united/united.html#clean"		," &nbsp; United");
  abc("/weldaid/weldaid.html"			," &nbsp; Weld-Aid");
  abc("/keen/keen.html"				,"Ovens, Rod");
  abc("/trucut/trucut.html"			,"Pipe Guides");
  abc("/americantool/americantool.html"		,"Pliers");
  abc("/procraft/procraft.html#plug"		,"Plugs");
  abc("none"					,"Power Tools");
  abc("/hitachi/hitachi.html"			," &nbsp; Hitachi");
  abc("/milwaukee/milwaukee.html"		," &nbsp; Milwaukee");
  abc("none"					,"Rainsuits");
  abc("/rivercity/rivercity.html#rain"		," &nbsp; River City");
  abc("/rawhyde/rawhyde.html#rain"		," &nbsp; RawhydeFrontier");
if(!parent.UASI) {
  abc("/ratcheteer/ratcheteer.html"		,"Ratchet Wrench");
}
  abc("/worthy/worthy.html"			,"Ratchet Wrench");
  abc("none"					,"Regulators");
  abc("/gentec/gentec.html#regulator"		," &nbsp; Gentec");
if(!parent.UASI) {
  abc("/victor/victor.html"			," &nbsp; Victor");
}
  abc("none"					,"Respirators");
  abc("/aearo/aearo.html#aosafety"		," &nbsp; AOSafety");
  abc("/gerson/gerson.html"			," &nbsp; Gerson");
  abc("/moldex/moldex.html"			," &nbsp; Moldex");
  abc("/north/north.html"			," &nbsp; North");
  abc("/3m/3m.html"				," &nbsp; 3M");
  abc("/willson/willson.html#breath"		," &nbsp; Willson");
  abc("none"					,"Rod Holders");
  abc("/rawhyde/rawhyde.html#rod"		," &nbsp; RawhydeFrontier");
  abc("/united/united.html#hold"		," &nbsp; United");
  abc("none"					,"Rods, Welding");
  abc("/procraft/procraft.html#rod"		," &nbsp; Procraft");
  abc("/profax/profax.html#rod"			," &nbsp; Profax");
if(!parent.UASI) {
  abc("none"					,"Sanders");
  abc("/milwaukee/milwaukee.html#sander"	," &nbsp; Milwaukee");
  abc("/stlouispn/stlouispn.html#sander"	," &nbsp; St.Louis Pneumatic");
}
  abc("/milwaukee/milwaukee.html#saw"		,"Saw, Chop");
  abc("/hitachi/hitachi.html#cutoff"		,"Saw, Cut Off");
  abc("/hitachi/hitachi.html#recip"		,"Saw, Reciprocating");
if(!parent.UASI) {
  abc("/txpneumat/txpneumat.html"		,"Scalers");
}
  abc("/dymon/dymon.html"			,"Scrubs");
if(!parent.UASI) {
  abc("/shipsupp/shipsupp.html"			,"Shipping Supplies");
}
  abc("/accuform/accuform.html"			,"Signs");
  abc("/lamba/lamba.html"			,"Signs, Caution");
  abc("/king/king.html"				,"Soapstone/Holders");
  abc("/empire/empire.html"			,"Squares");
if(!parent.UASI) {
  abc("/hanson/hanson.html"			,"Stamps, Steel");
}
  abc("/north/north.html"			,"Sunscreen"); 
if(!parent.UASI) {
  abc("/3m/3m.html#tape"			,"Tape");
}
  abc("/olympia/olympia.html"			,"Tape Measure");
if(!parent.UASI) {
  abc("/komelan/komelan.html"			,"Tape Measure");
}
  abc("/tempil/tempil.html"			,"Tempilsticks");
if(!parent.UASI) {
  abc("/keeper/keeper.html"			,"Tie-downs");
}
  abc("none"					,"Tip Cleaners");
  abc("/king/king.html"				," &nbsp; King Tool");
  abc("/wypo/wypo.html"				," &nbsp; Wypo");
if(!parent.UASI) {
  abc("/dbldiamond/dbldiamond.html"		," &nbsp; Double Diamond");
}
  abc("/goss/goss.html#tips"			,"Tips");
  abc("/king/king.html"				,"Tips, Drill");
  abc("/tillman/tillman.html"			,"Tool Bags");
  abc("none"					,"Torches & Kits");
  abc("/gentec/gentec.html#kits"		," &nbsp; Gentec");
  abc("/profax/profax.html#torch"		," &nbsp; Profax");
  abc("/procraft/procraft.html#tungsten"	,"Tungsten");
if(!parent.UASI) {
  abc("/procraft/procraft.html#umbrellas"	,"Umbrellas");
}
  abc("none"					,"Vest, Safety");
  abc("/occunomix/occunomix.html#vest"		," &nbsp; Occunomix");
  abc("/rawhyde/rawhyde.html#vest"		," &nbsp; RawhydeFrontier");
  abc("/rivercity/rivercity.html#vest"		," &nbsp; River City");
  abc("/americantool/americantool.html"		,"Vise-Grip&reg;");
if(!parent.UASI) {
  abc("/summer/summer.html#wasp"		,"Wasp Spray");
}
  abc("/wd40/wd40.html"				,"WD-40");
  abc("/wilson/wilson.html"			,"Welding Blankets");
  abc("none"					,"Welding Curtains");
  abc("/rawhyde/rawhyde.html#curtain"		," &nbsp; RawhydeFrontier");
  abc("/wilson/wilson.html"			," &nbsp; Wilson");
  abc("/welding/welding.html"			,"Welding Tools");
  abc("/procraft/procraft.html"			,"Welding Wire");
if(!parent.UASI) {
  abc("/harris/harris.html"			,"Welding Wire");
}
  navbar.frames.document.write('</SELECT>');
}

// 030320	NEW FUNCTIONS ADDED TO OPTOMIZE INDIVIDUAL order.html CODE
function loadAll(f) {		// LOAD FORM VALUES FROM PARENT VARIABLES
  f.cmCont.value  = parent.cmCont;
  f.cmMail.value  = parent.cmMail;
  f.cmTele.value  = parent.cmTele;
  f.cmFax.value   = parent.cmFax;
  f.cmCust.value  = parent.cmCust;
  f.cmPurc.value  = parent.cmPurc;
  f.cmBName.value = parent.cmBName;
  f.cmBAdd1.value = parent.cmBAdd1;
  f.cmBAdd2.value = parent.cmBAdd2;
  f.cmBCity.value = parent.cmBCity;
  f.cmSName.value = parent.cmSName;
  f.cmSAdd1.value = parent.cmSAdd1;
  f.cmSAdd2.value = parent.cmSAdd2;
  f.cmSCity.value = parent.cmSCity;
  f.message.value = parent.message;
}

function saveAll(f) {		// SAVE FORM VALUES IN PARENT VARIABLES
  parent.cmCont  = f.cmCont.value;
  parent.cmMail  = f.cmMail.value;
  parent.cmTele  = f.cmTele.value;
  parent.cmFax   = f.cmFax.value;
  parent.cmCust  = f.cmCust.value;
  parent.cmPurc  = f.cmPurc.value;
  parent.cmBName = f.cmBName.value;
  parent.cmBAdd1 = f.cmBAdd1.value;
  parent.cmBAdd2 = f.cmBAdd2.value;
  parent.cmBCity = f.cmBCity.value;
  parent.cmSName = f.cmSName.value;
  parent.cmSAdd1 = f.cmSAdd1.value;
  parent.cmSAdd2 = f.cmSAdd2.value;
  parent.cmSCity = f.cmSCity.value;
  parent.message = f.message.value;
  for(i=0;i<parent.totItem+2 || i<5;i++) {	// SAVE LINE ITEMS IN PARENT
    parent.oiItem[i+1].icPart = f.icPart[i].value;
    parent.oiItem[i+1].icDesc = f.icDesc[i].value;
    parent.oiItem[i+1].oiQuan = eval(f.oiQuan[i].value);
    parent.oiItem[i+1].oiPric = eval(f.oiPric[i].value);
} }

function erase(f) {		// ERASE ALL FORM VARIABLES
  for(i=0;i<parent.totItem+2 || i<5;i++) {	// FOR ALL DISPLAYED LINE ITEMS
    f.icPart[i].value = '';
    f.icDesc[i].value = '';
    f.oiQuan[i].value = 0;
    f.oiPric[i].value = 0;
    f.oiPRIC[i].value = 0;
    parent.oiItem[i+1].Rurl = "NONE";
    parent.oiItem[i+1].Promo = 0;
  }
  f.totPric.value = 0;
  f.proPric.value = 0;
  parent.cmCont  = "";
  parent.cmMail  = "";
  parent.cmTele  = "";
  parent.cmFax   = "";
  parent.cmCust  = "";
  parent.cmPurc  = "";
  parent.cmBName = "";
  parent.cmBAdd1 = "";
  parent.cmBAdd2 = "";
  parent.cmBCity = "";
  parent.cmSName = "";
  parent.cmSAdd1 = "";
  parent.cmSAdd2 = "";
  parent.cmSCity = "";
  parent.message = "";
}

function compute(f) {		// COMPUTE EXTENDED PRICES/TOTALS ON FORM
  var	E = 0;					// EXTENDED PRICE
  var	T = 0;					// ORDER TOTAL
  var	P = 0;					// PROMO TOTAL
  var	B = 0;					// BALANCE TO NEXT LEVEL

  for(i=0;i<parent.totItem+2 || i<5;i++) {	// FOR ALL DISPLAYED LINE ITEMS
    E = eval(f.oiQuan[i].value)*
        eval(f.oiPric[i].value);
    f.oiPric[i].value=format(f.oiPric[i].value,10,3);
    f.oiPRIC[i].value=format(E,12,2);
    if(f.Promo[i].value == 1) P += E;
    T += E;
  }

  parent.totPric = format(T,12,2);
  parent.proPric = format(P,12,2);

  parent.gopromo(P);

  f.totPric.value = parent.totPric;
  f.proPric.value = parent.proPric;
  f.proText.value = parent.proText;
  f.proNext.value = parent.proNext;

//#ifndef	new040512
  parent.delTotl = 0;
  if(T) {
    for(i=1;i<=5;i++) {
      if(T < parent.delBrea[i]) {
        parent.delTotl = format(parent.delAmnt[i],12,2);
        break;
  } } }
  f.delTotl.value = parent.delTotl;
//#endif

if(location.protocol == "http:") {
  parent.navbar.document.navbar.totPric.value = parent.totPric;
  parent.navbar.document.navbar.proPric.value = parent.proPric;
  parent.navbar.document.navbar.proText.value = parent.proText;
  parent.navbar.document.navbar.proNext.value = parent.proNext;
}

  for(j=parent.MAXITEM;j>0;j--) {		// COUNT TOTAL NUM LINE ITEMS
    if(parent.oiItem[j].icPart!="" ||
       parent.oiItem[j].icDesc!="" ||
       parent.oiItem[j].oiQuan!=0  ||
       parent.oiItem[j].oiPric!=0) break;
  }
  parent.totItem = j;				// alert('new totItem='+j);

  if(parent.curline < 1 ||
     parent.curline > parent.MAXITEM) parent.curline = 1;
  f.oiQuan[parent.curline-1].select();
  f.oiQuan[parent.curline-1].focus();
}

function updatego(f) {
  parent.compute(f);
  if     (!f.cmCont.value.length) {
    alert('Please Enter Contact Name\n');
    f.cmCont.focus();
  }
  else if(!f.cmMail.value.length) {
    alert('Please Enter E-Mail Address\n');
    f.cmMail.focus();
  }
  else if(!f.cmTele.value.length) { 
    alert('Please Enter Tele#\n');
    f.cmTele.focus();
  }
  else if(!f.cmFax.value.length)  {
    alert('Please Enter Fax#\n');
    f.cmFax.focus();
  }
  else f.submit();
  return false;
}
