function mlCheckForm(nForm)
{
	var ffocus, Char, Char2;
	var theForm = eval ("document." + nForm);
	var msgErr = "";
	var IsNumber = true;
	var ValidChars = "0123456789+.";
	if (nForm == "calcolo1")
	{
		for (i = 0; i <= 4; i++)
		{
			if (theForm.finezza[i].checked == false)
			{
				msgErr = "You must select a type of boat";
			} else {
				msgErr = "";
				break;
			}
		}

		if (theForm.pescaggio.value == "")
		{
			msgErr = "You must enter a correct value in Draft";
			//ffocus = eval("document." + nForm + ".pescaggio");
			ffocus = theForm.pescaggio;
		}

		if (theForm.larghezza.value == "")
		{
			msgErr = "You must enter a correct value in the Width field";
			//ffocus = eval("document." + nForm + ".larghezza");
			ffocus = theForm.larghezza;
		}
		
		if (theForm.lunghezza.value == "")
		{
			msgErr = "You must enter a correct value in Length";
			//ffocus = eval("document." + nForm + ".lunghezza");
			ffocus = theForm.lunghezza;
		}
	}
	
	if (nForm == "calcolo2")
	{
		for (i = 0; i <= 7; i++) {
			if (theForm.tipoImbarcazione[i].checked == false) {
				msgErr = "You must select a type of boat";
			} else {
				msgErr = "";
				break;
			}
		}
	}
	
	if (nForm == "calcolo3")
	{
		for (i = 0; i <= 3; i++) {
			if (theForm.tipoSupporto[i].checked == false) {
				msgErr = "You must select a type of support";
			} else {
				msgErr = "";
				break;
			}
		}
	}
	
	if (msgErr == "")
	{
		theForm.submit();
	} else {
		alert (msgErr);
		ffocus.focus();
		return true;
	}
}
