function doContact()
{
	var conferma = window.confirm("Confermi l'invio della richiesta di contatto?"); 
	if(conferma)
		document.getElementById("contact").submit();
	else
		return false;
}


function swip (elementInput, swipFrom, swipTo)
{
if (elementInput.value == swipFrom) elementInput.value = swipTo;
}

function doContact()
{
	if(document.getElementById("Nome").value=="" || document.getElementById("Nome").value=="Nome")
	{
		alert("Attenzione!Il campo Nome è obbligatorio");
		return false;
	}
	
	if(document.getElementById("Cognome").value=="" || document.getElementById("Cognome").value=="Cognome")
	{
		alert("Attenzione!Il campo Cognome è obbligatorio");
		return false;
	}	
	
	if(document.getElementById("Email").value=="" || document.getElementById("Email").value=="Email")
	{
		alert("Attenzione!Il campo Email è obbligatorio");
		return false;
	}		
	
	if(document.getElementById("richiesta").value=="" || document.getElementById("richiesta").value=="Richiesta")
	{
		alert("Attenzione!Il campo Richiesta è obbligatorio");
		return false;
	}	
	
	var conferma = window.confirm("Confermi l'invio della richiesta di contatto?"); 
	if(conferma)
		document.getElementById("dati").submit();
	else
		return false;
}
