
function strona(stronka, w,h) {
window.open(stronka,"okno","scrollbars=1,left=1,top=1,screenX=80,screenY=80,width="+w+",height="+h+",");

}

function otworz(stronka, w,h) {
window.open(stronka,"okno","scrollbars=1,left=1,top=1,screenX=80,screenY=80,width="+w+",height="+h+",");

}


function indup(obj, num) {
  if (indxsel != num){ 
    obj.style.backgroundColor = "#EDEDED"; //najazd nie aktywne
  } else {
    obj.style.backgroundColor = "#EDEDED"; // najazd aktywne
  }
}

function inddown(obj, num) {
  if (indxsel != num){
    obj.style.backgroundColor = ""; // najazd
  } else       {
    obj.style.backgroundColor = ""; //klikniecie
  }
}

function autor() {
       if(!document.formularz.osw.checked) {
              document.formularz.wysl.disabled=true;
       } else {
              document.formularz.wysl.disabled=false;
       }
}

function checkform() {
if (document.formularz.J_imie.value == "") {
 alert("prosze podac Imie.");
 return false;
}

if (document.formularz.J_nazwisko.value == "")  {
 alert("Proszę podać swoje Nazwisko");
 return false;
} 

if (document.formularz.J_mail.value == "")  {
 alert("Prosze podać swój adres E-mail.");
 return false;
} 

if (document.formularz.D_ulica.value == "")  {
 alert("Prosze podać nazwę ulicy.");
 return false;
} 

if (document.formularz.D_kod.value == "")  {
 alert("Prosze podać kod pocztowy.");
 return false;
} 

 if (document.formularz.D_miejscowosc.value == "") {
  alert("Prosze podać miejscowość.");
  return false;
        }

else{

var str=document.formularz.J_mail.value
var filter=/^[a-z][\w\.-]*\w@([\w-]+\.)*[a-z]{2,4}$/
if (filter.test(str))
testresults=true
else{
alert("Forma adresu jest niewłaściwa!")
testresults=false
}
return (testresults)

   }
   }




function poslij(id){
document.write('<div class="poslij">Wyślij do znajomego</div>');
}

function szukajForm() {
if (document.szukajForm.slowo.value == "") {
 alert("Musisz podać nazwę, lub jej fragment.");
 return false;
}

}


