/*******Popup Window Definition*********************/

var htmlOpener = "<html><head><title>Popup Window Demo</title>"+
			"</head><body bgcolor='navyblue'><p>"
var htmlCloser = "</body></html>"

 demo = "<center><b>Popup Window</b></center><p>Here you can put any legal"+
        " http://panouri-radiante.sun-power.ro/video.html<center>"+
        " <p><img src="videos/video_panouri_radiante.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=480,height=200,scrollbars,dependent,resizable");
   popupWin.document.open("http://panouri-radiante.sun-power.ro/video.html"); 
   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();

  }

