jQuery(function(){
	jQuery('.maincontent').submit(function(){

		if ((jQuery('input:eq(4)', this).val().length == 0)||(jQuery('input:eq(4)', this).val() == 'Ф.И.О.*')) {
			alert('Пожалуйста, укажите Ваше имя.');
			jQuery('input:eq(4)', this).focus();
			return false;
		}

		else if ((jQuery('input:eq(6)', this).val().length == 0)||(jQuery('input:eq(6)', this).val() == 'Телефон*')) {
			alert('Пожалуйста, укажите Ваш номер телефона.');
			jQuery('input:eq(6)', this).focus();
			return false;
		}

		else if ((jQuery('textarea:eq(0)', this).val().length == 0)||(jQuery('textarea:eq(0)', this).val() == 'Сообщение*')) {
			alert('Пожалуйста, укажите Ваш вопрос.');
			jQuery('textarea:eq(0)', this).focus();
			return false;
		}
	});
});
