//document.write('<scr'+'ipt type="text/JavaScript" src="/fileadmin/templates/js/udm-resources/udm-custom.js"></scr'+'ipt>');
//document.write('<scr'+'ipt type="text/JavaScript" src="/fileadmin/templates/js/udm-resources/udm-control.js"></scr'+'ipt>');
//document.write('<scr'+'ipt type="text/JavaScript" src="/fileadmin/templates/js/udm-resources/udm-style.js"></scr'+'ipt>');                
//document.write('<scr'+'ipt type="text/JavaScript" src="/fileadmin/templates/js/sifr.js"></scr'+'ipt>'); 
//document.write('<scr'+'ipt type="text/JavaScript" src="/fileadmin/templates/js/sifr-config.js"></scr'+'ipt>');

//Erase the standard text in the textbox. If nothing is entered the standard text will be displayed again.

//the function starts when the whole site is loaded
window.onload = init;

//Label for the search field
var stValue ="Buchungscode"

var stValue_en = "Booking Code"

function init() {	
  if (SearchTerm = document.getElementById('rateCodeInput')) {  
    SearchTerm.value = stValue;
		SearchTerm.onfocus = emptyValue;
		SearchTerm.onblur = refillValue;
	}
  
  if(SearchTerm != null){
    if(SearchTerm.className == 'st_en') { 
      SearchTerm.value = stValue_en;
  		SearchTerm.onfocus = emptyValue;
  		SearchTerm.onblur = refillValue;
  	}
  }	
}

function emptyValue() {
	if (SearchTerm.value == stValue) {
    SearchTerm.value ="";
		SearchTerm.style.backgroundColor ="#fff";
	}
	
	if (SearchTerm.value == stValue_en) {
    SearchTerm.value ="";
		SearchTerm.style.backgroundColor ="#fff";  
  }
}

function refillValue() {
	if (SearchTerm.value =="" && SearchTerm.className != 'st_en') {
		SearchTerm.value = stValue;
		SearchTerm.style.backgroundColor ="#FFFFFF";
	} 
	
	if (SearchTerm.value =="" && SearchTerm.className == 'st_en') {
		SearchTerm.value = stValue_en;
		SearchTerm.style.backgroundColor ="#FFFFFF";  
  }
}
