/* *************************************************************
** pWin.js - JS Data Library
** ===================================
** To load this library in an HTML doc, put the following
** line in the doc's HEAD (before any other SCRIPT tags):
**
** <SCRIPT SRC="popWin.js" LANGUAGE="JavaScript"></SCRIPT>
**
** Author          Ver  Date     Comments
** ======          ===  ====     ========
** Peter Mills     1.0  24/11/01 Pop Window functions 
**
** Copyright 2001, BluePrint Web Designs. All rights reserved. 
** Contact Australia (0404) 850840
************************************************************* */

function pwinOpen(tPageName,tWidth,tHeight,tDetails)
{
if (tWidth == 0 || tHeight == 0)
 {
  tWidth=640;
  tHeight=480;
 }
var tURL = tPageName + '.htm';
var tDim = 'width=' + tWidth + ', height=' + tHeight + ', status=no, resizeable=no';
window.open(tURL,tDetails,tDim);   //,tDim
/* window.focus(tPageName); */
}

function pwinOpenScroll(tPageName,tWidth,tHeight,tDetails)
{
if (tWidth == 0 || tHeight == 0)
 {
  tWidth=640;
  tHeight=480;
 }
var tURL = tPageName + '.htm';
var tDim = 'width=' + tWidth + ', height=' + tHeight + ', status=no, resizeable=no, scrollbars=yes';
window.open(tURL,tDetails,tDim);   //,tDim
/* window.focus(tPageName); */
}

function pwinClose()
  {
   window.close();
   window.parent.focus();
   /* window.opener.focus(); */
   }

/* ** PRINT CONTENT ************************** */
function printContent()
  {
  window.top.focus;
  window.top.print();
  }

