I have a form that works fine. The button to send the info has a script that looks like this:

on (release) {
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
} else if (!realname.length) {
EmailStatus = "Please Enter your name before Sending";
} else if (!ContPhone.length) {
EmailStatus = "Please enter your Phone Number";
} else {
loadVariablesNum ("http://www.mysite.com/cgi-bin/FormMail.pl", "0", "POST");
EmailStatus = "Your info has been sent...Thank You!";
}
}
on (release) {
realname = "";
BizAddy = "";
ProjectTitle = "";
ContPhone = "";
Email = "";
Additional = "";
}
This works fine, but there is one problem. If one of the required fields isn't filled out, it doesn't send the form (that's not the problem. The second part of the form is the problem. It blanks the form when the button is pressed. Of course if one of the required fields is blank they must start all over again. I need to write an if statement that says if the form is filled out blank the fields on button press, but if the form is missing a reqired field, don't blank the fields until they are filled out and the button is pressed again. My actionScripting is poor, but as I understand it it should go something like:

If (realname and contphone and Email = "*") then ""
else
nothing
that's the layman deal anyway...could someone that speaks the language better help me out?
I would greatly appreciate any help I can get!
Thanks in advance!
-Potus