function NeueFarbe(Nr,farbe) {
	var TDID, COLtrue=farbe, COLfalse=farbe;
	TDID="box"+Nr;

	if (document.all && !document.getElementById) // IE 4
	{
		document.all[TDID].style.backgroundColor=COLtrue;
	}

	if (document.getElementById) // IE 5.x und NN 6
	{
		document.getElementById(TDID).style.backgroundColor=COLtrue;
	}
}

function SchriftFarbe(Nr,farbe) {
	var TDID, COLtrue=farbe;
	TDID="zelle"+Nr;

	if (document.all && !document.getElementById) // IE 4
	{
		document.all[TDID].style.color=COLtrue;
	}

	if (document.getElementById) // IE 5.x und NN 6
	{
		document.getElementById(TDID).style.color=COLtrue;
	}
}

function change(numb,name) {

	gif_name = "http://premiere.odn.de/geoinformation/images/" + name + ".gif";
	place = "bild" + numb;
	document.images[place].src = gif_name;
}

function winOpen(url, breite, hoehe) {
	// Errechnet Koordinaten, um das Popup zentriert zu platzieren
	links = (screen.width/2)-(breite/2);
	oben = (screen.height/2)-(hoehe/2);
	var attrstr = "height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,";
	attrstr = attrstr + "location = no resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links;
	window.open(url,"popup", attrstr);
} 

function openfenster(artid) {
	var win, file;
	file="druckversioncaff.html?artid="+artid;
	win=window.open(file,"","toolbar,titlebar,scrollbars,status,width=730,height=500,status=no");
}

function openshowbild(type, bildid, galleryid, rid) {
	var win, file;
	file="showbild47d9.html?type="+type+"&bildid="+bildid+"&galleryid="+galleryid+"&rid="+rid;
	win=window.open(file,"","titlebar,scrollbars,status,width=500,height=600,status=no");
}

function opendiashow(type, variable, wert) {
	var file="diashowview47d9.html?type="+type+"&"+variable+"="+wert;
	var	win=window.open(file,"Diashow","scrollbars,resizable=no,width=760,height=600,status=no,screenX=100,screenY=0");
}

function neuesfenster(url){
	win=window.open(url,"popup","location = no,toolbar,titlebar,scrollbars,status");
}

function newwin(url){
	win=window.open(url,"popup","location=no,toolbar,titlebar,scrollbars=yes,resizable=yes,status");
}
