function maskujKlawisze(AEvent, AMaska)
{
    if (window.Event) {
        kodKlawisza = AEvent.which;
    } else {
        kodKlawisza = AEvent.keyCode;
    }

    if (kodKlawisza == 13) {
        return true;  // Enter
    };

    if (kodKlawisza == 0) {
        return true;  // klawisze sterujące
    };

    klawisz = String.fromCharCode(kodKlawisza);

    if (AMaska.indexOf(klawisz) == -1) {
        return false;
    } else {
        return true;
    }
}

function writeFlash(nazwa,x,y,kolor,noembed) {

  t = '<object class="flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ';
  t = t + 'width="';
  t = t + x;
  t = t + '" height="';
  t = t + y;
  t = t + '" align="middle">\n';
  
  t = t + '<param name="allowScriptAccess" value="sameDomain" />\n';
  t = t + '<param name="movie" value="' + nazwa + '" />\n';
  t = t + '<param name="quality" value="high" />\n';

  if (kolor) {
    t = t + '<param name="bgcolor" value="' + kolor + '" />\n';
  } else {
    t = t + '<param name="wmode" value="transparent" />\n';  
  }

  t = t + '<embed src="' + nazwa + '" quality="high" width="';
  t = t + x +'" height="' + y + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';
  
  if (kolor) {
    t = t + ' bgcolor="' + kolor + '"';
  } else {
    t = t + ' wmode="transparent"';
  }  
  
  t = t + '/>\n';

  
  t = t + '</object>';
    
  document.write (t);

}