Email

Hi Everyone,
I am pulling my hair over this. Can anyone please help me with this. I have created an inquiry tool. I wanna put two different pop up messages. I have no idea what am i doing wrong but it does not work. I want the user to enter all the required fields. If all the fields are entered then I want the email to be sent. Can anyone please please please look at this code and see whats wrong with this.

on (release)
{

if (pickDateText1 != undefined && pickTimeText1 != undefined && dropDateText1 != undefined && dropTimeText1 != undefined && vehicleTypeText1 != undefined && pickLocationText1 != undefined && dropLocationText1 != undefined && name != undefined && email != undefined && phone != undefined && newslettertext1 != undefined) {

loadVariablesNum (“reservation.php”, 0, “POST”);

import mx.controls.Alert;

myClickHandler = function (evt){
if (evt.detail == Alert.OK){

}

}

Alert.show(“Thank you very much. Your inquiry has been sent”, “Alert”, Alert.OK);

}
else{
Alert.show(“Please Enter all the required Fields”, “Alert”, Alert.OK);

}
}

Thanks so much.