function show_reportlayer(){
	document.write("<div id= 'Report1' style= 'position:absolute; visibility: hidden; left: 1px; top: 1px; z-index: 1; overflow: visible; width: 1px; height: 1px; ' class =  'txt_in5 '>&nbsp;3</div>\n");
	document.write("<div id= 'Report2' style= 'position:absolute; visibility: hidden; left: 1px; top: 1px; z-index: 1; overflow: visible; width: 1px; height: 1px; ' class =  'txt_in5 '>&nbsp;4</div>\n");
}

function show_reportbutton(){
	a= 	"<a href='javascript:parent.frames.inhalt.pg_showreport(1);' onMouseOver=\"MM_swapImage('report','','/scripts/js_scripts/report/report_button2.gif',1); status=' '; return true;\" onMouseOut='MM_swapImgRestore()'><img src='/scripts/js_scripts/report/report_button1.gif' name='report' width='12' height='12' border='0' id='report'></a>\n";
	document.write(a);
}

function do_report1(){
	var report= "";
	report+="<table width='420' border='2' cellspacing='0' cellpadding='0' align='center'>";
	report+="<tr><td height='25' colspan='2' valign='top' background='/scripts/js_scripts/report/webreport1.gif' bgcolor='#D6D6D6'><DIV align='right'><img src='p0.gif' width='1' height='1'><br><a href='javascript:pg_showreport(2);' onMouseOver=\"MM_swapImage('info_but1','','/scripts/js_scripts/report/info-button2.gif',1); status=' '; return true;\" onMouseOut='MM_swapImgRestore()'><img src='/scripts/js_scripts/report/info-button1.gif' name='info_but1' width='15' height='15' border='0' id='info_but1'></a><img src='p0.gif' width='1' height='1'><a href='javascript:pg_showreport(0);' onMouseOver=\"MM_swapImage('info_but2','','/scripts/js_scripts/report/close-button2.gif',1); status=' '; return true;\" onMouseOut='MM_swapImgRestore()'><img src='/scripts/js_scripts/report/close-button1.gif' name='info_but2' width='15' height='15' border='0' id='info_but2'></a><img src='p0.gif' width='1' height='1'><br><img src='p0.gif' width='1' height='4'></DIV><br>";
	report+="<form name='report' method='post' action=''><table width='400' border='0' cellspacing='0' cellpadding='0' align='center'>";
	report+="<tr><td height='20' valign='top'>Art des Reports:</td><td valign='top' class='txt_in2'>";
	report+="<select name='arter' class='reporter' id='arter'>";
	report+="<option value='0' selected>- bitte w&auml;hlen -</option>";
	report+="<option value='1'>Fehler in Seitenaufbau</option>";
	report+="<option value='2'>Fehler im Inhalt</option>";
	report+="<option value='3'>Fehler in Grafik</option>";
	report+="<option value='4'>Fehler im Text</option>";
	report+="<option value='5'>Erweiterung der Seite</option>";
	report+="<option value='6'>&Auml;nderung der Seitenaufbaus</option>";
	report+="</select></td></tr>";
	
	report+="<tr><td height='20' valign='top'>Priorit&auml;t</td><td valign='top' class='txt_in2'>";
	report+="<select name='prio' class='reporter' id='prio'>";
	report+="<option value='0' selected>nicht dringend</option>";
	report+="<option value='1'>dringend</option>";
	report+="<option value='2'>sehr dringend</option>";
	report+="</select></td></tr>";
	report+="<tr><td height='20' valign='top'>Info wenn erledigt:<br>&nbsp;</td><td valign='top' class='txt_in2'><input name='fortschritt_info' type='checkbox' class='reporter' id='fortschritt_info' value='1'></td></tr>";

	report+="<input type='hidden' name='browser_type' value='"+navigator.appName+"'>";
	report+="<input type='hidden' name='browser_version' value='"+navigator.appVersion+"'>";
	report+="<input type='hidden' name='system' value='"+navigator.platform+"'>";
	report+="<input type='hidden' name='linker' value='"+parent.frames.inhalt.location.href+"'>";

	report+="<tr><td height='20' colspan='2' valign='top'>&nbsp;<br><strong>Reporttext:</strong></td></tr>";
	report+="<tr><td height='20' colspan='2' valign='top'><textarea name='texter' cols='60' rows='6' class='reporter'></textarea><br>&nbsp;</td></tr>";
	report+="<tr align='right'><td height='20' colspan='2' valign='top'><input name='Submit' type='button' class='suck' value='senden' onClick='pg_sendreport();'></td></tr>";
	report+="</table></form>";
	report+="</td></tr></table>\n";
	document.report1 = report;
}
	// ##########################################################################################################################
