// JavaScript Document
msgCampoObb = '<span class="toValid">Valore richiesto.</span>'
msgCampoObb2 = '<span class="toValid"><br>Valore richiesto......</span>'
$(function(){
	$(".dateEntry").dateEntry($.dateEntry.regional['it']);	   
		   
		   
	
	$('.numeric').val('10')
	
	$("#schedaReg").validate({ //wizard settings
		 
			//validation settings				
			rules: {
				nome: "required",
				cognome: "required",
				polizza:{
						required:true,
						digits:true
				        },
				email: "required"
			},
			messages: {	
				nome: msgCampoObb2,
				cognome: msgCampoObb2,
				polizza:{
						required:msgCampoObb2,
						digits:'digits'
				        },
				email: msgCampoObb2
			}
		 },
		 {
			// form plugin settings
			success: function(data){
				alert(data.registration.statusMessage);
				//$('#result').html('richiesta:'+Date()+'<br />dati:'+data)
								   }/*,
			beforeSubmit: function(data){alert("about to send the following data: \n\n" + $.param(data))},
			dataType: 'json',
			resetForm: false*/
	});
	$("#WiziForm").show('slow')
});