<!-- Hide from old browsers
// Copyright 2000 Brett St.Pierre
//
//
// Use this function to open a window and give it focus
// Function call:
//  <a href="javascript:openwindow('image','item_name','additional_text','second_image','width','height')">link image or text</a>
//
// The image is a relative location to the image file based on the
// location of the calling page.
//    ie: 'graphics/image.gif' means the the image file is in a
//        sub-directory of that the page containing the script is in.
//
// If the item name has a space (Item Name) use &nbsp; for the space
//    ie: 'Item&nbsp;Name'
//
// The additional text will be written directly under the image (using a line break).
//
// If no second image desired you must pass in 'null'.
// To display a second image pass in the relative location to the image file
//
// Width is the width to make the window
//
// Height is the height to make the window
//
// <script type="text/javascript" src="scripts/accessory_window.js"></script>
//
// 06/08/2008 Changed resizable to yes. Due to browser changes this will be needed to ensure everyone will be able to view the contents.

function openwindow (accImage,Item,addText,accImage2,wd,ht) {
  if (accImage != null) {
    var wAccWindowFeatures = "resizable=yes,directories=no,toolbar=no,location=no,menubar=no,scrollbars=no,status=yes,width="
        wAccWindowFeatures += wd
        wAccWindowFeatures += ",height="
        wAccWindowFeatures += ht
        wAccWindow = window.open("", "wAccWindow", wAccWindowFeatures)
  }

  if (wAccWindow != null) {
    var wAccWindowDef = "<HTML><HEAD><TITLE>Accessory Closeup</TITLE>"
        wAccWindowDef += "<link rel='STYLESHEET' type='text/css' href='common_style.css'>"
        wAccWindowDef += "</HEAD>"
        wAccWindowDef += "<BODY><table class='sec_major'><tr><td class='sec_header'>"
        wAccWindowDef += Item
        wAccWindowDef += "</td></tr></table>"
        wAccWindowDef += "<CENTER><p><IMG class='framed' src="
        wAccWindowDef += accImage
        wAccWindowDef += ">"
        if (accImage2 != "null") {
              wAccWindowDef += "&nbsp;<IMG class='framed' src="
              wAccWindowDef += accImage2
              wAccWindowDef += ">"
        }
        wAccWindowDef += "<p><font size=2 face='Arial'>"
        wAccWindowDef += addText
        wAccWindowDef += "</font>"
        wAccWindowDef += "</CENTER></BODY></HTML>"
      wAccWindow.resizeTo(wd,ht)
      wAccWindow.focus()
      wAccWindow.document.write(wAccWindowDef)
      wAccWindow.document.close() 
  }
}

// End hiding from old browsers -->
