function verify(){
	this.email_verify = function(email) {
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)){
			return true;
		} else {
			return false;
		}
	}  
	this.get=function(obj){
		return document.getElementById(obj).value;
	}
	this.check=function(){
		var imie=this.get('imie');
		var email=this.get('email');
		var data=this.get('data');
		var miejsce=this.get('miejsce');
		var temat=this.get('temat');
		var tresc=this.get('tresc');
		var how=this.get('how');
		if(imie.length<=5){
			alert('wpisz poprawnie swoje imię')	
		} else if(email.length<=7){
			alert('wpisz adres email');
		} else if(this.email_verify(email)==false){
			alert('wpisz poprawnie swój email')	
			
		} else if(data=='dd-mm-rrrr'){
			alert('podaj date wydarzenia')
	
		} else if(miejsce.length<=2){
			alert('podaj miejsce wydarzenia')
			
		} else if(temat.length<=3){
			alert('podaj temat wiadomości')
			
		} else if(tresc.length<=10){
			alert('podaj tresc wiadomosci wiadomości');
		} else {
			/*
				Już nie ma błędów, napierdalasz wysyłke
			*/
			send_now();
		}
	}
}
verify=new verify();

