	function Validform(theForm)
		{
			if (theForm.name.value=="")
				{
				alert("Please, fill the field \"Name\".")
				theForm.name.focus();
				return (false);
				}

			if (theForm.company.value == "")
				{
				alert("Please, fill the field \"Company\".");
				theForm.company.focus();
				return (false);
				}


			// -- Vérification du mail --
			if (theForm.email.value == "")
				{
				alert("Please, fill the field \"E-mail\".");
				theForm.email.focus();
				return (false);
				}
				
			if (theForm.email.value != "")
				{
				var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&#402;&#352;&#338;&#381;&#353;&#339;&#382;&#376;ÀÁÂÃÆÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßáâåëìíîïñóôøúýþÿ0123456789-@-_.";
				var checkStr = theForm.email.value;
				var allValid = true;
				for (i = 0;  i < checkStr.length;  i++)
					{
					ch = checkStr.charAt(i);
					for (j = 0;  j < checkOK.length;  j++)
					if (ch == checkOK.charAt(j))
								break;
					if (j == checkOK.length)
						{
						allValid = false;
							break;
						}
					}
			
				if (!allValid)
					{
					alert("Only characters, digits and \".@_-\" in the field \"e-mail\".");
					theForm.email.focus();
					return (false);
					}
			
					adresse = theForm.email.value;
					var place = adresse.indexOf("@",1);
					var point = adresse.indexOf(".",place+1);
					if (!((place > -1)&&(adresse.length >2)&&(point > 1)))
					{
					alert('fill a valid e-mail!!!\r (e.g. : nom@domaine.com)');
					theForm.email.focus();
					return (false);
					}
				}

			// -- Pays
			if (theForm.location.selectedIndex==0)
				{
				alert("Please, select an item in the \"Location\" list.")
				theForm.location.focus();
				return (false);
				}
			
			
			// -- N° de série
			if (theForm.serial.value=="")
				{
				alert("Please, fill the field \"Serial\".")
				theForm.serial.focus();
				return (false);
				}

		return (true);	
	 }