/*  bodyloader 20080527  */
function bodyloader()
{
initRotatorLeft();
//initRotatorRight();
correctContent();
}

function correctContent()
{
	document.getElementById('wrapper').style.height = document.getElementById('main').offsetHeight + "px";
}

function checkLen(TIP)
{
	var maxlength = "500"; //die maximale zeichenlaenge
	StrLen=TIP.value.length;
	
	if(StrLen==1&&TIP.value.substring(0,1)==" ")
	{
		TIP.value="";
		StrLen=0;
	}
	if(StrLen>maxlength )
	{
		TIP.value=TIP.value.substring(0,maxlength);
		CharsLeft=0;
	}
	else
	{
		CharsLeft=maxlength-StrLen;
	}
	document.comment.commentcount.value=CharsLeft;
}

function commentopen()
{
	if(document.getElementById) document.getElementById("cc").style.display = "inline";
	if(document.getElementById) document.getElementById("co").style.display = "none";
	if(document.getElementById) document.getElementById("cm").style.display = "inline";   
}

function commentclose()
{
	if(document.getElementById) document.getElementById("cc").style.display = "none";
	if(document.getElementById) document.getElementById("co").style.display = "inline";
	if(document.getElementById) document.getElementById("cm").style.display = "none";
}