First of all, I am newbie to Java, if you can offer me some help, please help with code, not suggestions.

==================================
Trying to validate and then open the submission result in a pop up
window:


<form name=contact action="contact.cgi" method="POST" target="foo"
onsubmit="return checkFields(); window.open
('', 'foo', 'width=450,height=300,status=yes,resizable=yes,scrollbars
=yes');"

It validates fine but doesn't open the pop up window instead it goes
for a normal new window. If remove the validation part "return
checkFields", it works fine for pop up alone.

Any options that I can perform both functions at the same time?

############## Validation Code in Head ############
<SCRIPT LANGUAGE="JavaScript"

<!-- Begin
function checkFields() {
missinginfo = "";
if (document.contact.name.value == "") {
missinginfo += "\n - Name";
}
if ((document.contact.email.value == "") ||
(document.contact.email.value.indexOf('@') == -1) ||
(document.contact.email.value.indexOf('.') == -1)) {
missinginfo += "\n - Email address";
}
if(document.contact.message.value == "") {
missinginfo += "\n - Message";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}
// End --
</script>