var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}

// Function to allow one JavaScript file to be included by another.
// Copyright (C) 2006 www.cryer.co.uk
/*
function IncludeJavaScript(jsFile)
{
  document.write('<script type="text/javascript" src="'
    + jsFile + '"></script>'); 
}

IncludeJavaScript('./accessify/add-event.js');
IncludeJavaScript('./accessify/popup.js');

IncludeJavaScript('./popups/libs.js');
IncludeJavaScript('./popups/popup.js');

// redefining default features
var _POPUP_FEATURES = 'location=0,statusbar=0,menubar=0,width=400,height=400';

listen('load', window, function() {
	listen('click', 'popup-listen', event_popup );
	listen('click', 'popup-feat'  , event_popup_features('location=0,statusbar=1,menubar=1,width=400,height=400') );
	mlisten('click', getElementsByClass('popup','a'), event_popup );
});
*/