/*
Custom Store Routines
*/

/*
  Popup Product HTML File

  Usage:
    popupProductHTML('Batman.htm') or popupProductHTML('Batman.htm',700,500) or popupProductHTML('Batman.htm',0,0) 
    Default width, height used if not passed in.
    Opener width, height used if zeroes passed in.  
*/
function popupProductHTML(filename, w, h) {
  filename = "Assets/ProductHTML/" + filename;
  if (w==undefined || w==null) { w=600; } 
  if (h==undefined || h==null) { h=400; } 
  if (w==0) {w = (typeof( window.innerWidth ) == 'number') ? window.innerWidth : document.body.clientWidth; }
  if (h==0) {h = (typeof( window.innerHeight ) == 'number') ? window.innerHeight : document.body.clientHeight; }
  var attributes = "width=" + w + ",height=" + h + ",toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=yes"; 
  var win = window.open (filename, "popupProduct", attributes); 
  if (window.focus) {win.focus()}
  return false;
}
