Having a pop-up window when fields arn't filled in

hey all,

i have 2 fields and if these fields arn’t filled in and the user hits submit i need a popup window to appear and just say “sorry you must complete the form to continue”
yet when i try this it just keeps going to the next frame instead of showing the popup menu :S:S
This code is on my submit button
here is my code so far:

    if (fname != "" && email != "") {
        status = "Begin Login Process - Wait...";
        loadVariablesNum("reglogin.php", 0, "POST");
        //loadVariablesNum("register2.php", 0, "POST");
        loadVariablesNum("questions2.php", 0, "GET");
        loadVariablesNum("answers.php", 0, "GET");
        _root.gotoAndStop("quiz");
        _root.details._alpha = 100;
    } else {
        _root.details._alpha = 0;
    }
}

any ideas why this isn’t working or how to get it working??

cheers :slight_smile: