/*****************************************************************

    Javascript Validation file for graffiti_form

    Produced automatically by formBuilder

    Source code can be found in:

    contentmanager/formbuider/form_validator.asp

*****************************************************************/



function validate_graffiti_form(frm) {	
    var message = ''; 
    var MyRegExp =  new RegExp; 
    if (frm.Street_name.value == '' ) {message+='Blank Street Name field is not allowed\n';}
	if (frm.townOrVillage.value == '' ) {message+='Blank Town or Village field is not allowed\n';}	
	
	/**
    MyRegExp = /\b^([a-z]|[A-Z]|[0-9]|\_)*$\b/ 
    if ( !MyRegExp.test(frm.townOrVillage.value) ) {message+= 'townOrVillage field must consist of alphanumeric characters\n';}  	
	**/
 	
    if (message!="") { alert('Please note the following:\n'+message); return false; } else { return true;} 
} 
