function SelectMOO(objName, url)
{
  if (objName && url && window.document.getElementById && window.document.getElementById(objName)) {
    window.document.getElementById(objName).src = url;
  }
}

function SelectLink(obj1, obj2, colorSet)
{
  if (obj1 && obj2 && window.document.getElementById && window.document.getElementById(obj1) && window.document.getElementById(obj2) && window.document.getElementById(obj1).style && window.document.getElementById(obj2).style) {
    if (colorSet) {
      window.document.getElementById(obj1).style.color = "#" + colorSet;
      window.document.getElementById(obj2).style.color = "#" + colorSet;
    }
    else {
      window.document.getElementById(obj1).style.color = "";
      window.document.getElementById(obj2).style.color = "";
    }
  }
}

// Öffnet ein Pop-Up Fenster.
// @param url Die URL die geöffnet werden soll.
// @param params Die Parameter für das Pop-Up Fenster.
// @param height Die Höhe des Pop-Up Fenster.
// @param width Die Breite des Pop-Up Fenster.
function PopUpOeffnen(url, params, height, width)
{
  if (url) {
    var sHeight = "340";
    var sWidth = "330";
    
    if (height) {
      sHeight = "" + height;
    }
    
    if (width) {
      sWidth = "" + width;
    }
    
    var top = screen.height / 2 - sHeight / 2;
    var left = screen.width / 2 - sWidth / 2;
    
    if (!params) {
      params = "resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0";
    }
    
    params += ",height=" + sHeight + ",width=" + sWidth + ",top=" + top + ",left=" + left + "";
    
    if (window.popup && !window.popup.closed) {
      window.popup.open(url, "_self", params);
      window.popup.focus();
    }
    else {
      window.popup = window.open(url, "_blank", params);
    }
  }
}

// Schliesst ein Pop-Up Fenster.
function PopUpSchliessen()
{
  if (window.popup && !window.popup.closed) {
    window.popup.close();
  }
}
