// Popup window for recipe link on home page
// also used for Photo Gallery
function popuppage(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}
   

//Popup window for books on home page 
function popupBook(URL) {

  eval("window.open(URL,'" + id + "','toolbar=0,scrollbars=1,statusbar=1, menubar=0,resizable=1,width=400,height=500');");

   }
