function validateForm(form) {
var errors='';

    if (!/^[A-Za-z0-9\-]{1,50}$/.test(form.name.value))
        {errors += '- Please enter a Your Name.\n';}

    if (!/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\"[^\"\\]+\"))@((\[(([0-1]?[0-9]{1,2}\.)|(2[0-4][0-9]\.)|(25[0-5]\.)){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(form.email.value))
        {errors += '- Please enter a correct email address.\n';}
//"

    if (errors != '')
        {alert('The following error(s) occurred:\n'+ errors);}

    return (errors == '');

}