<!-- <![CDATA[

function reloadAjaxData(boxik,label_id){
	var adres = "zawartosc/" + boxik + ".php?lang=" + document.getElementById("lang_js").value;

	advAJAX.get({
    url: 'lib/php/get_label.php?lang=' + document.getElementById("lang_js").value + '&dzial_url='+label_id,
    onSuccess : function(obj) {document.getElementById("ajax_label").innerHTML = obj.responseText;}
  });

	if (boxik == 'ulsugi' || boxik == 'glowna') {
		document.getElementById("box_wysyp").className='box_wysyp_gl';
	}
	else {
		document.getElementById("box_wysyp").className='box_wysyp_st box_wysyp_';
	}
	document.getElementById("box_wysyp").innerHTML = '<br />Data base conected - loading data ...<br /><br /><br />';
	advAJAX.get({
    url: adres,
    onSuccess : function(obj) {
			document.getElementById("box_wysyp").innerHTML = obj.responseText;
     }
  });
}

function ladujFlasz(urlStr,f_width,f_height,backGround,zmienne){
  var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
  if(hasRightVersion){
    //var zmienne 'rr=erer';
    var tmp = 	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+f_width+'" height="'+f_height+'" id="index" align="middle">'
              + '<param name="allowScriptAccess" value="sameDomain" />'
              + '<param name="movie" value="'+urlStr+'.swf?'+zmienne+'"/>'
              + '<param name="menu" value="false" />'
              + '<param name="quality" value="high" />'
              + '<param name="scale" value="noscale" />';
    if (backGround != undefined && backGround != 'transparent'){
      tmp += '<param name="bgcolor" value="'+backGround+'" />';
    }
    else {
      tmp += '<param name="wmode" value="transparent"/>';
    }
    tmp += '<embed src="'+urlStr+'.swf?'+zmienne+'" quality="high" ';
    if (backGround != undefined && backGround != 'transparent' ){
      tmp += 'bgcolor="'+backGround+'" ';
    }
    else {
      tmp += 'wmode="transparent"';
    }
    tmp += 'width="'+f_width+'" height="'+f_height+'" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
        + '</object>';
    document.write(tmp);
  }
  else {
    var alternateContent = '<a href=http://www.macromedia.com/go/getflash/><img src="'+urlStr+'.png" alt="'+urlStr+'" title="'+urlStr+'" border="0"/></a>';
    document.write(alternateContent);
  }
}

function go_url(newURL) {
	location.href=newURL;
}

function display_element(id, akcja) {
  switch (akcja) {
    case 'block': if (document.getElementById) {document.getElementById(id).style.display = 'block';}
                  else if (document.all) {document.all[id].style.display = 'block';}
                  break;
    case 'none':  if (document.getElementById) {document.getElementById(id).style.display = 'none';}
                  else if (document.all) {document.all[id].style.display = 'none';}
                  break;
	  default :     if (document.getElementById) {
	                  if (document.getElementById(id).style.display == 'block') {document.getElementById(id).style.display = 'none';}
	                  else {document.getElementById(id).style.display = 'block';}
	                }
	                else if (document.all) {
	                  if (document.all[id].style.display == 'block') {document.all[id].style.display = 'none';}
	                  else {document.all[id].style.display = 'block';}
                  }
	}
}

function sprawdz_znak(numeryczne, max_lenght, pole_value, pole_name) {
  // sposub użycia
  // onKeyUp="sprawdz_znak(true, 0, this.value, this.name)"

  var tmp=0;
  var i=0;
  var wynik='';
  str = new String();

  var dobrytext = /^[0-9]$/i;

  if (numeryczne) {
    str = pole_value;
    while (str.charAt(i)) {
      tmp = str.charAt(i);
      if (dobrytext.test(tmp)) {wynik = wynik + tmp;}
      i++;
    }
    str = wynik;
  }
  else {str = pole_value;}

  i=0; wynik='';

  if (max_lenght > 0) {
    for (j=0; i < max_lenght; i++) {
      tmp = str.charAt(i);
      wynik = wynik + tmp;
    }
    document.getElementById(pole_name).value = wynik;
  }
  else {
    document.getElementById(pole_name).value = str;
  }
}

function wymagane_form_praca() {
	
	if (document.getElementById('form_imie').value=='') {alert('Pole imie jest puste'); document.getElementById('form_imie').focus(); return false;} else
	if (document.getElementById('form_nazwisko').value=='') {alert('Pole nazwisko jest puste'); document.getElementById('form_nazwisko').focus(); return false;} else
	if (document.getElementById('form_ulica').value=='') {alert('Pole ulica jest puste'); document.getElementById('form_ulica').focus(); return false;} else
	if (document.getElementById('form_kod').value=='') {alert('Pole kod_pocztowy jest puste'); document.getElementById('form_kod').focus(); return false;} else
	if (document.getElementById('form_miasto').value=='') {alert('Pole miasto jest puste'); document.getElementById('form_miasto').focus(); return false;} else
	if (document.getElementById('form_tel').value=='') {alert('Pole imie telefon puste'); document.getElementById('form_tel').focus(); return false;} else
	if (document.getElementById('form_email').value=='') {alert('Pole imie email puste'); document.getElementById('form_email').focus(); return false;} else
	if (document.getElementById('form_data_ur').value=='') {alert('Pole data urodzenia jest puste'); document.getElementById('form_data_ur').focus(); return false;} else
	if (document.getElementById('form_wyksztalcenie').value=='') {alert('Pole wykształcenie jest puste'); document.getElementById('form_wyksztalcenie').focus(); return false;} else
	if (document.getElementById('pytanie_1').value=='') {alert('Pole informacje jest puste'); document.getElementById('pytanie_1').focus(); return false;} else
	if (document.getElementById('pytanie_2').value=='') {alert('Pole informacje jest puste'); document.getElementById('pytanie_2').focus(); return false;} else
	if (document.getElementById('pytanie_3').value=='') {alert('Pole informacje jest puste'); document.getElementById('pytanie_3').focus(); return false;} else
	if (document.getElementById('pref_stanowisko').options[0].selected) {alert('Wybierz preferowane stanowisko z listy'); document.getElementById('pref_stanowisko').focus(); return false;} else
	if (!document.getElementById('tak').checked && !document.getElementById('nie').checked) {alert('Musisz zaznaczyć, czy wyrażasz zgodę na przetwarzanie danych osobowych'); document.getElementById('tak').focus(); return false;} else 
	{
		
		return true;
		
	}
	
}

function wymagane_form_zapytanie() {
	
	if (document.getElementById('imie_nazwisko_zapytanie').value=='') {alert('Pole imie i nazwisko jest puste'); document.getElementById('imie_nazwisko_zapytanie').focus(); return false;} else
	if (document.getElementById('tel_zapytanie').value=='') {alert('Pole telefon jest puste'); document.getElementById('tel_zapytanie').focus(); return false;} else
	if (document.getElementById('liczba_zapytanie').value=='') {alert('Pole ilość uczestników jest puste'); document.getElementById('liczba_zapytanie').focus(); return false;} else
	if (document.getElementById('srodki_fi_zapytanie').value=='') {alert('Pole środki finansowe jest puste'); document.getElementById('srodki_fi_zapytanie').focus(); return false;} else
  	{
  		return true;
  	}
}





// ]]> -->