function formatiere(menge,zeichen,was)
{
var laenge=was.length;
var temp="";
for(var i=0;i<menge;i++){temp+=zeichen;}
was=temp+was;
was=was.substr(laenge);
return was;
}

function cv2name(a)
{
var a=a.toLowerCase();
if (a.indexOf("&auml;") != -1){a=a.substr(0,a.indexOf("&auml;")) + "ae" + a.substr(a.indexOf("&auml;")+6);}
if (a.indexOf("&ouml;") != -1){a=a.substr(0,a.indexOf("&ouml;")) + "oe" + a.substr(a.indexOf("&ouml;")+6);}
if (a.indexOf("&uuml;") != -1){a=a.substr(0,a.indexOf("&uuml;")) + "ue" + a.substr(a.indexOf("&uuml;")+6);}
if (a.indexOf("&Auml;") != -1){a=a.substr(0,a.indexOf("&Auml;")) + "ae" + a.substr(a.indexOf("&Auml;")+6);}
if (a.indexOf("&Ouml;") != -1){a=a.substr(0,a.indexOf("&Ouml;")) + "oe" + a.substr(a.indexOf("&Ouml;")+6);}
if (a.indexOf("&Uuml;") != -1){a=a.substr(0,a.indexOf("&Uuml;")) + "ue" + a.substr(a.indexOf("&Uuml;")+6);}
return a;
}

var box=0;

function fenster(wo, hoehe, breite, scroll, wie)
{
	if(box){if(!box.closed){box.close();}}
	if(hoehe==0 || hoehe == null){hoehe = 145;}
	if(breite == 0 || breite == null){breite = 395;}
	
	var ie = true;
	if(document.layers){ie = false;}
	
	var scrollen = "no";
	if(scroll == null){var scroll = false;}
	if(scroll){scrollen = "yes";}
	var anpassen;
	(ie)?anpassen="resizeable=":anpassen="resizable=";
	(scroll)?anpassen+="yes":anpassen+="no";
	
	if(wie == null){var wie = 0;}
	var hoch=parseInt(screen.height/2-(hoehe/2))+1;
	if(hoch < 0){hoch = 1;}
	
	var x = 150;
	var y = 150;
	
	if(wie == 1)
	{
	   x = parseInt(screen.width/2-(breite/2));
	   y = hoch;
	}
	
	box=open(wo,"ramicro","left="+x+",top="+y+",alwaysRaised=yes,menubar=no,toolbar=no,location=no,status=no,"+anpassen+",scrollbars="+scrollen+",width="+breite+",height="+hoehe, false);
	
	//box.document.location.href=wo;
	//box.location.href=wo;
	
	box.focus();
}
