function openWindow(url){ // Fudge factors for window decoration space. // In my tests these work well on all platforms & browsers. w = 630; h = 500; w += 32; h += 96; wleft = (screen.width - w) / 2; wtop = (screen.height - h) / 2; // IE5 and other old browsers might allow a window that is // partially offscreen or wider than the screen. Fix that. // (Newer browsers fix this for us, but let's be thorough.) if (wleft < 0) { w = screen.width; wleft = 0; } if (wtop < 0) { h = screen.height; wtop = 0; } var win = window.open(url, "fotoWindow", 'width=' + w + ', height=' + h + ', ' + 'left=' + wleft + ', top=' + wtop + ', ' + 'location=no, menubar=no, ' + 'status=no, toolbar=no, scrollbars=yes, resizable=yes'); // Just in case width and height are ignored win.resizeTo(w, h); // Just in case left and top are ignored win.moveTo(wleft, wtop); win.focus(); //window.name="mainWindow"; //window.open(arg,"fotoWindow","width=630,height=500,directories=no,toolbar=no,resizable=yes,menubar=no,scrollbars=yes"); } function openIDCode(arg){ window.name="mainWindow"; window.open(arg,"fotoWindow","width=600,height=600,directories=no,toolbar=no,resizable=yes,menubar=no,scrollbars=yes"); } function setFXUserMail(user, email){ opener.SENDMAIL.EM_NAME.value = user; opener.SENDMAIL.EM_EMAIL.value = email; window.close() } function verify(){ msg = "Wollen Sie wirklich löschen?"; //all we have to do is return the return value of the confirm() method return confirm(msg); } function zumhauptmenue() { location.replace("gz_schoolquiz.asp"); } function openFFWindow(arg){ window.name="mainWindow"; window.open(arg,"ffWindow","width=630,height=480,directories=no,toolbar=no,resizable=yes,menubar=no,scrollbars=yes"); }