
function initArray()
{ for (var i = 0; i < initArray.arguments.length; i++)
this[i] = initArray.arguments[i];
this.length = initArray.arguments.length;}
var chrome = new initArray( "resizable,scrollbars", "resizable",
 "menubar,status,width=100,height=200,resizable,scrollbars");
var popUpWin = ''; var winFeatures = '';
function makePopUpWin(doc,high,wide,features){
 var tall = high + 100  // vert padding
 var side = wide + 40  // horz padding
 winFeatures = features
if (popUpWin && !popUpWin.closed) {  popUpWin.close(); }
 popUpWin = eval
  ("window.open (doc,'newWin','"+chrome[winFeatures]+",height="+tall+",width="+side+"')");
if (!popUpWin.opener) popUpWin.opener = self;   }
// use  <a href="javascript:makePopUpWin('docname.ext',height,width,features)"
// 1 for features means no scrollbars