ok amico...
qui potrai trovare tutte le informazioni che vuoi per eseguire controlli speciali nei form.
http://web.tiscali.it/no-redirect-ti...m/reg_exp.html
quanto alla tua domanda la soluzione è (o potrebbe essere) la seguente:
var nome = document.frmMail.nome.value;
var nome_reg_expr = /\s/;
if ((nome_reg_expr.test(nome)) || (nome=="") || (nome=="undefined"))
{
alert("Inserire Nome!");
document.frmMail.nome.focus();
return false;
}
Fammi sapere notizie
By Ganryu