  if (document.images)
  {
     // active images
     go1on = new Image();
     go1on.src = "/cil/images/sp/go1_over.gif";
     abouton = new Image();
     abouton.src = "/cil/images/sp/about_over.gif";
     productson = new Image();
     productson.src = "/cil/images/sp/products_over.gif";
     promoon = new Image();
     promoon.src = "/cil/images/sp/promo_over.gif";
     compoundon = new Image();
     compoundon.src = "/cil/images/sp/compound_over.gif";
     customeron = new Image();
     customeron.src = "/cil/images/sp/customer_over.gif";
     techon = new Image();
     techon.src = "/cil/images/sp/technical_over.gif";
     literatureon = new Image();
     literatureon.src = "/cil/images/sp/literature_over.gif";
     newson = new Image();
     newson.src = "/cil/images/sp/news_over.gif";
     contacton = new Image();
     contacton.src = "/cil/images/sp/contact_over.gif";
     specialon = new Image();
     specialon.src = "/cil/images/sp/special_over.gif";
     homeon = new Image();
     homeon.src = "/cil/images/sp/home_over.gif";
     specialon = new Image();
     specialon.src = "/cil/images/sp/special_over.gif";
     searchon = new Image();
     searchon.src = "/cil/images/sp/search_over.gif";
     smloginon = new Image();
     smloginon.src = "/cil/images/sp/smlogin_over.gif";
     registeron = new Image();
     registeron.src = "/cil/images/sp/register_over.gif";
     search2on = new Image();
     search2on.src = "/cil/images/sp/search_butt_on.gif";
     browseon = new Image();
     browseon.src = "/cil/images/sp/browse_butt_on.gif";
     prodtypeon = new Image();
     prodtypeon.src = "/cil/images/sp/prodtypbutt_on.gif";
     
     addpurchaseon = new Image();
     addpurchaseon.src="/cil/images/sp/addpurchase_on.gif";
     addquoteon = new Image();
     addquoteon.src="/cil/images/sp/addquote_on.gif";
     
     removecarton = new Image();
     removecarton.src="/cil/images/sp/removecart_on.gif";
     viewcarton = new Image();
     viewcarton.src="/cil/images/sp/viewcart_on.gif";
     viewcart2on = new Image();
     viewcart2on.src="/cil/images/sp/viewcart2_on.gif";
     updatecarton = new Image();
     updatecarton.src="/cil/images/sp/updatecart_on.gif";
     seargainon = new Image();
     seargainon.src="/cil/images/sp/searchagain_on.gif";
     dot = new Image();
     dot.src="/cil/images/sp/delete_on.gif";
     
     safetyfileon = new Image();
     safetyfileon.src="/cil/images/sp/safetyfile_on.gif";
     analysison = new Image();
     analysison.src="/cil/images/sp/analysisfile_on.gif";
     infofileon = new Image();
     infofileon.src="/cil/images/icon_info_on.gif";
     
     submitformon = new Image();
     submitformon.src="/cil/images/sp/submit_on.gif";
     resetformon = new Image();
     resetformon.src="/cil/images/sp/reset_on.gif";
     clearformon = new Image();
     clearformon.src="/cil/images/sp/clear_on.gif";
     checkouton = new Image();
     checkouton.src="/cil/images/sp/checkout_on.gif";
     search2aon = new Image();
     search2aon.src="/cil/images/sp/search2_on.gif";
     
     // inactive images
     go1off = new Image();
     go1off.src = "/cil/images/sp/go1.gif";
     aboutoff = new Image();
     aboutoff.src = "/cil/images/sp/about.gif";
     productsoff = new Image();
     productsoff.src = "/cil/images/sp/products.gif";
     promooff = new Image();
     promooff.src = "/cil/images/sp/promo.gif";
     compoundoff = new Image();
     compoundoff.src = "/cil/images/sp/compound.gif";
     customeroff = new Image();
     customeroff.src = "/cil/images/sp/customer.gif";
     techoff = new Image();
     techoff.src = "/cil/images/sp/technical.gif";
     literatureoff = new Image();
     literatureoff.src = "/cil/images/sp/literature.gif";
     newsoff = new Image();
     newsoff.src = "/cil/images/sp/news.gif";
     contactoff = new Image();
     contactoff.src = "/cil/images/sp/contact.gif";
     specialoff = new Image();
     specialoff.src = "/cil/images/sp/special.gif";
     homeoff = new Image();
     homeoff.src = "/cil/images/sp/home.gif";
     searchoff = new Image();
     searchoff.src = "/cil/images/sp/search.gif";
     smloginoff = new Image();
     smloginoff.src = "/cil/images/sp/smlogin.gif";
     registeroff = new Image();
     registeroff.src = "/cil/images/sp/register.gif";
     search2off = new Image();
     search2off.src = "/cil/images/sp/search_butt_off.gif";
     browseoff = new Image();
     browseoff.src = "/cil/images/sp/browse_butt_off.gif";
     prodtypeoff = new Image();
     prodtypeoff.src = "/cil/images/sp/prodtypbutt_off.gif";
     
     addpurchaseoff = new Image();
     addpurchaseoff.src="/cil/images/sp/addpurchase_off.gif";
     addquoteoff = new Image();
     addquoteoff.src="/cil/images/sp/addquote_off.gif";
     
     removecartoff = new Image();
     removecartoff.src="/cil/images/sp/removecart_off.gif";
     viewcartoff = new Image();
     viewcartoff.src="/cil/images/sp/viewcart_off.gif";
     viewcart2off = new Image();
     viewcart2off.src="/cil/images/sp/viewcart2_off.gif";
     updatecartoff = new Image();
     updatecartoff.src="/cil/images/sp/updatecart_off.gif";
     seargainoff = new Image();
     seargainoff.src="/cil/images/sp/searchagain_off.gif";
     spacer = new Image();
     spacer.src="/cil/images/sp/delete_off.gif";
     
     safetyfileoff = new Image();
     safetyfileoff.src="/cil/images/sp/safetyfile_off.gif";
     analysisoff = new Image();
     analysisoff.src="/cil/images/sp/analysisfile_off.gif";
     infofileoff = new Image();
     infofileoff.src="/cil/images/icon_info.gif";
     
     submitformoff = new Image();
     submitformoff.src="/cil/images/sp/submit_off.gif";
     resetformoff = new Image();
     resetformoff.src="/cil/images/sp/reset_off.gif";
     clearformoff = new Image();
     clearformoff.src="/cil/images/sp/clear_off.gif";
     checkoutoff = new Image();
     checkoutoff.src="/cil/images/sp/checkout_off.gif";
     search2aoff = new Image();
     search2aoff.src="/cil/images/sp/search2_off.gif";
     
   }
   
   // image on function
   function imgOn(imgName)
   {
     if (document.images)
     {
       document [imgName].src = eval (imgName + "on.src");
     }
   }
   
   // image off function
   function imgOff(imgName)
   {
     if (document.images)
     {
       document [imgName].src = eval (imgName + "off.src");
     }
   }
   
   
    function changeColor(cell,newcolor)//function to change the color of an element
    {
      if(document.getElementById){
      document.getElementById(cell).style.color=newcolor
      }
      else if (document.all) {
      document.all[cell].style.color=newcolor
      }
      }  
    
       
    function changeBG(cell,newcolor)//function to change the background color of an element
    {
      if(document.getElementById){
      document.getElementById(cell).style.background=newcolor
      }
      else if(document.all){
     document.all[cell].style.background=newcolor
      }
    }  
    
    
    
