var page;
var win;
var vhoehe;
var vbreite;
var iMyWidth;
var iMyHeight;
var vscr;

function popupzoom(page,win,vbreite,vhoehe,vscr) {


	

		if (screen.availHeight < 768) {vhoehe = screen.availHeight-40}
		//gets top and left positions based on user's resolution so hint window is centered.
		iMyWidth = (window.screen.width/2) - ((vbreite/2) + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
		iMyHeight = (window.screen.height/2) - ((vhoehe/2) + 50); //half the screen height minus half the new window height (plus title and status bars).


		anfrage= window.open(page +'.html',win,'width=' + vbreite + ',height=' + vhoehe + ',resizable=no,left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',scrollbars=' + vscr+',statusbar=no');
		anfrage.focus();
		
		
}

