function stoperror()
{
	return true;
}
//window.onerror=stoperror;
function bittewarten(s)
{
    s.value = 'Bitte warten ...';
	s.disabled = true;
    return true;
}
function click()
{ 
} 

document.write('<link rel="stylesheet" href="../html/lightbox.css" type="text/css" media="screen" />');
document.write('<script src="../js/prototype.js" type="text/javascript"></script>');
document.write('<script src="../js/scriptaculous.js?load=effects" type="text/javascript"></script>');
document.write('<script src="../js/lightbox.js" type="text/javascript"></script>');

function decryptml(mlad,klasse)
{
	var mladarray = mlad.split(":")
	var mladprint = '';
	for (var i = 0; i < mladarray.length; ++i)
	{
		var icurr = mladarray[i] - 5;
		mladprint += '&#' + icurr + ';';
	}

	document.write('<a href="');
	document.write('&#109;');
	document.write('&#97;');
	document.write('&#105;');
	document.write('&#108;');
	document.write('&#116;');
	document.write('&#111;');
	document.write(':');
	document.write(mladprint);
	document.write('" class="' + klasse + '">');
	document.write(mladprint);
	document.write('</a>');
}


var menus=new Array();
menus[0]='';
var nomenuchange=0;

function showmenu(menu)
{
	if (nomenuchange != 1)
	{
		for(var i = 0; i < menus.length; i++)
		{
			if (menus[i]!=menu)
			{
				if (document.getElementById)
				{
					document.getElementById(menus[i]).style.display='none';
					document.getElementById(menus[i]).style.visibility='hidden';
				}
				else if (document.all && !document.getElementById)
				{
					document[menus[i]].style.display='none';
					document[menus[i]].style.visibility='hidden';
				}
			}
		}
		
		if (menu)
		{
			if (document.getElementById)
			{
				document.getElementById(menu).style.display='block';
				document.getElementById(menu).style.visibility='visible';
			}
			else if (document.all && !document.getElementById)
			{
				document[menu].style.display='block';
				document[menu].style.visibility='visible';
			}
		}
	}
}

function barcode()
{
	var barcode = new Array(4, 4, 2, 2, 5, 4, 3, 3, 4, 5, 5, 6, 3, 5, 4, 3, 5, 4, 2, 4, 4, 4, 3, 3, 5, 3, 3, 3, 3, 3, 3, 4, 7, 5, 4, 2, 7, 3, 5, 4, 2, 5, 3, 3, 6, 4, 3, 4, 3, 3, 5, 4, 4, 2, 2, 5, 4, 3, 3, 4, 5, 5, 6, 3, 5, 4, 3, 5, 4, 2);
	var farbe = new Array('#3F73A0','#FF9A41');

	for (var barcodenr = 1; barcodenr <= 6; barcodenr++)
	{
		var actfarbe = Math.round(Math.random()); 
		var barcodecolor = farbe[actfarbe];
		var laenge = Math.ceil(Math.random() * 20) + 50; 
		var height = 30;
		var top = 55 + barcodenr * 31;
		if (barcodenr == 6)
		{
			height += 2;
		}
	
		document.write('<div id="layout_barcode" style="position: absolute; right: 0; top: '+ top +'px;"><table cellpadding="0" cellspacing="0" border="0"><tr>');
		for(var i = 0; i < laenge; i++)
		{
			document.write('<td bgcolor="' + barcodecolor + '"><img src="../pics/website/pixel.gif" alt="" width="' + barcode[i] + '" height="'+ height +'" border="0"></td>');
			if (barcodecolor)
			{
				barcodecolor = '';
			}
			else
			{
				var actfarbe = Math.round(Math.random()); 
				barcodecolor = farbe[actfarbe];
			}
		}
		document.write('</tr></table></div>');
	}
}

function keywords_fade(keywords,current,opacity,dir)
{
	var obj = document.getElementById ? document.getElementById('layout_layoutbild_keywords') : document['layout_layoutbild_keywords'];
	
	if (opacity.stringwert == 0)
	{
		obj.innerHTML = '...' + keywords[current.stringwert];
		if (current.stringwert < (keywords.length - 1))
		{
			current.stringwert = current.stringwert + 1;
		}
		else
		{
			current.stringwert = 0;
		}
	}

	if (dir.stringwert == 'in')
	{
		opacity.stringwert = opacity.stringwert + 1;
		if (opacity.stringwert > 0 && opacity.stringwert < 70)
		{
			obj.style.filter = 'alpha(opacity=' + opacity.stringwert + ')';
			obj.style.opacity = opacity.stringwert / 100;
		}
		
		if (opacity.stringwert >= 100)
		{
			dir.stringwert = 'out';
		}
	}
	else if (dir.stringwert == 'out')
	{
		opacity.stringwert = opacity.stringwert - 1;
		if (opacity.stringwert > 0 && opacity.stringwert < 70)
		{
			obj.style.filter = 'alpha(opacity=' + opacity.stringwert + ')';
			obj.style.opacity = opacity.stringwert / 100;
		}
		
		if (opacity.stringwert <= -10)
		{
			dir.stringwert = 'in';
		}
	}
}

// Domainverzeichnis
function domainverzeichnis_show(bs)
{
	for (var i = 97; i <= 122; i++)
	{
		var ul = document.getElementById ? document.getElementById('ul_'+String.fromCharCode(i)) : document['ul_'+String.fromCharCode(i)];
		ul.style.display = 'none';

		var buchstabe = document.getElementById ? document.getElementById('bs_'+String.fromCharCode(i)) : document['bs_'+String.fromCharCode(i)];
		buchstabe.style.color = '#000000';
	}

	var info = document.getElementById ? document.getElementById('domainverzeichnis_info') : document['domainverzeichnis_info'];
	info.style.display = 'none';

	var ul = document.getElementById ? document.getElementById('ul_'+bs) : document['ul_'+bs];
	ul.style.display = 'block';

	var buchstabe = document.getElementById ? document.getElementById('bs_'+bs) : document['bs_'+bs];
	buchstabe.style.color = '#ff9900';
}

// Passwort-Generator
function getRandomNum(lbound, ubound)
{
	return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}
function getRandomChar(number, lower, upper, other, extra)
{
	var numberChars = "123456789";
	var lowerChars = "abcdefghijklmnopqrstuvwxyz";
	var upperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
	var otherChars = "`~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/? ";
	var charSet = extra;
	if (number == true)
	charSet += numberChars;
	if (lower == true)
	charSet += lowerChars;
	if (upper == true)
	charSet += upperChars;
	if (other == true)
	charSet += otherChars;
	return charSet.charAt(getRandomNum(0, charSet.length));
}
function getPassword(length, firstNumber, firstLower, firstUpper, firstOther, latterNumber, latterLower, latterUpper, latterOther)
{
	var rc = "";
	if (length > 0)
	rc = rc + getRandomChar(firstNumber, firstLower, firstUpper, firstOther);
	for (var idx = 1; idx < length; ++idx)
	{
		rc = rc + getRandomChar(latterNumber, latterLower, latterUpper, latterOther);
	}
	return rc;
}

