function go(showflash,width,height){

if (showflash != "") {

    var str = "height=" + height + ",innerHeight=" + height;
    str += ",width=" + width + ",innerWidth=" + width;
    if (window.screen) {
      var ah = screen.availHeight - 30;
      var aw = screen.availWidth - 10;

      var xc = (aw - width) / 2;
      var yc = (ah - height) / 2;

      str += ",left=" + xc + ",screenX=" + xc;
      str += ",top=" + yc + ",screenY=" + yc;
    }
    str += ",scrollbars=Yes,dependent=Yes"
    //open(DoWhat.value, "remote", str);
     var wintoload4 = open(showflash, "ebizadminpopup",str);
     wintoload4.focus();
  }
}

function popup(w,h)
{
  return popup2(w,h,'eakpop');
}
function popup2(w,h,n)
{
  return window.open('about:blank', n, 'width='+w+',height='+h+',resizable=yes,scrollbars=yes');
}

function dialogTreeDel(id, folder)
{
  var rValue=showModalDialog(
    ('tpl/de')
    + '/dlg.treedel.html', dialogTreeDel.arguments,
    'resizable:yes;scroll:no;status=no;dialogHeight=85px;dialogWidth=433px;dialogTop=300px;dialogLeft=300px');
  if (rValue) location.href=rValue;
}

function help(ident)
{
//alert (location.href.match(/\/admin\/(index\.php)?/));
  var w = popup2(400,300,'eaffhelp'), reg = /\/admin\/(index\.php)?/;
  w.location.href=(location.href.match(reg) ? '../' : '') + 'help_'+ident+'.html';
}

function suchform()
{
  layer = document.getElementById('suchform');
  status = layer.style.visibility;
  neu = 'visible';
  if(status == 'visible')
    neu = 'hidden';
  layer.style.visibility = neu;
}
