function setClass (id, name) {
  document.getElementById(id).className=name; 
}

// Elemente ein- oder ausblenden

function toggleDisplay(id) {
  el = document.getElementById(id);
  var display = el.style.display ? '' : 'none';
  el.style.display = display; 
}

function opentab(tab) {
    document.getElementById("tab"+tab).style.display = "block";
    document.getElementById("io_1_"+tab).className = "product_detail_menu_current";
}

function open_function(url,width,height,options) {
  self.msgWindow = open(url, "Window", "width=" + width + ",height=" + height
    + ",screenX=" + (screen.width-width)/2
    + ",screenY=" + (screen.height-height)/2
    + ",dependent=yes"
    + ",left=" + (screen.width-width)/2
    + ",top=" + (screen.height-height)/2
    + options
    );
  if (self.msgWindow) {
     self.msgWindow.focus();
    if (self.msgWindow.opener == null) self.msgWindow.opener = self;
  }
}
/*
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
} 
*/

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
