
function show(anzeigen) {
 if(document.getElementById(anzeigen))
   document.getElementById(anzeigen).style.visibility = "visible";
}

function hide(verstecken) {
 if(document.getElementById(verstecken))
   document.getElementById(verstecken).style.visibility = "hidden";
}
//------------------------------------------------------
//pop-ups
function NewWindow_admin(url) {
NewWin =  window.open(url,"admin",'toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=780,height=440');               
}

function NewWindow_popup(url) {
NewWin =  window.open(url,"popup",'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=240,height=200');               
}
//------------------------------------------------------
function clearText(inputfield) {
 
 if (inputfield.defaultValue==inputfield.value)
  {
  	inputfield.value = "";
  }
}
//------------------------------------------------------
//Bilder Vorladen
function BilderVorladen()
{
	document.Vorladen = new Array();
	if(document.images)
	{
		for(var i=0; i<BilderVorladen.arguments.length; i++)
		{
			document.Vorladen[i] = new Image();
			document.Vorladen[i].src = BilderVorladen.arguments[i];
		}
	}
}
//------------------------------------------------------

//Bildertauschen beim Hover
	var getElements = new Array; 	
	function ini(){
		for(i=0;i<(document.images.length);i++){getElements[i]=document.images[i].src;}	
		}
		
	function ChangeImage(which,image,e){		
		if(which!=status){
			if(e.type=='mouseover' || e.type=='mouseout'){document.images[which].src= image;}
			if(e.type=='click'){
				for (i=0;i<(document.images.length);i++){
								document.images[i].src=getElements[i];}		
				document.images[which].src=image;
				status=which;
				
				}	
			}
	}
	
//---------------------------------------------------------------------------

//Kalender

function wechsel_zuordnung(){if(arguments[0]){arguments[0].form.submit();}else{window.document.forms[1].submit();}}
function suche_zuordnung(){if(arguments[0]){arguments[0].form.submit();}else{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_var_all(hAction){window.document.forms[2].action=hAction;	window.document.forms[2].submit();}
var getElements = new Array; 	
function ini(){for(i=0;i<(document.images.length);i++){getElements[i]=document.images[i].src;}}
function clear_inputfield()
{
	document.getElementById('USR').value=document.getElementById('USR').defaultValue;
	document.getElementById('PWD').value=document.getElementById('PWD').defaultValue;
} 
// -->
