// JavaScript Document

function sendContatto(){
	
	var valido = $("#contatti").valid();

	if (valido) {
	
		$('#msg').html("Attendere mentre invio ...");
	
		var option = { 		   
			dataType : 		'json',			
			success:       onSendedContact
		};
		
		$('#contatti').ajaxForm(option);
		$('#contatti').submit();
	
	}
	
	
}

function onSendedContact(responseText, statusText){
	
	$('#contatti').clearForm();
	$('#msg').html(responseText.msg);
	
}