////////////////////////////////////////////////////////////////
//
// Beschreibung: Funktionen zum finden von Objekten
//
// Parameter   : n=obj_id(Name des Objektes)
// 
////////////////////////////////////////////////////////////////
  function MM2_findObj(n, d)
  {
    var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && document.getElementById) x=document.getElementById(n); return x;
  }
  
  function MM_findObj(obj_id)
  {
    if(document.all){return(document.all[obj_id])}
    else if(document.getElementById){return(document.getElementById(obj_id))}
    else(MM2_findObj(obj_id))
  }

function cms_DeSH(obj_Details,obj_UebOpen,obj_UebClosed)
{
  var obj1=MM_findObj(obj_Details);
  var obj2=MM_findObj(obj_UebOpen);
  var obj3=MM_findObj(obj_UebClosed);
   
  if (obj1)
  {
    if(obj1.style.display=="none")
    {
      obj1.style.display="inline";
      if (obj2 && obj3)
      {
        obj2.style.display="none";
        obj3.style.display="block";
      }
    }
    else
    {
      obj1.style.display="none";
      if (obj2 && obj3)
      {
        obj2.style.display="block";
        obj3.style.display="none";
      }
    }
  }
}

function popup(Url,sizeX,sizeY,status)
{
  var xpos=(screen.width-sizeX)/2-16;
  var ypos=(screen.height-sizeY)/2-30;
  status=(status=="yes")?"yes":"no";
  var traits = 'toolbar=no,location=no,directories=no,status='+status+',scrollbars=yes,resizable=yes,menubar=no,';
  var traits = traits+'width='+sizeX+',height='+sizeY+',screenX='+xpos+',screenY='+ypos;  
  var trenner="";
  if (Url.indexOf('?')>0){trenner="&"}else{trenner="?"};
  newwindow=window.open(Url+trenner+"popup=1&xpos="+xpos+"&ypos="+ypos,"Popup",traits);
  newwindow.focus();
}