function zamow() {



var dane = document.zamowienie.dane.value;

var nip = document.zamowienie.nip.value;





	if (document.getElementById('r2').checked) {

	

		if (dane == '') {

		alert('Musisz podać dane klubu');	

		} else {

		

			if (document.zamowienie.osw.checked) {



				if (nip == '') {

					alert('Muszisz podać nr NIP!');

				} else {

					document.zamowienie.submit();

				}



			} else {

			alert('Musisz być upoważniony do odbioru faktury VAT');

			}

			

		}

	

	} else if (document.getElementById('r1').checked) {



		document.zamowienie.submit();



	}



}











function foto(id) {



var szer = screen.width;

var wys = screen.height;



var x = (szer/2) - (650/2);

var y = (wys/2) - (550/2);



window.open(''+ id + '', '', 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,fullscreen=no,channelmode=no,left=' + x + ',top=' + y + ',width=650,height=550');



}















function win(id,width,height) {



var szer = screen.width;

var wys = screen.height;



var x = (szer/2) - (width/2);

var y = (wys/2) - (height/2);



window.open(''+ id + '', '', 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,fullscreen=no,channelmode=no,left=' + x + ',top=' + y + ',width=' + width + ',height=' + height + '');



}












function subs(form_id,email) {


var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var address = document.forms[form_id].elements[email].value;
var email = document.subscribe.email.value;


if(reg.test(address) == false) {
      alert('Podany adres niemoże zostać wpisany do bazy danych !');
      return false;
   }



if (email == '' || email == 'Tu wpisz swój e-mail...') {

	

alert('Musisz podać swój adres e-mail!');



} else {





	if ((email.indexOf("@")<1) &&(email.indexOf(".pl")<1)

	&&(email.indexOf(".us")<1) &&(email.indexOf("uk")<1)

	&&(email.indexOf(".de")<1) &&(email.indexOf(".mil")<1)

	&&(email.indexOf(".com")<1) &&(email.indexOf(".gov")<1)) {



	alert('Musisz podać poprawny adres e-mail!');

	

	} else {

	document.subscribe.submit();

	}





}



}













function ankieta_submit() {



var rodzaj_kursu = document.ankieta.rodzaj_kursu.value;

var miejsce_kursu = document.ankieta.miejsce_kursu.value;

var system_kursu = document.ankieta.system_kursu.value;

var imie = document.ankieta.imie.value;

var nazw = document.ankieta.nazw.value;

var ulica = document.ankieta.ulica.value;

var kod = document.ankieta.kod.value;

var miasto = document.ankieta.miasto.value;

var ur_dzien = document.ankieta.ur_dzien.value;

var ur_miesiac = document.ankieta.ur_miesiac.value;

var ur_rok = document.ankieta.ur_rok.value;

var ur_miejsce = document.ankieta.ur_miejsce.value;

var tel = document.ankieta.tel.value;

var email = document.ankieta.email.value;

var polisa = document.ankieta.polisa.value;

var dokumenty = document.ankieta.dokumenty.value;





if (document.ankieta.reg.checked) {



	if (rodzaj_kursu == '' || miejsce_kursu == '' || system_kursu == '' || imie == '' || nazw == '' || ulica == '' || kod == '' || miasto == '' || ur_dzien == '' || ur_miesiac == '' || ur_rok == '' || ur_miejsce == '' || tel == '' || email == '' || polisa == '' || dokumenty == '') {

		alert('Musisz wypełnić wszystkie pola obowiązkowe\noznaczone symbolem - *');

	} else {

		document.ankieta.submit();

	}



} else {

	alert('Musisz zapoznać się i zaakceptować regulamin kursu!');

}





}

























function ukryj(klik,co) {



	if (klik) { 

	document.getElementById(co).style.visibility='visible';

	} else {

	document.getElementById(co).style.visibility='hidden';

	}



}











function ask_ses() {



var temat = document.pytanie.temat.value;

var pyt = document.pytanie.pyt.value;



	if (temat == '' || pyt == '') {

		alert('Nie wypełniłeś wszystkich pól');

	} else {

		document.pytanie.submit();

	}



}











function ask() {



var i_n = document.pytanie.i_n.value;

var email = document.pytanie.email.value;

var temat = document.pytanie.temat.value;

var pyt = document.pytanie.pyt.value;



	if (i_n == '' || email == '' || temat == '' || pyt == '') {

		alert('Nie wypełniłeś wszystkich pól');

	} else {



		if ((email.indexOf("@")<1) &&(email.indexOf(".pl")<1)

		&&(email.indexOf(".us")<1) &&(email.indexOf("uk")<1)

		&&(email.indexOf(".de")<1) &&(email.indexOf(".mil")<1)

		&&(email.indexOf(".com")<1) &&(email.indexOf(".gov")<1)) {

		alert('Podaj poprawnego e-maila!');

		} else {

		document.pytanie.submit();

		}



	}



}









function vote(id) {



if (id == 1) {

document.sonda1.submit();

}



if (id == 2) {

document.sonda2.submit();

}



}











function sprawdz() {



var login = document.logowanie.login.value;

var haslo = document.logowanie.haslo.value;



if (login == '' && haslo == '') {

	alert('Nie wypełniłeś żadnego pola');

} else if (login == '' && haslo != '') {

	alert('Nie wypełniłeś pola login');

} else if (login != '' && haslo == '') {

	alert('Nie wypełniłeś pola hasla');

} else if (login != '' && haslo != '') {

	document.logowanie.submit();

}



}









function ch_user() {



var login = document.profil.login1.value;

var haslo1 = document.profil.haslo1.value;

var haslo2 = document.profil.haslo2.value;

var imie = document.profil.imie.value;

var nazwisko = document.profil.nazwisko.value;

var email = document.profil.email.value;

var tel = document.profil.tel.value;

var ulica = document.profil.ulica.value;

var nr1 = document.profil.nr1.value;

var nr2 = document.profil.nr2.value;

var miasto = document.profil.miasto.value;

var kod = document.profil.kod.value;

var pyt = document.profil.pyt.value;

var odp = document.profil.odp.value;

var tok = document.profil.tok.value;



	

		if (login == '' || haslo1 == '' || haslo2 == '' || imie == '' || 

			nazwisko == '' || email == '' || tel == '' || ulica == '' || nr1 == '' || 

			nr2 == '' || miasto == '' || kod == '' || pyt == '' || odp == '') {

		

			alert('Musisz wypełnić wszystkie pola');

		

		} else {

		

			if (haslo1 != haslo2) {

				alert('Powtórzone hasło nie zgadza się');

			} else {

				document.profil.submit();

			}

		

		}





}















function dalej() {



var login = document.forget1.login_f.value;



if (login == '') {

	alert('Musisz podać login!');

} else {

	document.forget1.submit();

}



}







function dalej2() {



	if (document.forget2.odpowiedz.value == '') {

		alert('Nie podałeś odpowiedzi na pytanie!');

	} else {

		document.forget2.submit();

	}



}



















<!-- Original:  Rick Johnson (frj11@ev1.net) -->

<!-- Web Site:  http://rickjohnson.tripod.com -->



<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

function popupWin(path,opis,width,height) {

var width = width;

var height = height;



text =  "<html>\n<head>\n<title>XII Kompleks Miedzynarodowych Targow</title>\n<body style=\"background-color:#3F434E; padding:0px; margin:0px\">\n";

text += "<center>\n<br />";

text += "<a href=\"http://www.sportrekreacja.pl\" target=\"_blank\" title=\"" + opis + "\"><img style=\"border:none\" src=\"inne/" + path + "\"></a>";

text += "</center>\n</body>\n</html>\n";

setTimeout('windowProp(text,' + width + ',' + height + ')', 3000); 		// delay 3 seconds before opening

}

function windowProp(text,width,height) {

newWindow = window.open('','newWin','width=' + width + ',height=' + height + '');

newWindow.document.write(text);

setTimeout('closeWin(newWindow)', 20000);	// delay 5 seconds before closing

}

function closeWin(newWindow) {

newWindow.close();				// close small window and depart

}

























function baner(napis) {



var przegladarka = navigator.userAgent;

var ie = (przegladarka.indexOf("MSIE") != -1 && przegladarka.indexOf(") ") == -1 ? true : false);

var mozilla = (przegladarka.indexOf("Gecko") != -1 && przegladarka.indexOf("Netscape") == -1 ? true : false);

var netscape_ver = 0;

if (przegladarka.indexOf("Netscape") != -1)

{

  netscape_ver = parseInt(przegladarka.substring(przegladarka.indexOf("Netscape")+8));

  if (isNaN(netscape_ver)) netscape_ver = parseInt(przegladarka.substring(przegladarka.indexOf("Netscape")+9));

}

var opera_ver = 0;

if (przegladarka.indexOf("Opera") != -1)

{

  opera_ver = parseFloat(przegladarka.substring(przegladarka.indexOf("Opera")+5));

  if (isNaN(opera_ver)) opera_ver = parseFloat(przegladarka.substring(przegladarka.indexOf("Opera")+6));

}



if (ie || mozilla || netscape_ver >= 7 || opera_ver >= 7.2)

{

  document.write('<marquee style="width:371px; height:10px; font-weight:bold">' + napis + '<'+'/marquee>');

}



}





























// Autorem skryptu jest: SŁAWOMIR KOKŁOWSKI

// www.kurshtml.boo.pl

// Jeśli chcesz wykorzystać ten skrypt na swojej stronie, nie usuwaj tego komentarza!





var karty = new Array(

////// Podaj ilość pozycji w poszczególnych menu:

new karta(3),//system

new karta(7),//kursy

new karta(8),//sklepik

new karta(5),//konwencje

new karta(3),//rookie of poland

new karta(5)//terminarz

);





var szybko = false;

var czas = new Date();





function display(id, wartosc)

{

    

  if (wartosc)

  {

    if (document.getElementById) document.getElementById(id).style.display = wartosc;

    else if (document.all) document.all[id].style.display = wartosc;

    

  }

  else

  {

    var wart = "";

    if (document.getElementById) wart = document.getElementById(id).style.display;

    else if (document.all) wart = document.all[id].style.display;

    return wart;

  }

}



function ukryj(id)

{

    //alert(id);

  for (var i = 0; i < karty[id].ilosc; i++) display("nr" + id + "_" + i, "none");

  display("nr" + id, "none");

  karty[id].rozwinieta = false;

}



var id_rozwin_zwin = 0;

function rozwin_zwin(id, nr)

{

  if (!nr)

  {

    var nr = 0;

    if (!karty[id].rozwinieta) for (var i = 0; i < karty.length; i++) if (i != id) ukryj(i);

    czas = new Date();

  }



  if (nr < karty[id].ilosc)

  {

    if (karty[id].rozwinieta)

    {

      if (szybko) display("nr" + id + "_" + nr++, "none");

      if (nr < karty[id].ilosc) display("nr" + id + "_" + nr, "none");

    }

    else

    {

      display("nr" + id, "block");

      if (szybko) display("nr" + id + "_" + nr++, "block");

      if (nr < karty[id].ilosc) display("nr" + id + "_" + nr, "block");

    }

  }



  nr++;

  clearTimeout(id_rozwin_zwin);

  if (nr < karty[id].ilosc) id_rozwin_zwin = setTimeout('rozwin_zwin(' + id + ',' + nr + ')', 10);

  else

  {

    if (karty[id].rozwinieta) display("nr" + id, "none");

    if (!szybko && new Date() - czas > karty[id].ilosc*25) szybko = true;

    else if (szybko && new Date() - czas < karty[id].ilosc*12) szybko = false;

    karty[id].rozwinieta = (karty[id].rozwinieta ? false : true);

  }

}



function karta(il)

{

  this.ilosc = il;

  this.rozwinieta = true;

}
