// JavaScript Document

function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
// In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
var win = window.open(url,
name, 
'width=' + w + ', height=' + h + ', ' +
'location=no, menubar=no, ' +
'status=no, toolbar=no, scrollbars=no, resizable=no');
win.resizeTo(w, h);
win.focus();
}

var newwindow = ''

function popup_image(url,w,h) {
if (newwindow.location && !newwindow.closed) {
newwindow.location.href = url;
newwindow.focus(); 
	} else {
	newwindow=window.open(url,'p2q_img','width=' + w + ',height=' + h + ',resizable=1');
	}
}

function MM_openBrWindow(HtmlDatei,FensterName,w,h,pos) {
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
window.open(HtmlDatei,FensterName,settings);
}

function FullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, resizable=yes, status=yes, scrollbars=no');
}
