
function chkFormular_gb()
{
	var bret = true;
	var bFocus = false;

	if(IsEmpty(document.frm_gb.name.value))
	{
		if(bFocus)
		{
			document.frm_gb.name.focus();
			bFocus = true;
		}
		document.getElementById("name").style.backgroundColor="ff00ff";
		bret = false;
	}
	else
	{
		document.getElementById("name").style.backgroundColor="ffffff";
		bret = true;
	}

	if(IsEmpty(document.frm_gb.content.value))
	{
		if(bFocus)
		{
			document.frm_gb.content.focus();
			bFocus = true;
		}
		document.getElementById("content").style.backgroundColor="ff00ff";
		bret = false;
	}
	else
	{
		document.getElementById("content").style.backgroundColor="ffffff";
		if(bret)
		{
			bret = true;
		}
	}

	if(!bret)
	{
		alert("Füllen Sie bitte die farbig hervorgehobenen Pflichtfelder aus!");
	}
	else
	{
		  document.frm_gb.submit();

	}
	return bret;

}

function collaps_form_gb(id)
{
	if(gb_form_visible)
	{
		chkFormular_gb();
		/*Effect.BlindUp(id + '_content')
		gb_form_visible = false;
		document.getElementById(id + '_button').value='neuer Eintrag';
		*/
	}
	else
	{
		Effect.BlindDown(id + '_content')
		gb_form_visible = true;
		document.getElementById(id + '_button').value='Eintrag senden';
	}
}