function emailValidator(elem, helperMsg){
	var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
	if(elem.value.match(emailExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}

function isEmpty(elem, helperMsg){
	if(elem.value.length != 0){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}

function formValidator(){
	var email = document.getElementById('email');
	var user_captcha = document.getElementById('user_captcha');
	
	
	  if(emailValidator(email, "Το Email σας δεν είναι σε σωστή μορφή.")){ 
	    if(isEmpty(user_captcha, "To αποτέλεσμα της πράξης πρέπει να είναι αριθμός.")){
		 	return true;
	  }
	}
 return false;
}