// Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
// Permission granted to Dynamic Drive to feature script in archive
// For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com

function CenterWindow(mypage,myname,w,h,scroll){
var win = null;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

// Abgeaendertes Script (s.o.) fuer Fenster oben links in der Ecke
function LeftWindow(mypage,myname,w,h,scroll){
var win = null;
LeftPosition = (screen.width) ? (screen.width-w)-(screen.width-w) : 0;
TopPosition = (screen.height) ? (screen.height-h)-(screen.height-h) : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}


