text: // JavaScript validation regular expressions.
  dc.app.validator = {
  
    // Validate a string based on one of the validator regexes. For example:
    //
    //    dc.app.validator.check('http://...', 'url');
    //
    check : function(string, test) {
      return this[test].test(string);
    },
  
    url   : /^(https?:)\/\/([a-z0-9]([-a-z0-9]*[a-z0-9])?\.)+([a-zA-z]{2,63})(\/[a-zA-Z0-9$_.+!#*(),;\/?:@&~=%-]*)?$/,
  
    email : /^([\w\.\-\+\=]+)@((?:[a-z0-9\-_]+\.)+[a-z]{2,63})$/i
  
  };