Text input box help

Hi all, I have asked a couple of questions regarding php email forms. I sort of have it working using the example from bigjolt the only thing I cannot get working is when the text boxes that display the message when the entry isnt valid show the message. On the one for down load the user can click the text and it goes blank again. I cannot get this to happen. hope someone can help. I presume it is somwhere in the code below that will need changing.

thanks in advance

fscommand (“allowscale”, “false”);
//
// set some variables
//
mailform = “mailform.php”;
confirm = “please wait for confirmation …”
action = “send”;
error1 = “ERROR! Address not valid”;
error2 = “ERROR! Name not valid”;
//
// and focus on variable fname
//
Selection.setFocus(“fname”);
//
// validate email function
//
function validate (address) {
if (address.length>=7) {
if (address.indexOf("@")>0) {
if ((address.indexOf("@")+2)<address.lastIndexOf(".")) {
if (address.lastIndexOf(".")<(address.length-2)) {
return (true);
}
}
}
}
return (false);
}
//
//form check
//
function formcheck () {
if ((((email == null)) || (email.length<1)) || (email == “ERROR! Address not valid”)) {
email = error1;
action = “”;
}
if (!validate(email)) {
email = error1;
action = “”;
}
if ((fname == null) || (fname == “”)) {
fname = error2;
action = “”;
}
if ((lname == null) || (lname == “”)) {
lname = error2;
action = “”;
}
if ((validate(email)) && (email != error1) && (fname != “”) && (fname != error2) && (lname != “”) && (lname != error2)) {
action = “send”;
loadVariablesNum (mailform, 0, “POST”);
gotoAndPlay (“wait”);
}
}
stop ();