function validate(formular){
if(formular.name.value==""){
	alert("Fill name");
	formular.name.focus();
	return false;
	}
if(formular.date_of_birth.value==""){
	alert("Fill date of birth");
	formular.date_of_birth.focus();
	return false;
	}
if(formular.email.value==""){
	alert("Fill email");
	formular.email.focus();
	return false;
	}
if(formular.street.value==""){
	alert("Fill street");
	formular.street.focus();
	return false;
	}
if(formular.city.value==""){
	alert("Fill city");
	formular.city.focus();
	return false;
	}
if(formular.postal_code.value==""){
	alert("Fill postal code");
	formular.postal_code.focus();
	return false;
	}
if(formular.country.value==""){
	alert("Fill country");
	formular.country.focus();
	return false;
	}
if(formular.name_of_parents.value==""){
	alert("Fill name of parents");
	formular.name_of_parents.focus();
	return false;
	}
if(formular.phone.value==""){
	alert("Fill phone");
	formular.phone.focus();
	return false;
	}
if(formular.will_parent.value==""){
	alert("Fill - will parent/s be needing accomodation?");
	formular.will_parent.focus();
	return false;
	}
if(formular.overit_kod.value==""){
	alert("Type the verification code");
	formular.overit_kod.focus();
	return false;
	}	
else {
  return true;
  }
}




function validate(registration){
if(registration.username.value==""){
	alert("Fill username");
	registration.username.focus();
	return false;
	}
if(registration.password.value==""){
	alert("Fill password");
	registration.password.focus();
	return false;
	}
if(registration.cpassword.value==""){
	alert("Fill confirm password");
	registration.cpassword.focus();
	return false;
	}
if(registration.name.value==""){
	alert("Fill name");
	registration.name.focus();
	return false;
	}
if(registration.email.value==""){
	alert("Fill email");
	registration.email.focus();
	return false;
	}
else {
  return true;
  }
}

function ZobrazForm(){
var oHiddenForm = document.getElementById('HiddenForm');
oHiddenForm.className = "HiddenForm2";
}

