if (navigator.appName == "Netscape") {
  document.all.onmouseover = OnMouseOver1;
  document.all.onmouseout = OnMouseOut1;

  function OnMouseOver1() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "item") {
      window.event.srcElement.className = "highlight";
    }
  }

  function OnMouseOut1() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "highlight") {
      window.event.srcElement.className = "item";
    }
  }

with (document.all) {
 write("<style type='text/css'>");
 write(".item { color: black;  text-decoration: none}");
 write(".highlight { color: green; }");
 write("</style>");
}
}

else {
  document.onmouseover = OnMouseOver ;
  document.onmouseout = OnMouseOut ;

  function OnMouseOver() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "item") {
        eSrc.className = "highlight";
    }
  }

  function OnMouseOut() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "highlight") {
        eSrc.className = "item";
    }
  }

with (document) {
 write("<style type='text/css'>");
 write(".item { font: 10pt arial; font-weight: bold; color: navy; text-decoration: none}");
 write(".highlight { font: 10pt arial; font-weight: bold; color: navy; text-decoration: yes}");
 write("</style>");
}

}

  function MenuOn() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "menu_on") {
        eSrc.className = "menu_off";
    }
  }

  function MenuOff() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "menu_off") {
        eSrc.className = "menu_on";
    }
  }

with (document) {
 write("<style type='text/css'>");
 write(".menu_on { font: 9pt/14pt; font-family: arial; color: #000000; text-decoration: underline; background-color: transparent; border-style: none; height:18px;}");
 write(".menu_off { font: 9pt/14pt; font-family: arial; color: #000000; text-decoration: underline; background-color: transparent; border-style: none; height:18px;}");
 write("</style>");
}


   function poprawneDane(form) {

      if (form.osoba.value=="") {
	 alert("Podaj imie i nazwisko!")
	 form.osoba.focus()
	 return false }

      if (form.mail.value=="") {
	 alert("Nie wpisano adresu e-mail!")
	 form.mail.focus()
	 return false }
	 
	 	if (form.plik.value=="") {
	 alert("Nie wybrano pliku!")
	 form.plik.focus()
	 return false }
	 
	 	if (!form.oswiadczenie.checked) {
	 alert("Czy na pewno zapoznałeś się z oświadczeniem?")
	 return false }
         
      return true
   }

