


function checkBlank(input){  
 if (input.value == null || input.value.length == 0) 
 {   
	return false;  
}    
else
{
	var str = input.value;  
	var bool = false;
	var i = 0;
	while(i < str.length && !bool)
	{
		var ch = str.substring(i,i+1);    
		bool = ( ch != " ") ;
		i++;
	}
	 
	return (bool);
}
}



function check(form) 
{
   if (checkBlank(form.nom) && checkBlank(form.prenom) && checkBlank(form.mail) && checkBlank(form.tel))
   {
		form.submit();
	}
	else
	{
		alert("Tous les champs munis d'une \351toile ne sont pas remplis! Veuillez tous les remplir s'il vous plait.");
	}
}