function confirmation() {
	var answer = confirm("Czy jesteś pewien?");
	if (answer){
		return true;
	}
	else{
		return false;
	}
}

function PopObrazek(plik){
msg=open('',plik, 'width=600, height=400, menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, status=no');
msg.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>");
msg.document.write("<html>");
msg.document.write("<head>");
msg.document.write("<title>"+plik.replace(/norm([0-9]*)/,'')+"</title>");
msg.document.write("</head>");
msg.document.write("<body>");
msg.document.write("<a href='javascript:window.close()'><img src='"+plik+"' border='0' /></a>");
msg.document.write("</body>");
msg.document.write("</html>");
}

function myButton(){
  var tabButt = document.getElementsByTagName("button");
  for(i=0;i<tabButt.length;i++){
    if(tabButt[i].className=="butMenu"){
      tabButt[i].onmouseover = function(){this.className="butMenuHover"};
      tabButt[i].onmouseout = function(){this.className="butMenu"};
    }
  }
  var tabA = document.getElementsByTagName("a");
  for(i=0;i<tabA.length;i++){
    if(tabA[i].className=="" && tabA[i].parentNode.className!="ukrytaGora"){
      tabA[i].className = "mLink";
    }
    if(tabA[i].parentNode.className=="ukrytaGora"){
      tabA[i].onmouseover=function(){this.parentNode.style.visibility = 'visible';}
      tabA[i].onmouseout=function(){this.parentNode.style.visibility = 'visible';}
    }
    if(tabA[i].className.match(/status/)){
      if(document.getElementById(tabA[i].className.replace('status','ZnCZ')).style.visibility!='visible'){
      try{
      tabA[i].onmouseover=function(){document.getElementById(this.className.replace('status','ZnCZ')).style.visibility='visible'};
      tabA[i].onmouseout=function(){document.getElementById(this.className.replace('status','ZnCZ')).style.visibility='hidden'};
      }catch(e){}
      }
    }
  }
}
function langSet(){
  var cel=document.getElementById('imgLang');
  cel.onmouseover=function(){
    if(this.src.match(/pl.jpg/)){
      this.src='graf/pl_hover.jpg';
    }else{
      this.src='graf/en_hover.jpg';
    }
  }
  cel.onmouseout=function(){
    if(this.src.match(/pl_hover.jpg/)){
      this.src='graf/pl.jpg';
    }else{
      this.src='graf/en.jpg';
    }
  }
}
