function necessarily(){
	if (gruppe.adhoc.checked)
	  {
			document.getElementById('myadresse').style.visibility="visible";
			document.getElementById('myplz').style.visibility="visible";
			document.getElementById('myort').style.visibility="visible";
	  }else{
			document.getElementById('myadresse').style.visibility="hidden";
			document.getElementById('myplz').style.visibility="hidden";
			document.getElementById('myort').style.visibility="hidden";
	  }
	}
	
	function checkfile(){
		// Die Variablen brauchts für die Emailabfrage!!
		var result = true,
			text = document.gruppe.EMAIL.value,
        	regX;
		if (gruppe.COMPANY.value == "")
				{
					alert("Please fill out the company field.");
					gruppe.COMPANY.focus();
					gruppe.COMPANY.style.borderColor = "#FF0000";   
					return (false);
				}
		
		if (document.gruppe.FIRST_NAME.value == "")
  		 	{
   		  	alert("Please fill out the first name field.");
					document.gruppe.FIRST_NAME.focus();
					document.gruppe.FIRST_NAME.style.borderColor = "#FF0000";   
   		  	return (false);
   		  }
		  
		if (document.gruppe.FAMILY_NAME.value == "")
  		  {
   		  	alert("Please fill out the family name field.");
					document.gruppe.FAMILY_NAME.focus();
					document.gruppe.FAMILY_NAME.style.borderColor = "#FF0000";   
   		  	return (false);
   		  }
 
		if (document.gruppe.EMAIL.value == "")
  		  {
   		  	alert("Please fill out the email field.");
					document.gruppe.EMAIL.focus();
					document.gruppe.EMAIL.style.borderColor = "#FF0000";   
   		  	return (false);
   		  } else if (typeof(RegExp) == 'function') 
		  {
   			regX = new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)(\\@)([a-zA-Z0-9\\-\\.]+)(\\.)([a-zA-Z]{2,4})$');
		   // {2,4} erweitern, wenn Top-Level-Domaenen mit mehr als vier Buchstaben bestaetigt werden

   				if (!regX.test(document.gruppe.EMAIL.value)) {
      			    alert('Please fill out the email field with a valid eMailaddress.');
	  			    document.gruppe.EMAIL.focus();
	  			    document.gruppe.EMAIL.style.borderColor = "#FF0000";  
      			    return (false);
				  } 
			}
			
			if (gruppe.ADHOC.checked)  {			
			 
					if (gruppe.ADDRESS.value == "")
							{
								alert("Please fill out the address field.");
								gruppe.ADDRESS.focus();
								gruppe.ADDRESS.style.borderColor = "#FF0000";   
								return (false);
							}
					
					if (gruppe.ZIP.value == "")
							{
								alert("Please fill out the zip code field.");
								gruppe.ZIP.focus();
								gruppe.ZIP.style.borderColor = "#FF0000";   
								return (false);
							}
					
					if (gruppe.CITY.value == "")
							{
								alert("Please fill out the city field.");
								gruppe.CITY.focus();
								gruppe.CITY.style.borderColor = "#FF0000";   
								return (false);
							}	
									
				}
			
			if (gruppe.COUNTRY.value == "")
  		  	{
   		  		alert("Please fill out the phone field.");
						gruppe.COUNTRY.focus();
						gruppe.COUNTRY.style.borderColor = "#FF0000";   
   		  		return (false);
   		  	}
			
			if (gruppe.PHONE.value == "")
  		  	{
   		  		alert("Please fill out the phone field.");
						gruppe.PHONE.focus();
						gruppe.PHONE.style.borderColor = "#FF0000";   
   		  		return (false);
   		  	}		  		
		
	}

