function firma () {
	// wenn im Ziel noch nichts eingetragen ist, dann übertrage
	if (window.document.forms[0].postadresse_firma.value.length < 2){
		window.document.forms[0].postadresse_firma.value = window.document.forms[0].firma.value;
	}
}
function position() {
	window.document.forms[0].postadresse_position.value = window.document.forms[0].pposition.value;
}
function abteilung () {
	window.document.forms[0].postadresse_abteilung.value = window.document.forms[0].abteilung.value;
}

function abweichende_email (){
	window.document.forms[0].schriftlich.value=4;
	window.document.forms[0].zusendung.checked;
}
function popup(url,name,xsize,ysize){
	newwin = window.open(url, name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+xsize+",height="+ysize); 
	setTimeout('newwin.focus();',200);
}
function mainfenster(url)
{
	var navName = navigator.appName;
	var brVer = navigator.userAgent; var brNum; var reg = new RegExp('/');

	var breite = screen.width;
	var hoehe = screen.height;
	var agt=navigator.userAgent.toLowerCase();

	if (breite < 1024){
		top.location.href = url;
	}else{
		fenster = window.open(url, "giloy", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=1015,height=700");
		var xpos=0;
		var ypos=0;
		if (breite > 1024){
			xpos=(breite-1015)/2;
			ypos=(hoehe-700)/2;
		}
		fenster.moveTo(xpos,ypos);
		if(version > 1.0)
		  {
			setTimeout('fenster.focus();',200);
		  }
	}
}
