function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
  {alert(alerttxt);return false}
  
 
  
	else {return true}
	



}
}

function validate_form(thisform){
	with (thisform)
		{
		
			
  			
  				
  			if (validate_required(imie_nazwisko,"Pole Imie i nazwisko jest wymagane!")==false)
  			{imie_nazwisko.focus();return false}
			
					
						
  			if (validate_required(email,"Pole Adres E-mail musi byc wypelnione!")==false)
  			{email.focus();return false}
  			
else
{return true;}
									
		}
		}
