function SprawdzFormularz(f) {
    if (f.imie.value=='') {
    alert('Nie podales/as swojego imienia');
    return false;
    }
    if (f.email.value=='') {
    alert('Nie podales/as adresu e-mail.');
    return false;
    }
    if ( ((f.email.value.indexOf('@',1))==-1)||(f.email.value.indexOf('.',1))==-1 ) {
    alert('Podales/as bledny adres e-mail');
    return false;
    }
    if (f.pp.checked == false ) {
    alert('Musisz zgodzic sie z Polityka Prywatnosci.');
    return false;
    }
    else {
    return true;
    }
    }
    function SprawdzFormularz2(f){
    if(!SprawdzFormularz(f)){
    return false;
    }
	if (f.www.value=='http://') {
    alert('Nie podales/as adresu WWW.');
    return false;
    }
    if (((f.www.value.indexOf('.',1))==-1)) {
    alert('Podales/as bledny adres strony WWW');
    return false;
    }
    if (f.nazwisko.value=='') {
    alert('Nie podales/as swojego nazwiska');
    return false;
    }
    }
    function cena(ktore){
    	var place="95 PLN";
    	var ms="17";
    	var lstron="5000";
    	if(ktore==1){
    		place="35 PLN";
	   		ms="5";
	   		lstron="1500";
    	}
    	if(ktore==2){
    		place="65 PLN";
	   		ms="10";
	   		lstron="3000";
    	}
   		document.getElementById("place").innerHTML=place;
   		document.getElementById("ms").innerHTML=ms;
   		document.getElementById("lstron").innerHTML=lstron;
    }
    function SprawdzFormularz3(f) {
    if (f.imie.value=='') {
    alert('Nie podales/as swojego imienia i nazwiska');
    return false;
    }
    if (f.email.value=='') {
    alert('Nie podales/as adresu e-mail.');
    return false;
    }
    if ( ((f.email.value.indexOf('@',1))==-1)||(f.email.value.indexOf('.',1))==-1 ) {
    alert('Podales/as bledny adres e-mail');
    return false;
    }
    if (f.temat.value=='') {
    alert('Nie podales/as tematu wiadomosci.');
    return false;
    }
    if (f.tresc.value=='') {
    alert('Nie podales/as tresci wiadomosci.');
    return false;
    }
    else {
    return true;
    }
    }

