/*******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"+
        " html string. For example, you can put a graph here. <center>" +
        "<p><img src='corr.gif'></center>"

/****END OF STRING DEFINITION*****/


 var popupWin
 var wholeWin

  function popup(term)  // write corresponding content to the popup window
  {
   popupWin = window.open("super_bagel.html", "puWin",  "width=350,height=400,left=150,top=100,x=150,y=100,scrollbars=no");
   
   popupWin.focus();  // bring the popup window to the front
  }

  function popup2(term)  // write corresponding content to the popup window
  {
   popupWin = window.open("meat.html", "puWin",  "width=350,height=400,left=150,top=100,x=150,y=100,scrollbars=no");
   
   popupWin.focus();  // bring the popup window to the front
  }

  function popup3(term)  // write corresponding content to the popup window
  {
   popupWin = window.open("fish.html", "puWin",  "width=350,height=400,left=150,top=100,x=150,y=100,scrollbars=no");
   
   popupWin.focus();  // bring the popup window to the front
  }

  function popup4(term)  // write corresponding content to the popup window
  {
   popupWin = window.open("salad.html", "puWin",  "width=350,height=400,left=150,top=100,x=150,y=100,scrollbars=no");
   
   popupWin.focus();  // bring the popup window to the front
  }

  function popup5(term)  // write corresponding content to the popup window
  {
   popupWin = window.open("fruit.html", "puWin",  "width=350,height=400,left=150,top=100,x=150,y=100,scrollbars=no");
   
   popupWin.focus();  // bring the popup window to the front
  }

  function popup6(term)  // write corresponding content to the popup window
  {
   popupWin = window.open("pastry.html", "puWin",  "width=350,height=400,left=150,top=100,x=150,y=100,scrollbars=no");
   
   popupWin.focus();  // bring the popup window to the front
  }

  function popup7(term)  // write corresponding content to the popup window
  {
   popupWin = window.open("bagel.html", "puWin",  "width=350,height=400,left=150,top=100,x=150,y=100,scrollbars=no");
   
   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();

  }