function wechsel_zuordnung(){if(arguments[0])arguments[0].form.submit();else window.document.forms[0].submit();}
function wechsel_monat(monat_nr){document.forms[0].monat_ter.value=monat_nr;window.document.forms[0].submit();}
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].target='_self';window.document.forms[0].submit();}
function selected_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 select_auswahl(obj){obj.options[0].selected=true;}
function setVarHidden(nummer,from){if(from.length)from[0].value=nummer;	else from.value=nummer;}
function changeLinkBG(objekt,e){(e.type == "mouseout")?objekt.parentNode.parentNode.style.backgroundColor = '#ffffff' : objekt.parentNode.parentNode.style.backgroundColor = '#eef1fc';	}
function changeTrBG(objekt,e){(e.type == "mouseout")?objekt.style.backgroundColor = '#e5e5e5' : objekt.style.backgroundColor = '#eef1fc';}
function send_var_all(hAction){window.document.forms[0].action=hAction;window.document.forms[0].submit();}
function pruef_zeichen(obj_text,obj_anzeige,anzahl){if(anzahl<obj_text.value.length) obj_text.value=obj_text.value.substr(0,anzahl);if(obj_anzeige) obj_anzeige.value=obj_text.value.length;}
function wechsel_ort(obj){if(obj.options[0].selected==true)window.document.forms[0].submit();}
function popup_ansicht(obj){obj.target='anzeige';var popup = 'height=800,width=450,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=yes';popup_aufruf = open('', 'anzeige',popup);popup_aufruf.focus();}
function popup_anmeldung(obj){obj.target='anmeldung';var popup = 'height=600,width=800,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=yes';popup_aufruf = open('', 'anmeldung',popup);popup_aufruf.focus();}
function setScreen(){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);}
var wminimize=new Image();wminimize.src="graphic/icon_zu.gif";var wmaximize=new Image();wmaximize.src="graphic/icon_auf.gif";
function resizeSection(name){var display=document.getElementById(name).style.display;if(display=='none'){extendSection(name);}else{collapseSection(name);}}
function extendSection(name){if(typeof(top.main)!="undefined"&&top.main&&top.main.document){var doc=top.main.document;}else{var doc=document;}if(document.getElementById&&doc.getElementById(name)){doc.getElementById(name).style.display='block';}if(doc.images['pic_'+name]){doc.images['pic_'+name].src=wminimize.src;}if(document.getElementById("hide_"+name)){document.getElementById("hide_"+name).value=1;}}
function collapseSection(name){if(typeof(top.main)!="undefined" && top.main && top.main.document){var doc=top.main.document;}else{	var doc=document;}if(document.getElementById&&document.getElementById(name)){document.getElementById(name).style.display='none';}if(doc.images['pic_'+name]){doc.images['pic_'+name].src=wmaximize.src;}if(document.getElementById("hide_"+name)){	document.getElementById("hide_"+name).value=0;}}
function ini_table(){if (document.readyState != 'complete'){ setTimeout(function(){ini_table();},20); return;}alltags = window.document.getElementsByTagName("div");for (var i = 0; i < alltags.length; i++){var name = alltags.item(i).id;if(name && name!="hilfe" && name!="infotext"){if(document.getElementById("hide_"+name)&& document.getElementById("hide_"+name).value!=0 && document.getElementById("hide_"+name).value){	extendSection(name);}else{collapseSection(name);}}}}
function open_admin_popup(url){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);NewWin =  window.open(url,"admin_login",'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=440');}
function clearText(inputfield){ if (inputfield.defaultValue==inputfield.value){inputfield.value = ""}}
function checkboxwahl(obj){for(i=0;i<obj.elements.length;i++){if(obj.elements[i].checked==true)	obj.elements[i].checked=false; else	obj.elements[i].checked=true;}}