function checkFeedbackForm(lang)
{
	var err = Array();
	var eIndex = 0;
	var f = document.feedbackForm;
	if(trim(f.name.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your name';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo vardo.';
		err[eIndex]['ru'] = 'Вы не указали Ваше имя.';
		eIndex++;
		f.name.className = 'textInputError';
	}
	else
		f.name.className = 'textInput';
	if(trim(f.age.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your age.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo amžiaus.';
		err[eIndex]['ru'] = 'Вы не указали Ваш возраст.';
		eIndex++;
		f.age.className = 'textInputError';
	}
	else
		f.age.className = 'textInput';
	if(trim(f.city.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your city.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo miesto.';
		err[eIndex]['ru'] = 'Вы не указали Ваш город';
		eIndex++;
		f.city.className = 'textInputError';
	}
	else
		f.city.className = 'textInput';
	if(trim(f.email.value) == '' || isValidEmail(f.email.value) == false)
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Email is incorrect or not typed.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo e-mail arba jo formatas neteisingas.';
		err[eIndex]['ru'] = 'Вы не указали Ваш email или формат адреса некорректен.';
		eIndex++;
		f.email.className = 'textInputError';
	}
	else
		f.email.className = 'textInput';
	if(trim(f.feedback.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please fill the feedback field.';
		err[eIndex]['lt'] = 'Jūs nieko neparašėte atsiliepime.';
		err[eIndex]['ru'] = 'Вы ничего не написали в отзыве.';
		eIndex++;
		f.feedback.className = 'fbTextError';
	}
	else
		f.feedback.className = 'fbText';
	if(err.length > 0)
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please fill all fields.';
		err[eIndex]['lt'] = 'Prašome užpildyti visus laukus.';
		err[eIndex]['ru'] = 'Пожалуйста заполните все поля.';
		var i = 0;
		var s = '';
		for(i = 0; i < err.length; i++)
		{
			s += err[i][lang]+'\r\n \r\n';
		}
		alert(s);
		return false;
	}
	else
		return true;
}
function checkCvForm(lang)
{
	var err = Array();
	var eIndex = 0;
	var f = document.cvForm;
	if(trim(f.name.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your name';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo vardo.';
		err[eIndex]['ru'] = 'Вы не указали Ваше имя.';
		eIndex++;
		f.name.className = 'textInputError';
	}
	else
		f.name.className = 'textInput';
	if(trim(f.lastname.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your surname';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo pavardės.';
		err[eIndex]['ru'] = 'Вы не указали Вашу фамилию.';
		eIndex++;
		f.lastname.className = 'textInputError';
	}
	else
		f.lastname.className = 'textInput';
	if(trim(f.bday.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your birthday date.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo gimimo datos.';
		err[eIndex]['ru'] = 'Вы не указали дату Вашего рождения.';
		eIndex++;
		f.bday.className = 'textInputError';
	}
	else
		f.bday.className = 'textInput';
	if(trim(f.phone.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your phone number.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo telefono numerio.';
		err[eIndex]['ru'] = 'Вы не указали номер Вашего телефона.';
		eIndex++;
		f.phone.className = 'textInputError';
	}
	else
		f.phone.className = 'textInput';
	if(trim(f.email.value) == '' || isValidEmail(f.email.value) == false)
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Email is incorrect or not typed.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo e-mail arba jo formatas neteisingas.';
		err[eIndex]['ru'] = 'Вы не указали Ваш email или формат адреса некорректен.';
		eIndex++;
		f.email.className = 'textInputError';
	}
	else
		f.email.className = 'textInput';
	if(trim(f.study.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your education level.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo išsilavinimo.';
		err[eIndex]['ru'] = 'Вы не указали Ваше образование';
		eIndex++;
		f.study.className = 'textInputError';
	}
	else
		f.study.className = 'textInput';
	if(trim(f.languages.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your languages skills.';
		err[eIndex]['lt'] = 'Jūs nenurodėte kalbų, kuriomis galite bendrauti.';
		err[eIndex]['ru'] = 'Вы не указали языки, которыми владеете.';
		eIndex++;
		f.languages.className = 'textInputError';
	}
	else
		f.languages.className = 'textInput';
	if(f.agree.checked == false)
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'You have to agree with our terms of your data using.';
		err[eIndex]['lt'] = 'Jūs turite pažymeti sutikimo varnelę.';
		err[eIndex]['ru'] = 'Для отправки своего резюме Вы должны согласиться с нашими условиями.';
		eIndex++;
		f.agree.className = 'textInputError';
	}
	else
		f.agree.className = 'textInput';
	if(err.length > 0)
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please fill all fields.';
		err[eIndex]['lt'] = 'Prašome užpildyti visus laukus.';
		err[eIndex]['ru'] = 'Пожалуйста заполните все поля.';
		var i = 0;
		var s = '';
		for(i = 0; i < err.length; i++)
		{
			s += err[i][lang]+'\r\n \r\n';
		}
		alert(s);
		return false;
	}
	else
		return true;
}
function checkReservationForm(lang)
{
	var err = Array();
	var eIndex = 0;
	var f = document.reservationForm;
	if(trim(f.name.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your name';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo vardo.';
		err[eIndex]['ru'] = 'Вы не указали Ваше имя.';
		eIndex++;
		f.name.className = 'textInputError';
	}
	else
		f.name.className = 'textInput';
	if(trim(f.lastname.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your surname';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo pavardės.';
		err[eIndex]['ru'] = 'Вы не указали Вашу фамилию.';
		eIndex++;
		f.lastname.className = 'textInputError';
	}
	else
		f.lastname.className = 'textInput';
	if(trim(f.address.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your address.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo adreso.';
		err[eIndex]['ru'] = 'Вы не указали Ваш адрес.';
		eIndex++;
		f.address.className = 'textInputError';
	}
	else
		f.address.className = 'textInput';
	if(trim(f.phone.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your phone number.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo telefono numerio.';
		err[eIndex]['ru'] = 'Вы не указали номер Вашего телефона.';
		eIndex++;
		f.phone.className = 'textInputError';
	}
	else
		f.phone.className = 'textInput';
	if(trim(f.email.value) == '' || isValidEmail(f.email.value) == false)
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Email is incorrect or not typed.';
		err[eIndex]['lt'] = 'Jūs nenurodėte savo e-mail arba jo formatas neteisingas.';
		err[eIndex]['ru'] = 'Вы не указали Ваш email или формат адреса некорректен.';
		eIndex++;
		f.email.className = 'textInputError';
	}
	else
		f.email.className = 'textInput';
	if(trim(f.dateIn.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your arrival date.';
		err[eIndex]['lt'] = 'Jūs nenurodėte atvykimo datos.';
		err[eIndex]['ru'] = 'Вы не указали дату Вашего прибытия.';
		eIndex++;
		f.dateIn.className = 'textInputError';
	}
	else
		f.dateIn.className = 'textInput';
	if(trim(f.dateOut.value) == '')
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please type your departure date.';
		err[eIndex]['lt'] = 'Jūs nenurodėte išvykimo datos.';
		err[eIndex]['ru'] = 'Вы не указали дату Вашего отъезда.';
		eIndex++;
		f.dateOut.className = 'textInputError';
	}
	else
		f.dateOut.className = 'textInput';
	if(err.length > 0)
	{
		err[eIndex] = Array();
		err[eIndex]['en'] = 'Please fill all fields.';
		err[eIndex]['lt'] = 'Prašome užpildyti visus laukus.';
		err[eIndex]['ru'] = 'Пожалуйста заполните все поля.';
		var i = 0;
		var s = '';
		for(i = 0; i < err.length; i++)
		{
			s += err[i][lang]+'\r\n \r\n';
		}
		alert(s);
		return false;
	}
	else
		return true;
}
