// ==========================================
//  show popup window
// ==========================================

function popup(url) {
  return popup(url, 500, 700)
}

function popup(url, width, height) {
  win=window.open(url, "_blank", "width="+width+",height="+height+",resizable=yes,scrollbars=yes");
  win.focus();
  return false;
}

function windowwidth () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 1000;
  }
}

/*
  Parameter "action" wird dem button zugewiesen
  Benötigt <form name="main_form" onSubmit="return false;">
  und <input type="hidden" name="form_action">
  sowie bei den einzelnen Buttons <input type="button" value="sometext" onclick="perform_action('button_sometext')">
*/


