// pop-up function

window.name = "mainWindow";

function openDynSize(windowName, where) {

var adjWidth = screen.width*.6965
var adjHeight = screen.height*.6950

var winLeft = (screen.width - adjWidth) / 2;
var winUp = (screen.height - adjHeight) / 2;

var set1="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left="+winLeft+",top="+winUp;

var newWin = window.open(windowName,where,set1+"width="+adjWidth+",height="+adjHeight)

if (parseInt(navigator.appVersion) >= 4) { newWin.window.focus(); }
}

function openSized(windowName,where,w,h) {
	var set2="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,";
	var newWin = window.open(windowName,where, set2+"width="+w+",height="+h);
	if (parseInt(navigator.appVersion) >= 4) { newWin.window.focus(); }
}