How do I stop sending blank forms

this is what IVe been using

on (release) {
if ((name.length==0)or(email.length==0)or(message1.le ngth==0)){
_root.error_mail.gotoAndStop(2);
}
else
{
form.loadVariables(“http://www.djnow.co.uk/email.php”, “POST”);
}
}

it still sends the email any way Ive tried “” and or < > just clutching at straws some one please help me!!!