//----------------------------------------------------
// Pop-up window function
//----------------------------------------------------
function popup(url, width, height, windowName)
{
  // browser sniffing to determine if positioning of pop-up window is supported
  theversion=navigator.appVersion.substring(0,3);
  if (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) == '4')
  {
    myscreenX = screenX + (outerWidth-width)/2;
    myscreenY = screenY + (outerHeight-height)/2;
  }
  else
  {
    // IE & Nav3 don't do positioning, variables just have to exist...
    myscreenX = 0;
    myscreenY = 0;
  }
  
  // default window name if not passed to function
  if (!windowName) { windowName = "popup_window"; }
  wref = window.open (url, windowName,
        "toolbar=no,width=" + width + ",height=" + height +
        ",screenX=" + myscreenX + ",screenY=" + myscreenY +
        ",directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");
  wref.focus();
}
    
    
//-----------------------------------------------------------
// SHOPPING CART FUNCTIONS
//-----------------------------------------------------------

function checkout()
{
   document.cartform.mode.value="checkout";
   document.cartform.submit();
}

function updatecart()
{
   document.cartform.mode.value="update";
   document.cartform.submit();
}


function dotOn (imgName) //dot on
{
 if (document.images)
 {
   document[imgName].src = dot.src;
 }
}

function dotOff(imgName) // dot off
{
 if (document.images)
 {
   document[imgName].src = spacer.src ;
 }
}