$(document).ready(function() {
	// Replace Form Values
	$(function() {
		$.fn.clearOnFocus = function(){
			return this.focus(function(){
			  this.value = this.value === this.defaultValue ? '' : this.value;
			}).blur(function(){
			  this.value = this.value === '' || /^\s+$/.test(this.value) ? this.defaultValue : this.value;
			});
		}
		$(function(){
			$('input, textarea').clearOnFocus()
			.each(function(){
				var input = $(this);
				input.parents('form:eq(0)').submit(function(){
				   return input[0].value !== input[0].defaultValue;
				});
			});
		});
	});
});