﻿
//this one below works, other does not

function opener(nom) {

window.open("images" + "/" + "metal" + "/" + nom + ".jpg");

}

function closer() {
	
window.close();

}

// for fullsize function
function openNew(nem) {
  myWin= open();

  // open document for further output
  myWin.document.open();

  // create document
  myWin.document.write("<html><head><title>" + nem);
   myWin.document.write("</title></head><body bgcolor='#ccffff'>");
   myWin.document.write("<div align='center'><br/><br/>");
   myWin.document.write("<a href='javascript:window.close();'><img src='images/metal/" + nem + ".jpg' /></a><br/><br/>");
   myWin.document.write("</div>");  
   myWin.document.write("</body></html>");

  // close the document - (not the window!)
  myWin.document.close();
}