function textWindow(pop) {
	textpopWindow = window.open(pop, "popWin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=300")
	textpopWindow.moveTo((screen.width-500)/2, (screen.height-300)/2);
	textpopWindow.focus()
}


function openPopWin(theURL,w, h) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable=no,scrollbars=yes,status=no,menubar=no,directories=no,toolbar=no'
	popwin = window.open(theURL, "PopWin", winprops)
	if (parseInt(navigator.appVersion) >= 4) { popwin.window.focus(); }
}
