I have this javascript:

```
document.write('<a HREF="javascript:return validateForm();' + thisform + '.submit();void(0);"');

```

I also have the following function, referencing a form on my website.

```
function validateForm()
{
var y=document.forms["myForm"]["email"].value;

if (y==null || y=="")    {
alert('Please enter your email to continue.');
return false;
    }
}

```

Now how do I get that return in the HREF to work!? It won't return false in the case that the input equals "" and validateform() returns false.