

// change color in input field on focus
function toggleColor(objElement)
{
  if (objElement.className=='formText')
    objElement.className='formFieldFocus';
  else
    objElement.className='formText';
}

// change color in textarea field on focus
function toggleColorTA(objElement)
{
  if (objElement.className=='formTextArea')
    objElement.className='formTextAreaFocus';
  else
    objElement.className='formTextArea';
}

// change color in input field on focus (login window)
function toggleColor2(objElement)
{
  if (objElement.className=='formTextSmall')
    objElement.className='formFieldFocusSmall';
  else
    objElement.className='formTextSmall';
}

// check if login data is entered
function sendForm(Form){
	if ((Form.postUsername.value == '')){
	    return false;
	}
	if ((Form.postPassword.value == '')){
	    return false;
	}
}

// delete text in login username field
function userFocus(){
	document.login.postUsername.value = "";
}

// delete text in message field if in original state
function userFocus2(){
	if (document.contact.message.value=="Ihre Mitteilung..."){
		document.contact.message.value = "";
	}
}

// light & unlight rows or field in e.g. tables
function Light(selLine){
	selLine.style.backgroundColor = '9DBFDC';
}
      
function unLight(selLine){
	selLine.style.backgroundColor ='';
}
