function bgChange(objekt,inhalt,eingabex)
{
	var ding;
	var eingabeform;
	var eingabe;
	
	//ausblenden
	document.getElementById('eingabemaske').style.display = "none";
	document.getElementById('eingabemeldung').style.display = "none";
	
	eingabe = document.getElementById(eingabex);	
	ding = document.getElementById(objekt);
	div_inhalt = document.getElementById(inhalt);
	
	ding.style.fontFamily = "Verdana";
	
	if(!isIE6())
	{
		ding.style.backgroundImage= "url(pics/verblassen.png)";
	}
	
	
	ding.style.zIndex = "10";
	ding.style.left="0";
	
	eingabe.style.display = "inline";
	div_inhalt.style.left = "200px";
}

function impressum()
{
	bgChange('hintergrund','eingabe','eingabemeldung')
}

function isIE6()
{
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		if(navigator.appVersion.indexOf("7")== -1)
		{
			return true;
		}
		else
		{
			return false;
		}
		
	}
    else
	{
		return false;
	}
}

function smallstar_hover(starID)
{
	if(isIE6())
	{
		document.getElementById(starID).style.backgroundImage = "url(pics/IE/star_small_hover.gif)";
	}
}
function smallstar_leave(starID)
{
	if(isIE6())
	{
		document.getElementById(starID).style.backgroundImage = "url(pics/IE/star_small_normal.gif)";
	}
}



function bigStar_popup()
{
	document.getElementById("popupStar").style.left = "-60px";
}

function bigStar_hidden()
{
	document.getElementById("popupStar").style.left = "-4000px";
}
			
function closeEingabe()
{
	var ding;
	var eingabeform;
			
	ding = document.getElementById("hintergrund");
	eingabeform = document.getElementById("eingabe");
				
	ding.style.background = "transparent";
	ding.style.zIndex = "-11";
	ding.style.left="-4000";
				
	eingabeform.style.left = "-600px";
	//eingabeform.style.top = "400px;"
}

function neuesfenster(popupURL)
{
	top.name = "main_window";
	var popup = window.open(popupURL,"neuesfenster",'toolbar=1,location=1,directories=1,status=0,menubar=1,scrollbars=1,resizable=1,width=800,height=600');
	if( navigator.appName.substring(0,8) == "Netscape" )
	{
		popup.location = popupURL;
		popup.opener = self;
	}
} 
				
function CountMax() 
{ 
	var wert, max; 
	max = 350; 
	wert = max - document.eingabe.user_eingabe.value.length; 
					
	if (wert == -1)
	{ 
		document.eingabe.user_eingabe.value = document.eingabe.user_eingabe.value.substring(0,max); 
		alert("Es dürfen nicht mehr als " + max + " Zeichen eingegeben werden!"); 
						
		wert = max-document.eingabe.user_eingabe.value.length; 
		document.eingabe.rv_counter.value = wert; 
	}
	else
	{ 
		document.eingabe.rv_counter.value = max - document.eingabe.user_eingabe.value.length; 
	} 
}

function LetterInput(id)
{
	document.getElementById(id).style.backgroundColor="white";
}
 
