/*
 * Ausgelagertes Script fuer die Suche
 * ################################################
*/    

function removeEmptyText(field, text) {
      if (field && field.value == text) {
            field.style.color = 'black';
            field.style.fontStyle = 'normal';
            field.value = '';
      }
} 

function addEmptyText(field, text) {
      if (field && field.value == '' || field.value == text) {
            field.style.color = 'gray';
            field.style.fontStyle = 'italic';
            field.value = text;
      }
} 

function submitQuickSearchForm(form, text) {
      if (form && form.suchbegriff && form.suchbegriff.value != text && form.suchbegriff.value.replace(/\s*/,'').length > 0) {
            form.submit();
      }
}
