1) Script Title:

2) Script URL (on DD):

3) Describe problem:

here's my code that i've inserted into a form in dreamweaver. when i press f12 and do not fill in the required fields in the form it doesn't return an error message .i've left out the script tag.
// Put field checks into the function CheckRequiredFields(), in the order
// you want the fields checked.
//


function CheckRequiredFields() {
var errormessage = new String();
// Put field checks below this point.

if(WithoutContent(document.adedformjs.firstname.value))
{ errormessage += "\n\nYour First Name is required"; }
if(WithoutContent(document.adedformjs.last_name.value))
{ errormessage += "\n\nYour full Surname is required"; }
//if(NoneWithCheck(document.adedform.member))
//{ errormessage += "\n\nPlease check one of the boxes..Yes or No"; }
//if(WithoutContent(document.adedform.phone))
//{ errormessage += "\n\nPlease enter Phone"; }
//if(WithoutContent(document.adedform.email))
//{ errormessage += "\n\nPlease enter your email address"; }


// Put field checks above this point.

if(errormessage.length > 2) {
alert('NOTE:' + errormessage);
return false;
}
return true;
} // end of function CheckRequiredFields()

function WithoutContent(ss) {
if(ss.length > 0) { return false; }
return true;
}

function WithoutContent(ss) {
if(ss.length > 0) { return false; }
return true;
}
//function MpmeWithCheck(ss) {
//if(ss.length > 0) { return false; }
//return true;
//}
//function WithoutContent(ss) {
//if(ss.length > 0) { return false; }
//return true;




//function WithoutSelectionValue(ss) {
//for(var i = 0; i < ss.length; i++) {
// if(ss[i].selected) {
// if(ss[i].value.length) { return false; }
}
}
return true;
}

//-->
</script>

</head>

<body>
<p><font face="Arial, Helvetica, sans-serif" size="2"><font face="Arial, Helvetica, sans-serif" size="2"><b>Adult Education Survey</b></font></P>

<P><font face="Arial, Helvetica, sans-serif" size="2">Greetings from Jean Hanson and Diana Ralph. We’re looking forward to organizing Adult Education this year. In order to deliver what congregants want to learn about, we need input from YOU! We must remind you that time and money are limited, so we’re sure we’ll get many more excellent suggestions than we can use.</FONT></p>
<p><font face="Arial, Helvetica, sans-serif" size="2">We have three questions for you.</font></p>
<P><font face="Arial, Helvetica, sans-serif" size="2">First,<B> how do you like
to learn</B>? You may choose as many as you want, and feel free to add others
we may have missed. Do you prefer:</font></P>

<form name="adedformjs" onSubmit="return CheckRequiredFields()">
<!--<input type="hidden" name="recipient" value="webmaster@templeisraelottawa.ca">-->
<input type="hidden" name="subject" value="Aded Survey Form">
<!--<input type="hidden" name="required" value="firstname,last_name,phone,email">-->