
function displayPhoto(photo,width,height,desc){
var w = width+50;
var h = height+80;
var url="";

var name="popup";
var features="width="+w+",height="+h;
features+=",scrollbars=yes,status=yes,menubar=yes";

var myNewWindow=window.open(url,name,features);
myNewWindow.focus();
myNewWindow.document.open();
//open a new document in the window
myNewWindow.document.write("<html>");
//write to the document
myNewWindow.document.write("<head>");
myNewWindow.document.write("<title>"+desc+"</title>");
myNewWindow.document.write("</head>");
myNewWindow.document.write("<body bgcolor=#fffff0>");
myNewWindow.document.write("<div align=center>");
myNewWindow.document.write("<form>");
myNewWindow.document.write("<input type='button' value='Close this window!' onClick='parent.close()'><br>");
// this button will close the window
myNewWindow.document.write("</form></div>");
myNewWindow.document.write("<p align=center><img src="+photo+"></p>"); 

myNewWindow.document.write("</body>");
myNewWindow.document.write("</html>");

myNewWindow.document.close();

}



