jQuery(document).ready(function($) {
	var form_valSetting = {fields : [
		 {id:"CFirst", msg:"Please fill in your first name.", type:""},
		 {id:"CLast", msg:"Please fill in your last name.", type:""},
		 {id:"Phone", msg:"Please fill in your phone number.", type:""},
		 {id:"CEmail", msg:"Please fill in your email address so I may contact you.", type:"email"},
		 {id:"Message", msg:"Please type a message.", type:""},
		 {id:"recaptcha_response_field", msg:"Recaptcha is a required field", type:"recaptcha"}
	]};
	var form_msgSuccess = function(){
		var name = $('#CFirst').val();
		var email = $('#CEmail').val();		
		$('#myForm').slideUp("normal", function() {				   							
			$('#myForm').before(
				'<div style="clear:both">\n \
					<br /><div style="font:bold 20px/1.5em Arial, Helvetica, sans-serif">Hi '+name+',</div><br />\n \
					<div style="font:normal 12px/1.5em Arial, Helvetica, sans-serif">\n \
						Thanks for contacting us. <br />\n \
						One of us from Voyager will be contacting you via <b>'+email+'</b> just as soon as we can.\n \
					</div>\n \
				</div>'				
			);
		});	
	};	
    var form_init = new WIN.validateForm( 'submit', form_valSetting, 'contact_process.php', form_msgSuccess, null );
});