var popUpWin
function makePopUpWin(pic,high,wide,text,features) {
 var tall = high + 100  
 var side = wide + 40  
 var describeIt = text
 var picture = eval("pic")
 var winFeatures = features
 posx = (screen.width - side)/2
 posy = (screen.height - tall)/2
 if (!popUpWin || popUpWin.closed) {
   popUpWin = eval("window.open('','','height="+tall+",width="+side+",screenx="+posx+",screeny="+posy+",left="+posx+",right="+posy+"')")
   if (!popUpWin.opener) {
     popUpWin.opener = window
   }
   // content for the popup window is defined here
   var popUpContent = "<html><head><title>Site@school: </title></head>"
   popUpContent += "<body BGCOLOR='#DDE3EB' TEXT='#000000'> <center><strong>" + describeIt + "</strong><p>" 
   popUpContent += "<img src="+picture+"><br><p>"
   popUpContent += "<FORM><INPUT TYPE=BUTTON VALUE='Close window' onClick='self.close()' STYLE='height : 18; width : 85;font-family:Arial;font-size:7pt;font-weight:bold;text-align:center'></FORM>" 
   popUpContent += "</a></center></body></html>"
   popUpWin.document.write(popUpContent)
   popUpWin.document.close()
 } else {
   popUpWin.focus()
 }
}