// scripts. Copyright Sector 31 s.r.o. www.sector31.cz


function newwin(url,width,height,nazev) {
	if (document.all)
	var xMax = screen.width, yMax = screen.height;
	else
	if (document.layers)
	var xMax = window.outerWidth, yMax = window.outerHeight;
	else
	var xMax = 640, yMax=480;
	var xOffset = (xMax - width)/2, yOffset = (yMax - height)/2;
	picwin = window.open(url,nazev,'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
	picwin.focus();
}

function select_on_change() {
	var select = document.getElementById('select');
	var url = select.value;
	if (url) {
		var win = window.open(url);
		win.focus();
	}
}

function newwin_scroll(url,width,height,nazev) {
	if (document.all)
	var xMax = screen.width, yMax = screen.height;
	else
	if (document.layers)
	var xMax = window.outerWidth, yMax = window.outerHeight;
	else
	var xMax = 640, yMax=480;
	var xOffset = (xMax - width)/2, yOffset = (yMax - height)/2;
	picwin = window.open(url,nazev,'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
	picwin.focus();
}
