// This code developed by Craig Richards 
// Copyright 2010. All rights reserved worldwide.
// The above lines must be included in code that is 
// reused or adapted by anyone
// This code produces a popup window.

function pop(url,wname,w,h,pl,pt,rsz,scrl) {
 var winX=pl;
 var winY=pt;
 if (scrl!='no'){
  scrl='yes';
 }
 // Nav 4 gives true screen pos %, while default assumes % on 640X480
 if (parseInt(navigator.appVersion)>=4) {
 winX=(screen.availWidth-w)*pl*.01;
 winY=(screen.availHeight-h)*pt*.01;
 }
 editWin=window.open(url,wname,'fullscreen=yes,dependent,toolbar=no,location=no,directories=no,menubar=no,scrollbars='+scrl+',copyhistory=no,status=no,resizable='+rsz+',width='+w+',height='+h+',left='+winX+',top='+winY);
 if (editWin.focus){
  editWin.creator=self;
  editWin.focus();
 }
}
