function openFullscreen(page) {
var yes = 1;
var no = 0;
var menubar = no; 
var scrollbars = no;
var locationbar = no;
var directories = no; 
var resizable = yes;
var statusbar = no;
var toolbar = no;
windowprops = "width=" + (screen.width-9) + ",height=" + (screen.height-30) + ",top=0,left=0";
windowprops += (menubar ? ",menubars" : "") +
(scrollbars ? ",scrollbars" : "") +
(locationbar ? ",location" : "") +
(directories ? ",directories" : "") +
(resizable ? ",resizable" : "") +
(statusbar ? ",status" : "") +
(toolbar ? ",toolbar" : "");
window.open(page, 'fullPopup', windowprops);
}

var win = null;
function NewWindow1(mypage,myname,w,h){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+''
win = window.open(mypage,myname,settings)
}
var win = null;
function NewWindow2(mypage,myname,w,h){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+''
win = window.open(mypage,myname,settings)
}

function popupwindow(url,popupname,parameters)
{
	window.open(url,popupname,parameters);
}
