function campiObbligatori()
{
	if ( document.formContatti.url.value == 0 ) 
	{
		return "Insert the url";
	} 
	else 
		{
		if ( document.formContatti.richiesta.value == 0 ) 
			{
			return "Insert the text of your message";
			} 
				else {
						if ( document.formContatti.nome.value == 0 ) 
							{
							return "Insert your name please";
							} 
								else 
									{
										if ( document.formContatti.email.value == 0 ) 
											{
											return "Insert you email or we 'll not able to contact you!";
											} 
												else
													if ( document.formContatti.rapp.value == 0 ) 
														{
															return "Insert the name of the legal rappresentant of your company";
														}
												else
													{
													return "";
													}
									}
					}
		}
}

function checkForm(){
	var risultatoCampi = campiObbligatori();
	if ( risultatoCampi == '') {
		document.formContatti.submit();
	} else {
		alert(risultatoCampi);	
	}
}	

