// -- func.js ------------------------------------------------------------
//   Javascript-Modul mit Standardfunktionen
// ------------------------------------------------------------------------
//
// Autor: Ing. Lukas Huber
//
// 12/2004 Erstellung des Scripts für www.oeglb.at

function ok() { return; }
function open_image(img_url,img_alt,img_txt,article_id,f_scroll) {
   var c;
   var p;
   var a_id;
   var wnd_open
   var wnd_prop;
   wnd_prop = "width=180,height=40,left=0,top=0,toolbar=no,location=no,";
   wnd_prop = wnd_prop + "directories=no,status=no,copyhistory=no,";
   if (1 == f_scroll || (navigator.appName == "Netscape" && parseInt(navigator.appVersion.charAt(0)) < 5)) {
      wnd_prop = wnd_prop + "resizable=yes";
      if (1 == f_scroll) {
         wnd_prop = wnd_prop + ",scrollbars=yes";
      }
   }
   else {
      wnd_prop = wnd_prop + "resizable=no";
   }
   /* '-' Zeichen aus article_id entfernen */
   c = article_id.length;
   p = 0;
   a_id = "";
   while (c > 0) {
      h = article_id.substr (p, 1);
      if (h != '-') {
         a_id = a_id + h;
      }
      p = p + 1;
      c = c - 1;
   }
   wnd_open = window.open ("../netbuilder/functions/imagepopup.php?image=" + img_url + "&alt=" + escape(img_alt) + "&text=" + escape(img_txt) + "&title=Image", a_id, wnd_prop);
   wnd_open.focus();
}
