function HideSzukaj() {
	document.getElementById('szukajOpcje').style.visibility='hidden';
}
function ShowSzukaj() {
	document.getElementById('szukajOpcje').style.visibility='visible';
}

function HideLogin() {
	document.getElementById('logowanieHolder').style.visibility='hidden';
}
function ShowLogin() {
	document.getElementById('logowanieHolder').style.visibility='visible';
}
function ukryjPrzycisk(){
	document.getElementById('przyciskWyslijForm').style.visibility='hidden';
	document.getElementById('przyciskWyslijFormLoader').style.visibility='visible';
	document.getElementById('przyciskWyslijForm2').style.visibility='hidden';
	document.getElementById('przyciskWyslijFormLoader2').style.visibility='visible';
	document.getElementById('przyciskWyslijForm3').style.visibility='hidden';
	document.getElementById('przyciskWyslijFormLoader3').style.visibility='visible';
}
function PokazMiastoFunkcja(){
	var req3 = mint.Request(); // --- ladowanie miasta
	req3.AddParam("wojJS", $("wojJS").value);
	req3.Send("content/zapytania_js/misto.php", 'PokazMiastoJS');
}
function pokazChmurke(id){
	var req1 = mint.Request(); // --- ladowanie miasta
	req1.Send('content/zapytania_js/chmurka-'+id+'.html', 'chmurka-'+id);
	document.getElementById('chmurka-'+id).style.visibility='visible';
}
function pokazChmurkeOut(id){
	document.getElementById('chmurka-'+id).style.visibility='hidden';
}
function wstaw(pole, przed, po) {
  if (document.selection) { // IE/Opera
    pole.focus();
    obszar      = document.selection.createRange();
    obszar.text = przed+obszar.text+po;
    obszar.select();
  } else if (pole.selectionStart>-1) { // FireFox
    start = pole.selectionStart;
    tekst = przed+pole.value.substring(start,pole.selectionEnd)+po;
    pole.value = pole.value.substring(0, start)
    + tekst + pole.value.substring(pole.selectionEnd, pole.value.length);
    pole.selectionStart = start+tekst.length;
    pole.selectionEnd   = pole.selectionStart;
  }
}
function pokazZakres(zakres){
	var txt=document.getElementById("zakresWyszukiwania");
	txt.innerHTML=zakres;
}
