function checkForm(w)
{
	if (w.nume.value=='')
    {
    	alert('Va rugam sa introduceti numele');
        return false;
    }
   	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(w.email.value) && w.email.value.length>0 ))
	{
   		alert('Va rugam sa introduceti o adresa de email valida');
		return false;
	}
	if (w.mesaj.value=='')
    {
    	alert('Va rugam sa introduceti mesajul');
        return false;
    }
	if (w.cod.value=='')
    {
    	alert('Va rugam sa introduceti codul de securitate');
        return false;
    }
	return true;
}

