function MakeNewWindow(imageName,msg, background) {
     
	x=new Image;
    x.src=imageName;
    OriginalWidth=x.width;
	Wide=750;
    OriginalTall=x.height;
	Tall=800;
   // alert("Image width is: "+Wide+" pixels, and image height is: "+Tall+" pixels.");
   // alert('incoming image name value ' + imageName);
   // var OriginalWidth = (document.images["'" + eval(imageName)+ "'"].width); 
	//''var OriginalTall = (document.images["'" + eval(imageName)+ "'"].height); 
	//OriginalWidth += 40;
   // OriginalTall += 40;  //add room for title etc

	newWindow = window.open('DavidBusch','DavidBuschImages',resizeable='yes'+',width='+Wide+',height='+Tall)
	

// form the page to be seen
var newContent = '<HTML><HEAD><Title>'+ msg + '</Title>' 	
    newContent += '</Head>'
    newContent += '<Body background=' + background + ' style="background-repeat: no-repeat;background-position: left top;">';
    newContent += '<br /><br /><br /><form>'
    newContent += '<center>'
   	newContent += '<img src=' + imageName + " border=0  align='center' width=" + OriginalWidth + " height= " + OriginalTall + ">"
	newContent += '<br /><br /><br /><br /><H2 align=center>' + msg + '</H2>'
  	newContent += '<input type=Button Name=New value="Close window" '
	newContent += ' onClick=self.close();>'
	newContent += '</center>'
	newContent += '</form>'
	newContent += '</body>'
	newContent += '</html>'
	
	newWindow.document.write(newContent)
	newWindow.document.close()  //close layout stream
	 }

function CloseNewWindow() {
   if (newWindow) {
     newWindow.close();
     }   //end of window statement

  }   //end of function CloseNewWindow
  //-->