/*****************************************************************

    Javascript Validation file for young_persons_complaint_form

    Produced automatically by formBuilder

    Source code can be found in:

    contentmanager/formbuider/form_validator.asp

*****************************************************************/



function validate_young_persons_complaint_form(frm) {	
    var message = ''; 
    var MyRegExp =  new RegExp; 
    if (frm.My_first_name.value == '' ) {message+='Blank First Name field is not allowed\n';}

    if (frm.My_surname.value == '' ) {message+='Blank Surname is not allowed\n';}

    if (frm.My_age.value == '' ) {message+='Blank Age field is not allowed\n';}

    if (frm.My_address_line_1.value == '' ) {message+='Blank Address Line 1 field is not allowed\n';}
	
	if (frm.My_phone_number.value == '' ) {message+='Blank Phone Number field is not allowed\n';}
	
    if (frm.My_email_address.value == '' ) {message+='Blank Email Address field is not allowed\n';}
	
    if (frm.My_complaint.value == '' ) {message+='Blank Complaint field is not allowed\n';}
 
    if (message!="") { alert('Please note the following:\n'+message); return false; } else { return true;} 
} 

