
function imgwindow(imgname) {
  window.name="parent"
  var NewWindow;

  var wintxt = "<HTML><HEAD><TITLE>" + imgname + "</TITLE>";
  wintxt += "<link rel=stylesheet type=\"text/css\" href =\"style.css\" title=\"styles\"></HEAD><BODY>";
  wintxt += "<center> <a href='javascript:window.close();'>Close Window</a><p>\n";
  wintxt += "<img src='images/pictures/" + imgname + "' \n";
  wintxt += "alt='" + imgname + "'>\n";
  wintxt += "</center> \n";
  wintxt += "</BODY></HTML>";

  NewWindow = window.open("",'NewWin','resizable=no,toolbar=no,scrollbars=yes,status=no,width=800,height=600');
  NewWindow.document.write(wintxt);
  NewWindow.focus();
  NewWindow.document.close();
  NewWindow.moveTo (50,100);
}

function ggawin(imgname) {
  window.name="parent"
  var NewWindow;

  var wintxt = "<HTML><HEAD><TITLE>" + imgname + "</TITLE>";
  wintxt += "<link rel=stylesheet type=\"text/css\" href =\"style.css\" title=\"styles\"></HEAD><BODY>";
  wintxt += "<center> <a href='javascript:window.close();'>Close Window</a><p>\n";
  wintxt += "<img src='images/gga/" + imgname + "' \n";
  wintxt += "alt='" + imgname + "'>\n";
  wintxt += "</center> \n";
  wintxt += "</BODY></HTML>";

  NewWindow = window.open("",'NewWin','resizable=no,toolbar=no,scrollbars=yes,status=no,width=800,height=600');
  NewWindow.document.write(wintxt);
  NewWindow.focus();
  NewWindow.document.close();
  NewWindow.moveTo (50,100);
  
  return false;
}

function owin(imgname, dirname) {
  window.name="parent"
  var NewWindow;

  var wintxt = "<HTML><HEAD><TITLE>" + imgname + "</TITLE>";
  wintxt += "<link rel=stylesheet type=\"text/css\" href =\"style.css\" title=\"styles\"></HEAD><BODY>";
  wintxt += "<center> <a href='javascript:window.close();'>Close Window</a><p>\n";
  wintxt += "<img src='images/" + dirname + "/" + imgname + "' \n";
  wintxt += "alt='" + imgname + "'>\n";
  wintxt += "</center> \n";
  wintxt += "</BODY></HTML>";

  NewWindow = window.open("",'NewWin','resizable=no,toolbar=no,scrollbars=yes,status=no,width=800,height=600');
  NewWindow.document.write(wintxt);
  NewWindow.focus();
  NewWindow.document.close();
  NewWindow.moveTo (50,100);
  
  return false;
}


function owin2(imgname, dirname) {
  window.name="parent"
  var NewWindow;

  var wintxt = "<HTML><HEAD><TITLE>" + imgname + "</TITLE>";
  wintxt += "<link rel=stylesheet type=\"text/css\" href =\"style.css\" title=\"styles\"></HEAD><BODY>";
  wintxt += "<center> <a href='javascript:window.close();'>Close Window</a><p>\n";
  wintxt += "<img src='" + dirname + "/" + imgname + "' \n";
  wintxt += "alt='" + imgname + "'>\n";
  wintxt += "</center> \n";
  wintxt += "</BODY></HTML>";

  NewWindow = window.open("",'NewWin','resizable=no,toolbar=no,scrollbars=yes,status=no,width=800,height=600');
  NewWindow.document.write(wintxt);
  NewWindow.focus();
  NewWindow.document.close();
  NewWindow.moveTo (50,100);
  
  return false;
}
