function checkboxwahl(form_nr)
{
	for(i=0;i<document.forms[form_nr].elements.length;i++)
	{
		document.forms[form_nr].elements[i].checked=true;
	}
}
function ersetzen_an()
{
	if(document.forms[0].stellen_nr.childNodes.length==0)
	{
		hStellen_Nr=document.forms[0].stellen_nr
	}
	else
	{
		hStellen_Nr=document.forms[0].stellen_nr.options[document.forms[0].stellen_nr.selectedIndex]
	}
	if(document.forms[0].veranstalter_id.options[document.forms[0].veranstalter_id.selectedIndex].value==document.forms[0].va_id.value ||  document.forms[0].veranstalter_id.options[document.forms[0].veranstalter_id.selectedIndex].id!=hStellen_Nr.value)
	{
		document.forms[0].aendern.disabled=true;
		document.forms[0].durch.value="";
	}
	else
	{
		document.forms[0].aendern.disabled=false;
		document.forms[0].durch.value=document.forms[0].veranstalter_id.options[document.forms[0].veranstalter_id.selectedIndex].text;
	}
}
function wechsel_zuordnung()
{
	if(arguments[0])
		arguments[0].submit();
	else
		window.document.forms[1].submit();
}
function suche_zuordnung()
{
	if(arguments[0])
		arguments[0].submit();
	else
		window.document.forms[1].submit();		
}
function wechsel_monat(monat_nr)
{	
	document.forms[0].monat_ter.value=monat_nr;
	window.document.forms[0].submit();
}
function gemeinde_auswahl()
{
	if(document.forms[0].ge_id.options[document.forms[0].ge_id.selectedIndex].value!=0)
	{
		document.forms[0].veranstaltungsort.value=document.forms[0].ge_id.options[document.forms[0].ge_id.selectedIndex].text;
	}
	else
	{
		document.forms[0].veranstaltungsort.value="";
	}
}
function send_selectbox(form)
{
	for(i=0;i<form.length;i++)
	{
		form.options[i].selected=true;
	}
	window.document.forms[0].bund_send.value="send";
	window.document.forms[0].submit();
}
function send_selectbox_all()
{
	for(n=0;n<arguments.length;n++)
	{
		if(arguments[n])
		{
			for(i=0;i<arguments[n].length;i++)
			{
				arguments[n].options[i].selected=true;
			}
		}
	}
}
function send_selectbox_zuordnung()
{
	for(n=0;n<arguments.length;n++)
	{
		
		if(arguments[n])
		{
			for(i=0;i<arguments[n].length;i++)
			{
				arguments[n].options[i].selected=true;
			}
		}
	}
	window.document.forms[0].submit();
}
function select_auswahl(obj)
{
	obj.options[0].selected=true;
}
function setVarHidden(nummer,from)
{
	if(from.length)
		from[0].value=nummer;
	else
		from.value=nummer;
}
function send_var_all(hAction)
{
	window.document.forms[0].action=hAction;
	window.document.forms[0].submit();
}
