// liefert browserkonform element zu id
function getelement(elid) {
	if (document.getElementById) {
		return document.getElementById(elid);
		}
	else if (document.all) {
		return document.all[elid];
		}
	}

function customonloadwrap() {
		try {
			customonload();
			}
		catch(e) {
			}
	}

function NewWindowCentered(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no,menubar=no,dependent=yes';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function NewWindowCentered(mypage, myname, w, h, scroll, resize, menubar) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize+',menubar='+menubar+',dependent=yes';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
