var ww = {
	
	sendMessage: function(thisform)
	{
		
		ww.form = thisform;
		
		jQuery.post("contact-send",jQuery(thisform).serialize(), 
			function(data) {

				if (data.error)
				{
					
					jQuery('.error').html('<ul id="ul-error">'+data.msg+'</ul>');
					
					jQuery('.error').show('slow');
					jQuery('p#success').hide('slow');
					
				}
				else
				{
					jQuery('.error').hide('slow');
					jQuery('p#success').show('slow');
					ww.form.reset();
					
				}
			},
			"json"
		);


	}
}