
function load_product(aref) {

	var str = top.location.href + "";                             // coerce to a string
      if (str.lastIndexOf("/") > 10)
	   var home = str.substring(0, str.lastIndexOf("/")+1);       // Local home or URL with /
	else
	   var home = str + "/";

      var frames = '<html><head>'
      frames += '<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">'
      frames += '<title>Hapi Pets Products</title>'
      frames += '<meta name="GENERATOR" content="Microsoft FrontPage 4.0">'
      frames += '<meta name="ProgId" content="FrontPage.Editor.Document">'
      frames += '</head>'
      frames += '<frameset framespacing="0" border="0" rows="124,*" frameborder="0">'
      frames += '<frame name="banner" scrolling="no" noresize target="contents" src="products/product_banner.htm">'
      frames += '<frameset cols="124,*">'
      frames += '<frame name="contents" target="main" src="products/product_contents.htm" scrolling="auto" marginwidth="12" marginheight="2">'
      frames += '<frame name="main" src="products/' + aref + '.htm" scrolling="auto">'
      frames += '</frameset></frameset></html>'

      document.write(frames);
      document.close();
      }
