//Pop up windows Scripts
//Tom Healy
//2004

// Use this function to call up a Fullscreen Popup w/menu,toolbar,etc.
function openWindowFull(URL) {
	newWindow = window.open(URL,"AnotherNewWindow","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width="+(screen.width)+",height="+(screen.height)+",left=0,top=0")
}

// Use this function to call up a Fullscreen Popup w/out menu,toolbar,etc.
function openWindowFullNoBorder(URL) {
	newWindow = window.open(URL,"AnotherNewWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width="+(screen.width)+",height="+(screen.height)+",left=0,top=0")
}

// Use this function to call up a Normal sized (500x500) Popup w/out menu,toolbar,etc.

function openWindow(URL) {
	var winl = (screen.width - 660) / 2;
	var wint = (screen.height - 700) / 2;
	winprops = 'height=700,width=660,top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,toolbars=no,menubars=no,status=no'
	win = window.open(URL,'newWindow',winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}


function openWindow2(URL) {
	var winl = (screen.width - 660) / 2;
	var wint = (screen.height - 400) / 2;
	winprops = 'height=400,width=660,top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,toolbars=no,menubars=no,status=no'
	win = window.open(URL,'newWindow2',winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}