	function CheckBoxCheck(Formular, Feld) 
	{
		CheckBoxEintrag = eval("document." + Formular + "." + Feld);
		CheckBoxEintrag.checked = !(CheckBoxEintrag.checked);
	}

	function OeffneFenster(theURL,winName,Hoehe, Breite) 
	{
		MeinFenster = window.open(theURL,winName,'scrollbars=yes,resizable=yes,width='+Breite+',height='+Hoehe+',left=100,top=100');
		MeinFenster.focus;
	}


	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	
	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
// Example: obj = findObj("image1");
function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}
// * Dependencies * 
// this function requires the following snippets:
// JavaScript/readable_MM_functions/findObj
//
// Accepts a variable number of arguments, in triplets as follows:
// arg 1: simple name of a layer object, such as "Layer1"
// arg 2: ignored (for backward compatibility)
// arg 3: 'hide' or 'show'
// repeat...
//
// Example: showHideLayers(Layer1,'','show',Layer2,'','hide');
function showHideLayers()
{ 
  var i, visStr, obj, args = showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
  {
    if ((obj = findObj(args[i])) != null)
    {
      visStr = args[i+2];
      if (obj.style)
      {
        obj = obj.style;
        if(visStr == 'show') visStr = 'visible';
        else if(visStr == 'hide') visStr = 'hidden';
      }
      obj.visibility = visStr;
    }
  }
}

	function blocking(i)
	{
		if (!supported)
		{
			alert('Die Funktionalitaeten werden von Ihrem Browser nicht unterstuetzt...');
			return;
		}

		WechselSchalter(i, 'Klick');

		shown[i] = (shown[i]) ? false : true;
		current = (shown[i]) ? 'block' : 'none';
		

		if (document.getElementById)
		{
			document.getElementById('number'+i).style.display = current;
		}
		else if (document.all)
		{
			document.all['number'+i].style.display = current;
		}
	}
	



	function change_class(obj, newclass)
	{
		obj.className=newclass;
	}



			function EMail(s)
			{
	
			 var a = false;
			 var res = false;
			 if(typeof(RegExp) == 'function')
			 {
			  var b = new RegExp('abc');
			  if(b.test('abc') == true){a = true;}
			  }
			
			 if(a == true)
			 {
			  reg = new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)'+
							   '(\\@)([a-zA-Z0-9\\-\\.]+)'+
							   '(\\.)([a-zA-Z]{2,4})$');
			  res = (reg.test(s));
			 }
			 else
			 {
			  res = (s.search('@') >= 1 &&
					 s.lastIndexOf('.') > s.search('@') &&
					 s.lastIndexOf('.') >= s.length-5)
			 }
			 if (res == false)
			 {
				alert("Bitte geben Sie eine gültige eMail-Adresse ein.")
			 }
			 return(res);		
			}


			function createCookie(name,value,days) {
				if (days) {
					var date = new Date();
					date.setTime(date.getTime()+(days*24*60*60*1000));
					var expires = "; expires="+date.toGMTString();
				}
				else var expires = "";
				document.cookie = name+"="+value+expires+"; path=/";
			}
			
			function readCookie(name) {
				var nameEQ = name + "=";
				var ca = document.cookie.split(';');
				for(var i=0;i < ca.length;i++) {
					var c = ca[i];
					while (c.charAt(0)==' ') c = c.substring(1,c.length);
					if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
				}
				return null;
			}
			
			function eraseCookie(name) {
				createCookie(name,"",-1);
			}




