/*****Popup Window Definition*****/

var htmlOpener = "<html><head><title>Kelly Survey Photo Popup</title>"+
			"</head><body bgcolor='#ffffff'><p>"
var htmlCloser = "</body></html>"

 photo = "<center><b>Kelly Survey Photo Popup Window</b></center><p>"+
        " <center><p><img src='http://www.kellysurvey.com/images/survey1.jpg'></center>"

 photo2 = "<center><b>Kelly Survey Photo Popup Window</b></center><p>"+
        " <center><p><img src='http://www.kellysurvey.com/images/logo.gif'></center>"


/****END OF STRING DEFINITION*****/


 var popupWin
 var wholeWin
  function popup(term)  // write corresponding content to the popup window
  {
   popupWin = window.open("", "puWin",  "width=425,height=500,left=400,top=200,scrollbars,dependent,notresizable");
   popupWin.document.open("text/html", "replace"); 
   popupWin.document.write(htmlOpener);
   popupWin.document.write(term);
   popupWin.document.write(htmlCloser);
   popupWin.document.close();  // close layout stream
   popupWin.focus();  // bring the popup window to the front
  }
 
  function closeDep() {
  if (popupWin && popupWin.open && !popupWin.closed) popupWin.close();
  if (wholeWin && wholeWin.open && !wholeWin.closed) wholeWin.close();

  }
