function zrob_flasha(szerokosc, wysokosc, kolor, id, plik){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + szerokosc + '" height="' + wysokosc + '" id="' + id + '" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="' + plik + '" />');
document.write('<param name="quality" value="high" />');
if(kolor == ""){
document.write('<param name="wmode" value="transparent" />');
var trans;
trans = 'wmode="transparent"';
}
document.write('<param name="bgcolor" value="' + kolor + '" />');
document.write('<embed src="' + plik + '" quality="high" ' + trans + ' bgcolor="' + kolor + '" width="' + szerokosc + '" height="' + wysokosc + '" name="' + id + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}

var dayarray=new Array("Niedziela","Poniedziałek","Wtorek","¦roda","Czwartek","Pi±tek","Sobota")
var montharray=new Array("01","02","03","04","05","06","07","08","09","10","11","12")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()

year = year - 30; 

if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
var cdate=dayarray[day]+", "+daym+"."+montharray[month]+"."+year+" "+hours+":"+minutes+":"+seconds
+"</b></font></small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function czas(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
function maskuj(ev, dozwolone) {
   
  if (window.Event) { kod=ev.which; }
  else { kod=ev.keyCode; }

  // enter, backspace, klawisze sterujace
  if ((kod==13) || (kod==8) || (kod==0)) {
    return true; 
  };

  if (dozwolone.indexOf(String.fromCharCode(kod))==-1) {
    return false;
  } else { return true; }
 
}

function selecturl(s) {
	var gourl = s.options[s.selectedIndex].value;	window.top.location.href = gourl;
}

/***********************************************
* Textarea Maxlength script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function ismaxlength(obj){
  var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
  document.getElementById('maxer').innerHTML = obj.value.length
  if (obj.getAttribute && obj.value.length>mlength)
    obj.value=obj.value.substring(0,mlength)
}

function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' );
}