function GetCSS(nav_app) {
var vers = navigator.appVersion;
vers = vers.substring(0,1);

if (vers <= 4 && navigator.appName=="Netscape") {
return '<link rel="stylesheet" type="text/css" href="/C/' + nav_app + '-2.css">';
} else {
return '<link rel="stylesheet" type="text/css" href="/C/' + nav_app + '-1.css">';
}

if (document.layers) {
var startbreite = window.innerWidth;
var starthoehe = window.innerHeight;
}

}

function StylesLost() {
if (document.layers && window.innerWidth != startbreite || window.innerHeight != starthoehe) {
location.reload();
}
}

function redirect(form) {
if ((form.selectedIndex==0) || (form.options[form.selectedIndex].value==0)) null;
else {
var Ergebnis = form.options[form.selectedIndex].value.search(/http:.+/);
if(Ergebnis != -1) window.open(form.options[form.selectedIndex].value,"Neu");
else self.location=form.options[form.selectedIndex].value.replace('/www_mdr_de','');
}
}

function floating_frame(js_url,js_width,js_height,js_pos_x,js_pos_y,js_center_p,js_scrollbar_p,js_menu_p,js_tools_p,js_status_p) {
if(js_center_p=='yes') {
js_window_width=screen.width;
js_window_height=screen.height;
js_new_pos_x=parseInt(js_window_width)-parseInt(js_width);
js_new_pos_y=parseInt(js_window_height)-parseInt(js_height);
js_new_pos_x=js_new_pos_x/2;
js_new_pos_y=js_new_pos_y/2;
popup_win=window.open(js_url,'Popup','left='+js_new_pos_x+',top='+js_new_pos_y+',width='+js_width+',height='+js_height+',locationbar=no,buttons=no,status='+js_status_p+',menubar='+js_menu_p+',scrollbars='+js_scrollbar_p+',resizable=yes');
} else {
popup_win=window.open(js_url,'Popup','left='+js_pos_x+',top='+js_pos_y+',width='+js_width+',height='+js_height+',locationbar=no,buttons=no,status='+js_status_p+',menubar='+js_menu_p+',scrollbars='+js_scrollbar_p+',resizable=yes');
}
return false;
}

function picture_popup(img_tag,js_width,js_height,js_bu, js_copyright) {

s_source1 = /#§#/g;
s_source2 = /#%#/g;
s_replace1 = "'";
s_replace2 = '"';
js_bu=js_bu.replace(s_source1, s_replace1);
js_bu=js_bu.replace(s_source2, s_replace2);

win_width = parseInt(js_width)+30;
if (win_width < 435) win_width = 435;
t1_width = win_width - 10;
t_width = parseInt(js_width);
if (t_width < 405) t_width = 405;
win_height = parseInt(js_height)+160;

js_popup=window.open('','','width='+win_width+',height='+win_height+',scrollbars=no,buttons=no,statusbar=no,location=no,resizable=no');
js_popup.document.writeln('<html><head><meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"><title>MDR.DE zoom</title>');
var js_block = '<';
js_block = js_block + 'script language="JavaScript">var vers = navigator.appVersion; vers = vers.substring(0,1);baba=5; if (vers <= 4 && navigator.appName=="Netscape") {document.write("<link rel=stylesheet type=text/css href=/C/680-2.css")';
js_block = js_block + ';} ';
js_block = js_block + ' else {document.write("<link rel=stylesheet type=text/css href=/C/680-1.css>")';
js_block = js_block + ';} ';
js_block = js_block + '</scr';
js_block = js_block + 'ipt>';
js_popup.document.writeln(js_block);
js_popup.document.writeln('</head> <body OnBlur="self.close()" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">');
js_popup.document.writeln('<table width="'+t1_width+'" align="center" border="0" cellpadding="0" cellspacing="0"><tr><td height="5" colspan="3"><img src="/IS/spacer.gif" width="1" height="5"></td></tr><tr><td width="10"><img src="/IS/spacer.gif" width="10" height="1"></td><td width="'+t_width+'">');
js_popup.document.writeln('<table width="'+t_width+'" border="0" cellpadding="0" cellspacing="0"><tr><td width="'+t_width+'" class="PicHeadBg"><img src="/IS/head_picture.gif" width="405" height="50"></td></tr><tr><td height="10"><img src="/IS/spacer.gif" width="1" height="10"></td></tr><tr><td align="center"><img src="'+img_tag+'" width="'+js_width+'" height="'+js_height+'"></td></tr><tr><td><div class="Bildtext">' + js_bu + '</div></td></tr><tr><td class="TDotLine"><img src="/IS/spacer.gif" width="1" height="1"></td></tr><tr><td class="BildLegende"> Quelle: '+js_copyright+'</td></tr></table>');
js_popup.document.writeln('</td><td width="10"><img src="/IS/spacer.gif" width="10" height="1"></td></tr></table></body></html>');
js_popup.resizeTo(win_width, win_height);
js_popup.focus();

}

