<!--
	function checkInput(ValueName, TextName, DefaultText, VisibleName)
	{
		Field = window.document.getElementById('id'+ValueName);
		FieldValue = window.document.getElementById('id'+ValueName).value;
		FieldText = window.document.getElementById('sp'+TextName);
		
		if ((FieldValue.search(/-- bitte/) != -1) || (FieldValue == ''))
		{
			if (DefaultText != '')
			{
				window.document.getElementById('id'+ValueName).value = DefaultText;
			}
			if (VisibleName != '')
			{
				window.document.getElementById('tr'+VisibleName).style.visibility = 'collapse';
			}
			FieldText.style.color = '#990000';
			
			return 0;
		}
		else
		{
			if (VisibleName != '')
			{
				window.document.getElementById('tr'+VisibleName).style.visibility = 'visible';
			}
			FieldText.style.color = '#ffffff';
			
			return 1;
		}
	}
	
	
	
	function checkLogin1()
	{
		sendOK = 2;
		nowOK = 0;
		
		nowOK += checkInput('username', 'username', ' -- bitte Benutzernamen eingeben --', '');
		nowOK += checkInput('password', 'password', ' -- bitte Passwort eingeben --', '');
		if (nowOK >= sendOK)
		{
			window.document.getElementById('idsend').value = 'login';
			window.document.getElementById('idsend').style.color = '#242424';
			window.document.getElementById('idsend').disabled = false;
		}
		else
		{
			window.document.getElementById('idsend').value = 'bitte vollständig ausfüllen';
			window.document.getElementById('idsend').style.color = '#990000';
			window.document.getElementById('idsend').disabled = true;
		}
	}
	
	
	
	function checkLogin2()
	{
		sendOK = 2;
		nowOK = 0;
		
		nowOK += checkInput('pwusername', 'pwusername', ' -- bitte Benutzernamen eingeben --', '');
		nowOK += checkInput('pwemail', 'pwemail', ' -- bitte E-Mail-Adresse eingeben --', '');
		if (nowOK >= sendOK)
		{
			window.document.getElementById('idsend').value = 'abschicken';
			window.document.getElementById('idsend').style.color = '#242424';
			window.document.getElementById('idsend').disabled = false;
		}
		else
		{
			window.document.getElementById('idsend').value = 'bitte vollständig ausfüllen';
			window.document.getElementById('idsend').style.color = '#990000';
			window.document.getElementById('idsend').disabled = true;
		}
	}
	
	
	
	function checkContact1()
	{
		sendOK = 7;
		nowOK = 0;
		
		nowOK += checkInput('mailto', 'mailto', ' -- bitte einen Adressaten wählen --', '');
		nowOK += checkInput('fullname', 'fullname', ' -- bitte Vor- und Nachnamen eines Ansprechpartners angeben --', '');
		nowOK += checkInput('email', 'email', ' -- bitte E-Mail-Adresse eines Ansprechpartners angeben --', '');
		nowOK += checkInput('time', 'time', ' -- bitte Uhrzeit des Events angeben --', '');
		nowOK += checkInput('location', 'location', ' -- bitte Location des Events angeben --', '');
		nowOK += checkInput('zip', 'zip', ' -- bitte Postleitzahl des Events angeben --', '');
		nowOK += checkInput('town', 'town', ' -- bitte Ort des Events angeben --', '');
		if (nowOK >= sendOK)
		{
			window.document.getElementById('idsend').value = 'versenden';
			window.document.getElementById('idsend').style.color = '#69bf14';
			window.document.getElementById('idsend').disabled = false;
		}
		else
		{
			window.document.getElementById('idsend').value = 'bitte vollstandig ausfüllen';
			window.document.getElementById('idsend').style.color = '#990000';
			window.document.getElementById('idsend').disabled = true;
		}
	}
	
	
	
	function checkFeedback1()
	{
		sendOK = 1;
		nowOK = 0;
		
		nowOK += checkInput('name', 'name', ' -- bitte Namen angeben --', '');
		if (nowOK >= sendOK)
		{
			window.document.getElementById('idsend').value = 'versenden';
			window.document.getElementById('idsend').style.color = '#69bf14';
			window.document.getElementById('idsend').disabled = false;
		}
		else
		{
			window.document.getElementById('idsend').value = 'bitte vollstandig ausfüllen';
			window.document.getElementById('idsend').style.color = '#990000';
			window.document.getElementById('idsend').disabled = true;
		}
	}
// -->
