function prodPopup(w,h,img) {

   // width and height are the image size so we need to add
   // some padding to these numbers to get the full window size.

   w = w + 100;
   h = h + 130;

   day = new Date();
   id = day.getTime();
   URL = "prodimg_popup.html?img=" + img;
   eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=" + w + ",height=" + h + ",left = 40,top = 40');");
}