function print_popup(js_url,js_width,js_height) {
print_window=window.open(js_url,'print_window','width='+js_width+',height='+js_height+',scrollbars=yes,toolbar=no,menubar=no,statusbar=no,location=no,resizable=yes');
}

function open_article (js_url) {
window.opener.location.href=js_url;
window.opener.focus();
self.close();
}

function navpic(name, state) {
switch(state) {
case 0:
document.images[name].src='/IS/spacer.gif';
break;
case 1:
document.images[name].src='/IS/weitern.gif';
break;
case 2:
document.images[name].src='/IS/ard_na_menupfeil.gif';
break;
default:
document.images[name].src='/IS/spacer.gif';
break;
}
}

function navparent(number, level) {
document.getElementById('td1_' + number).className = 'mselect' + level;
document.getElementById('td2_' + number).className = 'mselect' + level;
document.getElementById('a' + number).className = 'mselect' + level;
document.getElementById('line_' + number).className = 'mline' + eval(level +1);
document.getElementById('last_' + number).className = 'mline' + eval(level +1);
}


function open_rules() {
 
 win = window.open('','rules','scrollbars=yes,resizable=yes,width=468,height=390');
 win.document.write('<html><head><title>Regeln für das Forum</title></head><style>.big {font-family: Verdana, Arial, Helvetica; font-size: 14px;}; td {font-family: Verdana, Arial, Helvetica; font-size: 12px;}; .link { font-family: Verdana, Arial, Helvetica; font-size: 12px; color: black; text-decoration: none; }.link:hover { text-decoration: underline; }</style><body><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=\"left\"><span class=\"big\"><b>Forum-Regeln</b></span><br><br>');
 win.document.write('Im Forum veröffentlichte Beiträge geben die Meinung des Autors, nicht die Meinung der Redaktion wieder. Eine Ausnahme bilden Beiträge, die von der Redaktion verfasst wurden.<br><br>');
 win.document.write('Das Forum ist ein Teil des Online-Angebotes des Mitteldeutschen Rundfunks (MDR).<br><br>');
 win.document.write('Es soll für Jedermann als Plattform zur freien und auch kritischen Diskussion offen stehen. Auch bei unterschiedlichen Standpunkten sollte jedoch zu Gunsten eines <b>offenen und freundschaftlichen Diskussionsklimas</b> ein fairer und sachlicher Ton gewahrt werden.<br><br>');
 win.document.write('Im Interesse aller Teilnehmer bitten wir Sie deshalb, Folgendes zu beachten:<br><br>');
 win.document.write('Die Redaktion behält sich vor, Beiträge mit <b>ehrverletzendem, jugendgefährdendem, rechtsradikalem oder sonstigem strafbaren Inhalt</b> ohne vorherige Information des Verfassers <b>zu löschen</b>. Gleiches gilt für Inhalte <b>werblichen und / oder werbenden Charakters</b> und bei Verstößen gegen die Grundprinzipien der <b>\"Netikette\"</b>.<br>');
 win.document.write('Sollten Sie vor uns auf Beiträge stoßen, die Ihnen in dieser Hinsicht fragwürdig erscheinen, sind wir für jeden Hinweis an den <b><a href=\"mailto:webmaster@mdr.de\" class=\"link\">Forumsmoderator</a></b> dankbar.<br><br>');
 win.document.write('Das <b>Copyright</b> für die Beiträge, soweit sie urheberrechtsschutzfähig sind, verbleibt grundsätzlich beim Verfasser. Mit der Teilnahme am Forum gibt der Verfasser dem MDR jedoch das Recht, seinen jeweiligen Beitrag zeitlich unbegrenzt auf den Seiten seines Internet-Angebotes zu speichern und Dritten auf Abruf zugänglich zu machen.<br><br>');
 win.document.write('Wir wünschen Ihnen viel Spaß bei der Diskussion in unserem Forum.</td></tr><tr><td height=10></td></tr></table></body></html>');
 win.focus();
 
 }

