// clear the text in the form fields

$(document).ready(function() {
	var inputName = $('input[value="Name"]');
	var inputPhoneNumber = $('input[value="Phone Number"]');
	$('input, textarea').each(function(){
			$(this).data('iVal', $(this).val());
			$(this).addClass('inactive');
		})
		.focus(function(){
		if($(this).val() === $(this).data('iVal'))
			$(this).val('');
			$(this).removeClass('inactive');
		})
		.blur(function(){
        if ($(this).val() === '') {
	        $(this).val($(this).data('iVal'));
	        $(this).addClass('inactive');
        }
	})
	$('.gform_wrapper form').submit(function() {
		if($(inputName).val() == 'Name') {
			alert('Please Enter Your Name');
			return false;
		}
		if($(inputPhoneNumber).val() == 'Phone Number') {
			alert('Please Enter Your Phone Number');
			return false;
		}
	});
});
