The following is an example I have on my site at:
http://www.huntingground.freeserve.c...s/validate.htm
It really depends on the layout of your form as to how the script will be written.
If you need any more help let me know, I will where I can....help
<SCRIPT>
<!--
function check(){
var correct = true
if (document.Validate.name.value == ""){
correct = false; alert("Please Enter Your Name?")
}
if (document.Validate.email.value == ""){
correct = false; alert("Please Enter Your E-Mail Address?")
}
if(document.Validate.email.value.indexOf("@")==(-1)||document.Validate.email.value.indexOf(".")==(-1)){
correct=false; alert("Invalid email address")
}
if (document.Validate.comment.value == ""){
correct = false; alert("And Your Message Is?")
}
// Three button example
if(document.Validate.subject[0].checked==false&&document.Validate.subject[1].checked==false&&document.Validate.subject[2].checked==false){
correct=false;alert("Please select a language.")
}
// Two button example
if(document.Validate.number[0].checked==false&&document.Validate.number[1].checked==false){
correct=false;alert("Please select a number.")
}
if (correct){
alert("Thank you I will reply as soon as possible.")
}
return correct
}
//-->
</SCRIPT>
Add onsubmit="return check()" to the opening form tag
Below is the form that I have used for the above example.
<form name=Validate onsubmit="return check()">
<P>Name <input type=text name=name>
<P>E-Mail <input type=text name=email>
<P>Comment<Textarea name=comment></textarea>
English<INPUT type="radio" name="subject" value="English">
French<INPUT type="radio" name="subject" value="French">
Other<INPUT type="radio" name="subject" value="German">
One<INPUT type="radio" name="number" value="One">
Two<INPUT type="radio" name="number" value="Two">
<input type=submit value=Submit>
</form>