Flash Email Form

I have followed the tutorial to create an email form in flash, however when i press the send button, nothing happens. The script i have on the button is…

on (release) {

    if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
    emailstatus = "PLEASE ENTER A VALID EMAIL ADDRESS";
} 

else if (!name.length) {
    emailstatus = "PLEASE ENTER YOUR NAME";
} 

else if (!message.length) {
    emailstatus = "PLEASE ENTER A MESSAGE";
} 

else {
    form.loadVariables("contactus.php", "POST");
    emailstatus = "SENDING.....";
    

}

}

as you can see, there is extra script which i found in another tutorial to make sure that people fill in the correct information and if they dont then the page tells them to. The script i have on the form is…

onClipEvent(data){

_root.gotoAndPlay(466);

}

i wasnt clear on where the button should be placed so it is not inside the form movie clip it is inside the same movie clip as the form movie clip is placed, if that makes sense.

How can I get it to work?

Will