function num2str(zahl, stellen) {
	var st = String(zahl);
	if (st.length < stellen) {
		for (var i = st.length; i < stellen; i++) st = '0' + st;
	}
	return st;
}

function GrafikFenster(url,text,br,ho) {
	props = "width="+String(br+24)+",height="+String(ho+40)+"toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,menubar=no";
    openWin = window.open('','openBrWindow',props);
    openWin.document.open();
    openWin.document.write('<html><head><title>'+text+'</title></head>');
    openWin.document.write('<body topmargin="0"><a href="JavaScript:self.close()"><img src="'+url+'" hspace="0" vspace="0" border="0"></a>');
    openWin.document.write('<br><center><font face="Arial, Helvetica, sans-serif" size="2"><b>Zum Schließen ins Bild klicken!</b></font>');
    openWin.document.write('<img src="'+url+'" width=1 height=1></body></html>');
    openWin.document.close();
    openWin.focus();
}

function mailFenster(url,text,params) {
	props = "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,menubar=no";
    openWin = window.open(url,'openBrWindow',params+","+props);
    openWin.focus();
}


function CheckParent(url) {
	if (parent.location.href == self.location.href) {
		window.location.href = url;
	}
}