function openImg(url,width,height)
{
var ZoomInWindow = window.open("","displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no');
with(ZoomInWindow.document)
  {
	writeln('<html><head><title></title></head>')
  writeln('<body topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 marginheight=0 marginwidth=0 onBlur="window.close();">')
  writeln('<a href="javascript:window.close()"><img src="' + url + '" alt="" border="0" /></a>')
  writeln('</body></html>');
  close();
  }
}
function change(div){
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div).style.display="block";
}
function changee(poz){
	var poz = poz;
	for(var i=1; i<5; i++){
		document.getElementById("cell" + i).style.display="none";
		document.getElementById("cell" + poz).style.display="block";
	}
}
function displayWindow(url, width,height) {
        var Win = window.open(url,"displayWindow", 'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' );
}

function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}

function print_email(user, site) {
  document.write('<a class="news" href=\"mailto:' + user + '@' + site + '\">');
  document.write(user+'@'+site+'</a>');
}

function maxLength1(o,v,m){
  document.getElementById(v).innerHTML=m-
    ((o.value=o.value.substr(0,m)).length);
	}
	
function printWindow(){
  bV = parseInt(navigator.appVersion)
  if (bV >= 4) window.print()
}

function podswWiersze(id){
  if(!document.getElementById)return;
  // id - id elementu TABLE
  // zainicjowanie zmiennych
  // E - pobranie elementu tabeli 
  // i - zmienna - licznik, potrzebna w ptli for
  var i,E=document.getElementById(id),tr;
  // jeli tabela o podanym id nie istnieje
  // instrukcje nie zostanꜹ wykonane
  if(E&&E.tagName=='TABLE'){
    // pobranie wszystkich komrek TD tabeli
    tr=E.getElementsByTagName('TR');
    // p tla w ktrej do zdarze  onmouseover i onmouseout
    // kadej komrki przypisane zostaj funkcje realizujce 
    // pod󹹜wietlanie
    for(i=0;i<tr.length;i++){
      tr[i].onmouseover=function(){
        // po wystpieniu zdarzenia onmouseover
        // klasa CSS wiersza zostanie zmieniona na 
        // 'podswietlona', lecz tylko jeli wiersz nie jest 
        // zaznaczony 
        if(this.className!='zaznaczona')
          this.className='podswietlona';
      }
      tr[i].onmouseout=function(){
        // przywrcenie normalnego stanu wiersza
        if(this.className!='zaznaczona')
          this.className='kategorie';
      }
      // zaznaczanie wierszy
      tr[i].onmousedown=function(){
        // jeli wiersz jest ju zaznaczony, to jest 
        // odznaczany, w przeciwnym wypadku zostaje zaznaczony
        this.className=
          this.className=='zaznaczona'?'kategorie':'zaznaczona';
      }
    }
  }
}

function addBookmark(title,url) {
	if (window.sidebar) {
  		window.sidebar.addPanel(title, url,"");
 	} else if( document.all ) {
 		window.external.AddFavorite( url, title);
 	} else if( window.opera && window.print ) {
 		return true;
	}
}
function konferencjaRegion(op) {
	
	x_1 = document.getElementById('wojLabel');
	x_2 = document.getElementById('wojSelect');
	y_1 = document.getElementById('krajLabel');
	y_2 = document.getElementById('krajSelect');
	if (op == 'polska')
	{
		y_1.style.display = "none";
		y_2.style.display = "none";
		x_1.style.display = "block";
		x_2.style.display = "block";
	} 
	if (op == 'inny')
	{
		x_1.style.display = "none";
		x_2.style.display = "none";
		y_1.style.display = "block";
		y_2.style.display = "block";
	}
}

function woj (name)
{
	myDiv = document.getElementById('wojName');
	myDiv.innerHTML=name;
}