function search_box_text(FeldText,Color) {
    if(document.getElementById) {
        document.getElementById("search_query").value = FeldText;
        document.getElementById("search_query").style.color = Color;
        document.getElementById("search_submit_button").value = "go";
        if(navigator.userAgent.indexOf("KHTML") > -1) {
            document.getElementById("search_submit_button").style.color = "black";
        }
    }

}

/* the real functions are executed only with IE, here only dummies */
function setFieldActive(id) { }
function unsetFieldActive(id) { }




/* dam gallery */
var pop = null;

function popdown() {
  if (pop && !pop.closed) pop.close();
}


/* popups */
function popup(obj,w,h) {
  var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
  if (!url) return true;
  w = (w) ? w += 0 : 600; 
  h = (h) ? h += 0 : 400;
  var args = 'width='+w+',height='+h+',resizable,scrollbars';
  popdown();
  pop = window.open(url,'',args);
  return (pop) ? false : true;
}

var popoldonunload=window.onunload;
if(typeof(popoldonunload)=='function')
    window.onunload=function(){popoldonunload();popdown()};
else window.onunload = popdown;

var popoldonfocus=window.onfocus;
if(typeof(popoldonfocus)=='function')
    window.onfocus=function(){popoldonfocus();popdown()};
else window.onfocus = popdown;