function do_report2(){
	var report="";
	if(navigator.cookieEnabled == true) cook="Cookies werden akzeptiert "; else cook="Cookies werden nicht akzeptiert !!!";
	if(navigator.javaEnabled()) java="l&auml;uft"; else java="l&auml;uft nicht !!!";
	winwin = "<br>[ Window = "+PG_Get_WinSize("x")+"x"+PG_Get_WinSize("y")+" | Scroll: x = "+window.pageXOffset+" y = "+window.pageYOffset+" ]";
	report+="<table width='420' border='2' cellspacing='0' cellpadding='0' align='center'>";
	report+="<tr><td height='25' colspan='2' valign='top' background='/scripts/js_scripts/report/webreport1.gif' bgcolor='#D6D6D6'><DIV align='right'><img src='p0.gif' width='1' height='1'><br><a href='javascript:pg_showreport(1);' onMouseOver=\"MM_swapImage('info_but3','','/scripts/js_scripts/report/back-button2.gif',1); status=' '; return true;\" onMouseOut='MM_swapImgRestore()'><img src='/scripts/js_scripts/report/back-button1.gif' name='info_but3' width='15' height='15' border='0' id='info_but3'></a><img src='p0.gif' width='1' height='1'><a href='javascript:pg_showreport(0);' onMouseOver=\"MM_swapImage('info_but4','','/scripts/js_scripts/report/close-button2.gif',1); status=' '; return true;\" onMouseOut='MM_swapImgRestore()'><img src='/scripts/js_scripts/report/close-button1.gif' name='info_but4' width='15' height='15' border='0' id='info_but4'></a><img src='p0.gif' width='1' height='1'><br><img src='p0.gif' width='1' height='4'></DIV><br>";
	report+="<table width='400' border='0' cellspacing='0' cellpadding='0' align='center'>";
	report+="<tr><td height='20' valign='top'>Browser:</td><td valign='top' class='txt_in2'>"+navigator.appName+"&nbsp;["+navigator.appVersion+"]&nbsp;</td></tr>";
	report+="<tr><td height='20' valign='top'>&nbsp;</td><td valign='top' class='txt_in2'>"+navigator.userAgent+"&nbsp;</td></tr>";
	report+="<tr><td height='20' valign='top'>Language:</td><td valign='top' class='txt_in2'>"+navigator.language+"&nbsp;</td></tr>";
	report+="<tr><td height='20' valign='top'>Cookies:</td><td valign='top' class='txt_in2'>"+cook+"&nbsp;</td></tr>";
	report+="<tr><td height='20' valign='top'>Java:</td><td valign='top' class='txt_in2'>"+java+"&nbsp;</td></tr>";
	report+="<tr><td height='20' valign='top'>Plugins:</td><td valign='top' class='txt_in2'>";
	addy = "";
	for(vv=0;vv < navigator.plugins.length; vv++){
		report+= addy+navigator.plugins[vv].name;
		addy = "<br>";
	}
	if(vv<1) report+= "keine angaben";
	report+="</td></tr>";
	PG_GetFlash(99);
	if(document.flash_nr){
		report+="<tr><td height='20' valign='top'>Flash:</td><td valign='top' class='txt_in2'>"+document.flash_nr+"&nbsp;</td></tr>";
	}
	report+="<tr><td height='20' valign='top'>Platform:</td><td valign='top' class='txt_in2'>"+navigator.platform+"&nbsp;</td></tr>";
	report+="<tr><td height='20' valign='top'>Screen:</td><td valign='top' class='txt_in2'>"+screen.width+"&nbsp;x&nbsp;"+screen.height+" : "+screen.colorDepth+"Bit ==> available: "+screen.availWidth+"&nbsp;x&nbsp;"+screen.availHeight+winwin+"</td></tr>";
	report+="<tr><td height='10' colspan='2' valign='top' align='right'><img src='p0.gif' width='1' height='5'></td></tr>";
	report+="</table>";
	report+="</td></tr></table>\n";
	document.report2 = report;
}

function pg_showreport(){
	var args = pg_showreport.arguments;
	
	YOffset = (window.pageYOffset)? window.pageYOffset:0;
	XOffset = (window.pageXOffset)? window.pageXOffset:0;
	
	if(!args[0]){
		PG_ShowLayer('Report1',0);
		PG_ShowLayer('Report2',0);
		MM_setTextOfLayer('Report1',1,"&nbsp;");
		MM_setTextOfLayer('Report2',1,"&nbsp;");
		PG_SetLayerSize('Report1',1,1,0,0);
		PG_SetLayerSize('Report2',1,1,0,0);
	} else if(args[0]==1){
		PG_SetLayerSize('Report1',parseInt((PG_Get_WinSize("x")-420)/2)+XOffset,parseInt((PG_Get_WinSize("y")-320)/2)+YOffset,0,0);
		do_report1();
		PG_ShowLayer('Report1',1);
		PG_ShowLayer('Report2',0);
		MM_setTextOfLayer('Report1',1,document.report1);
	} else if(args[0]==2){
		PG_SetLayerSize('Report2',parseInt((PG_Get_WinSize("x")-420)/2)+XOffset,parseInt((PG_Get_WinSize("y")-320)/2)+YOffset,0,0);
		do_report2();
		PG_ShowLayer('Report2',1);
		PG_ShowLayer('Report1',0);
		MM_setTextOfLayer('Report2',1,document.report2);
	}
}

function pg_sendreport(){
	var error="";
	if (document.forms.report.arter.value < 1) error +="Bitte die Art des Reports angeben!\n";
	if (document.forms.report.texter.value == "") error +="Bitte eine Beschreibung angeben!\n";
	if(error != "") { alert(error); return }
	PG_ShowLayer('Report1',0);
	PG_ShowLayer('Report2',0);
}