function del(text)
	{
		return confirm(text);
	}
		
		
	function showhide(what) 
	{ 
		 if(document.getElementById(what).style.display=='none')
		 { 
			ok = document.getElementById(what).style.display='block';
			if (ok) return false;
			else return true;
		 }
		 else
		 {
			 ok = document.getElementById(what).style.display='none';
			 if (ok) return false;
			else return true;
		 }
	} 
	
	function resetinput(what)
	{
		document.getElementById(what).value='';
	}



window.addEvent('domready', function() {
	
	//create our Accordion instance
	var myAccordion = new Accordion($('accordion'), 'h3.toggler', 'div.element', {
		opacity: false,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#333');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#999');
		}
	});
});

/*slide*/

window.addEvent( 'domready', function(){
			$$( '.moreInfoWrapper' ).each(function(item){
				var thisSlider = new Fx.Slide( item.getElement( '.moreInfo' ), { duration: 500 } );
				thisSlider.show();
				item.getElement( '.divToggle' ).addEvent( 'click', function(){ thisSlider.toggle(); } );
			} );
		
		var Tips1 = new Tips($$('.tips'));
} );

function gotogrp(target)
	{
		var aim = target.options[target.options.selectedIndex].value;
		 location.href = aim;
	}
	
	
 function ZeichenZaehlen(a,feld1,feld2,pn)
 { 
  // Diese Funktion kontrolliert die Zeichenzahl
  var MaxZeichenZahl = a;
  StrLen = document.pn[feld1].value.length;
  //Wenn der Text länger ist als erlaubt, wird er abgeschnitten
  if (StrLen > MaxZeichenZahl )
  	{
  	document.pn[feld1].value = document.pn[feld1].value.substring(0, MaxZeichenZahl);
	CharsLeft = MaxZeichenZahl;
	}
	else
	{
		CharsLeft = StrLen;
	}
	document.pn[feld2].value = MaxZeichenZahl-CharsLeft;
	// document.Abstract[feld2].value = MaxZeichenZahl-StrLen;
}
