function check()
{
	
	theform = document.getElementById('com_news');
	if(theform)
	{
		
		thelog = document.getElementById('login');
		thetexte = document.getElementById ('txt');    
		if(thetexte.value!="")
		{
			if(thelog.value!="")
			{
				if(thelog.value.toLowerCase()=="nosh"){
					alert("Nosh c'est pas toi, c'est moi !");
					thelog.focus();
					return;
				}
				else{
					theform.action = "http://www.nosh.fr/inc/commentProcess.php";				
					theform.submit();
				}
			}
			else
			{
				alert('Entrez un Pseudo');
				thelog.focus();  
				return; 
			}
		}	
		else
		{
			alert('Vous devez écrire votre message');
			thetexte.focus();
			return;     
		}
	
	
	}
}

