/*:: NEWWIN ::DYNAMISCHE WINDOW.OPEN FUNCTION                             */function newwin(FILE,NAME,WIDTH,HEIGHT,RESIZABLE,CENTER,ENABLEPOS,POSX,POSY,SCROLLBARS,STATUS,MENUBAR,TOOLBAR,LOCATION,PERSONALBAR) { // vars definieren newwin_screenW = screen.width; newwin_screenH = screen.height; RESIZABLE = (RESIZABLE == "1") ? "yes" : "no"; SCROLLBARS  = (SCROLLBARS == "1") ? "yes" : "yes"; STATUS = (STATUS == "1") ? "yes" : "no"; MENUBAR = (MENUBAR == "1") ? "yes" : "no"; TOOLBAR = (TOOLBAR == "1") ? "yes" : "no"; LOCATION = (LOCATION == "1") ? "yes" : "no"; PERSONALBAR = (PERSONALBAR == "1") ? "yes" : "no"; // vars der optionen newwin_vars = '"' + 'width=' + WIDTH + ',height=' + HEIGHT + ',resizable=' + RESIZABLE + ',scrollbars=' + SCROLLBARS + ',status=' + STATUS; newwin_vars += ',menubar=' + MENUBAR + ',toolbar=' + TOOLBAR + ',location=' + LOCATION + ',personalbar=' + PERSONALBAR + '"'; newwin_openWin = window.open(FILE,NAME,eval(newwin_vars)); if(CENTER == "1")  {  newwin_screenH = newwin_screenH - HEIGHT - 25;  newwin_screenW = newwin_screenW - WIDTH;  newwin_screenH = newwin_screenH/2;  newwin_screenW = newwin_screenW/2;  newwin_openWin.moveTo(newwin_screenW,newwin_screenH);  if(ENABLEPOS == "1") {   newwin_openWin.moveTo(POSX,POSY);  } } newwin_openWin.focus();}
