//// fehler unterdrücken
window.onerror = stopError;
function stopError(){
	return true;
}
// end fehler unterdrücken///

function add_div(){
	reportkategoriedp = document.fulldisplayform.reportkategoriedp.value;
	document.getElementById("innerLink").style.display = "block";
	document.getElementById("innerLinkfield").style.display = "block";
	document.getElementById("innerpnfield").style.display = "none";
	if(reportkategoriedp == "Chat"){
	document.getElementById("innerLink").style.display = "none";
	document.getElementById("innerLinkfield").style.display = "none";
	} 
	if(reportkategoriedp == "Shoutbox"){
	document.getElementById("innerLink").style.display = "none";
	document.getElementById("innerLinkfield").style.display = "none";
	} 
	if(reportkategoriedp == "Private Nachricht"){
	document.getElementById("innerpnfield").style.display = "block";
	} 
	
}

function dpchecked(){
	checkedcounter = 0;
	for(i=1; i<document.fulldisplayform.elements.length; i++){
	if(document.fulldisplayform.elements[i].checked == true) checkedcounter ++;
	}
	if(checkedcounter > 0){
	document.getElementById("innerText").style.display = "block";
	document.getElementById("innerTextfield").style.display = "block";
	}
	else{
	document.getElementById("innerText").style.display = "none";
	document.getElementById("innerTextfield").style.display = "none";
	}
	}
	
	function doallgemeinmissbrauch(){
		fulldisplaysystem();
		fulldisplaysystem('Missbrauch melden','missbrauchgenerell');
		}


function fulldisplaysystem(headline,openaj,kategorie,links){
	var divconnectors = document.getElementById('fulldisplaysystem');
	var dpconnectors = document.getElementById('displaycontentsystem');
	var opensystem = 0;
	
	if(headline == "sendallgemein"){
		opensystem = 1;
		fehlerallgemein = "";
		fulldisplayparams = "";
		fehlermessage = "";
		
		
		reportkategoriedp = document.fulldisplayform.reportkategoriedp.value;
		linkdp = document.fulldisplayform.linkdp.value;
		if(reportkategoriedp == ""){
			fehlermessage += "Bitte eine Kategorie wählen\n";
			fehlerallgemein = 1;
			}
		if(linkdp == ""){
			if(reportkategoriedp == "Chat" || reportkategoriedp == "Shoutbox"){
			}
			else {
			fehlermessage += "Bitte den Link angeben\n";
			fehlerallgemein = 1;
			}
			}
			checkedcounter = 0;
			for(i=1; i<document.fulldisplayform.elements.length; i++){
			if(document.fulldisplayform.elements[i].checked == true) checkedcounter ++;
			}
			if(checkedcounter == 0){
			fehlermessage += "Bitte mindestens einen Grund angeben\n";
			fehlerallgemein = 1;
			}

		    fulldisplayparams += reportkategoriedp;
			fulldisplayparams += '|*|';
			fulldisplayparams += escape(linkdp);
			
			fulldisplayparams += '|*|';
			fulldisplayparams += document.fulldisplayform.dpmissbrauchmessage.value;
			checkedcounter = 0;
			for(i=1; i<document.fulldisplayform.elements.length; i++){
			if(document.fulldisplayform.elements[i].checked == true){
			checkedcounter ++;
			fulldisplayparams += '|*|';
			fulldisplayparams += document.fulldisplayform.elements[i].value;
			
			}
			}
			
			
		
		if(fehlerallgemein == ""){
		sendRequests('missbrauchgenerell','connectorpopupsys','xPOSTx','sendallgemein',fulldisplayparams);
		}
		else {
			alert(fehlermessage);
			}
		return false;
		}
		
		
		
		
		
		
		
		
if(opensystem == 0) {	
	if(divconnectors.style.display == "none"){
		divconnectors.style.display = "";
		dpconnectors.style.display = "";
var browsers = navigator.userAgent.toLowerCase();
var ganzzahls = parseInt(navigator.appVersion);
var genauezahls = parseFloat(navigator.appVersion);


if(browsers.indexOf('msie 6.0')!=-1){
  var pos_tops = document.documentElement.scrollTop
   var pos_lefts = document.documentElement.scrollLeft;
   var screen_widths = document.documentElement.clientWidth;
   var screen_heights = document.documentElement.clientHeight;

divconnectors.style.top = pos_tops + 'px';
 divconnectors.style.height = screen_heights + 'px';
 dpconnectors.style.top = pos_tops + 'px';
 dpconnectors.style.height = screen_heights + 'px'; 
 window.onscroll = scroll_boxs;
	}

function scroll_boxs ()
{
      var pos_tops = document.documentElement.scrollTop
      var screen_heights = document.documentElement.clientHeight;
divconnectors.style.top = pos_tops + 'px';
 divconnectors.style.height = screen_heights + 'px';
 dpconnectors.style.top = pos_tops + 'px';
 dpconnectors.style.height = screen_heights + 'px'; 

}		





		
var connecthtml = '<table style="width:100%;height:100%"><tr><td valign="middle">';
		
connecthtml += '<table width="736" style="width:736px;border:6px solid #4D4D4D;-moz-border-radius:8px;border-radius:8px;-webkit-border-radius:8px;background-color:#C4C4C4;background-image:url(/mainpics/fulldisplay_bg_top.gif);background-repeat:repeat-x;background-position:left top;" align="center" border="0" cellpadding="12" cellspacing="0"><tr>';
	
connecthtml += '<td width="736" heigth="24" style="background-color:#567CA3;heigth:24px;">';	
	
connecthtml += '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td>';	
connecthtml += '<span style="font-weight:bold;color:#ffffff;font-size:14px;">'+headline+'</span>';
connecthtml += '</td><td><div align="right"><a href="" onclick="fulldisplaysystem(); return false;" style="text-decoration:none;color:#ffffff;">schließen <span style="font-weight:bold;">X</span></a></div></td>';
connecthtml += '</td></tr></table>';
	
connecthtml += '</td></tr><tr>';	
connecthtml += '<td heigth="300" valign="top" style="height:300px;">';



connecthtml += '<div id="connectorpopupsys"><div style="text-align:center;"><br /><br /><br /><img src="/mainpics/loading1.gif" /></div></div>';
//sendRequests('missbrauchgenerell','connectorpopupsys','open');
sendparams = kategorie+"|*|"+links;
if(!kategorie)sendparams = "";
sendRequests(openaj,'connectorpopupsys','xPOSTx',openaj,sendparams);

connecthtml += '</td>';
	
	
connecthtml += '</tr></table>';
connecthtml += '</td></tr></table>';

		
		
		
		dpconnectors.innerHTML = connecthtml;
		
	}
	
	else {
		divconnectors.style.display = "none";
		dpconnectors.style.display = "none";
		dpconnectors.InnerHTML = "";
		}
	
		}

}








