
function popwindow(imgurl, height, width, caption, artist){
//function popwindow(imgurl, height, width){

  var newwindow;
  
  var x = width + 37;	// REM: Allow for width of the scrollbars
  var y = height + 37 // REM: Allow for height of the scrollbars and logo image

  //newwindow=window.open('','name','height=400,width=500, top=100, left=100, resizable=no, scrollbars=yes, toolbar=yes, status=yes');
  newwindow=window.open('','name','height=' + y + ',' + 'width=' + x + ',' + 'top=40, left=40, resizable=yes, scrollbars=yes');

  newwindow.document.write('<html><head><title>Popup</title>');
  newwindow.document.write('<link rel="stylesheet" href="css/global.css">');
  newwindow.document.write('</head><body oncontextmenu="return false;">');
  // newwindow.document.write('<div align="center"><img src="themes/slate/images/poplogo.gif"/></div>');
  // newwindow.document.write('<div>height=' + height);
  // newwindow.document.write('<div>width=' + width);
  newwindow.document.write('<div align="center"><img src="' + imgurl + '"/></div>');
  newwindow.document.write('<div align="center">' + caption + '</div>');
  newwindow.document.write('<div align="center">' + artist + '</div>');
  //newwindow.document.write('<p><a href="javascript:self.close()">Close</a> this window.</p>');
  newwindow.document.write('</body></html>');
  newwindow.document.close();

 // Check whether the focus() method is supported.
 // If it is, set the browser's focus on the new window
  if (window.focus) {
	  newwindow.focus()
	  }
}

// ---------------------------------------------------------------------------------------------------


// === Begin Popup Window ===

function popwin(imgurl, height, width)
{

  var newwindow;
  
  var x = width
  var y = height

  newwindow=window.open(imgurl,'name','height=' + y + ',' + 'width=' + x + ',' + 'top=40, left=40, resizable=yes, scrollbars=yes');



 // Check whether the focus() method is supported.
 // If it is, set the browser's focus on the new window

  if (window.focus) {newwindow.focus()}


}

// === End Popup Window ===

