/*
 * Kurz und Klein main.js
 * vers 0.4; Sa 25 Jul 2009 13:10:57 CEST
 */
function popWin(url, width, height, options)
{
  var w = (width) ? width : 600;
  var h = (height) ? height : 500;

  var t = (screen.height) ? (screen.height - h) / 2 : 0;
  var l =  (screen.width) ? (screen.width - w) / 2 : 0;

  var opt = (options) ? options : 'toolbar = no, location = no, directories = no, '+
    'status = yes, menubar = no, scrollbars = yes, copyhistory = no, resizable = yes';

  var popped = window.open(url, 'popupwindow',
    'top = '+t+', left = '+l+', width = '+w+', height = '+h+',' + opt);

  popped.focus();
}
function setStyle(Id, style, val) {
  document.getElementById(Id).style[style] = val;
}
function popupSetStyle(Id, style, val) {
      //alert(window.name);
  if(window.name != 'popupwindow') {
    return false;
  }
  document.getElementById(Id).style[style] = val;
}
