/script(
       $(document).ready(function() {
        ////Validation
        var name = new LiveValidation('name');
            name.add( Validate.Format, { pattern: /^\s*[a-zA-Z0-9,\s]+\s*$/ } );
            name.add( Validate.Length, { minimum: 3, maximum: 12 , failureMessage: "Please enter a valid name" } );
        var type = new LiveValidation('type');
            type.add( Validate.Exclusion, { within: ['notselected', 'Select One'], failureMessage: "Please select an entry from the list" } );
        var difficulty = new LiveValidation('difficulty');
            difficulty.add( Validate.Numericality, { minimum: 1, maximum: 10,  onlyInteger: true, failureMessage: "Must be a number between 1 and 10" });
        var description = new LiveValidation('description');
            description.add( Validate.Format, { pattern: /^\s*[a-zA-Z0-9,\s]+\s*$/ } );
        });
/)