// A function to lookup and display an image and the code for an item.
// The image file name is the code, in lower case, followed by the
// file extension specified in the lcFtype parameter.

// Rev 03/25/2009 MMG/EH
// Begun 08/09/2002

 // The parameters govern (1) raw Itemcode to be displayed;
 // (2) ItemCode converted to lowercase, used to assemble
 // the filename for an image file; (3) window properties; and 
 // (4) 3-char file extension for the image file (e.g. 'jpg' or 'gif').

 function GetImage (lcItemCode,lcLowCode,lcWfeatures,lcFtype) {
 
  var w = window.open("",      // URL ( none specified)
         "item_" + lcItemCode, // Name (should be unique)
         lcWfeatures); // Features (e.g.,'resizable,status,width=150,height=150')
  var d = w.document;     // We use this variable to save typing    
 
 // Output an HTML document into the new window
 d.write('<IMG SRC = "images/'+ lcLowCode +'.'+ lcFtype +'">')
 d.write('<BR>') 
 d.write(lcItemCode)

 // Remember to close the document when we're done
  d.close();
  }

