function validate(f) {
	serviceName = f.servicename;
	yourName = f.name;
	yourDate = f.date;
	
	if (serviceName.value == "") {
		alert("Please enter the name of the service name");
		serviceName.focus();
		$("#service-name").animate( { backgroundColor: 'red' }, 500)
    .animate( { backgroundColor: '#FFFFFF' }, 1000);

		return false;
	}
	
	if (yourName.value == "") {
		alert("Please enter your name");
		yourName.focus();
		$("#name").animate( { backgroundColor: 'red' }, 500)
    .animate( { backgroundColor: '#FFFFFF' }, 1000);
		return false;
	}
	
	if (yourDate.value == "") {
		alert("Please enter the date of your wedding");
		yourDate.focus();
		$("#date").animate( { backgroundColor: 'red' }, 500)
    .animate( { backgroundColor: '#FFFFFF' }, 1000);
		return false;
	}
	return true;
}

function validateReply(f) {
    yourComment = f.comment;
	if (yourComment.value == "") {
		alert("Please enter a comment");
		yourComment.focus();
		$("#comment").animate( { backgroundColor: 'red' }, 500)
    .animate( { backgroundColor: '#FFFFFF' }, 1000);
		return false;
	}
	
    yourName = f.name;
    if (yourName.value == "") {
		alert("Please enter your name");
		yourName.focus();
		$("#name").animate( { backgroundColor: 'red' }, 500)
    .animate( { backgroundColor: '#FFFFFF' }, 1000);
		return false;
	}
	
	
	
	return true;
}