Ho fatto una roba tipo questa, se i tre campi sono nulli allora faccio un alerte, se non compare @ dovrei mettere un focus su questo input di testo
function valida()
{
var a = document.gbform.nick.value;
var b = document.gbform.testo.value;
var c = document.gbform.email.value;
if(a==""||b==""||c=="")
{
var w = window.open("pagal.htm", "npa", "width=400,height=400");
return false;
}
if(c.indexOf('@', 0) == -1)
{
alert("Attenzione devi inserire una email valida");
document.getElementById("gbform").email.focus();
return false;
}
return true;
}