rem: var regEx; for(var i = 1; i < arguments.length; i++) { regEx = new RegExp("(^|\\s)" + arguments[i] + "(\\s|$)", 'g'); element.className = element.className.replace(regEx, '') } 
add: var removeClasses = arguments; $R(1,arguments.length-1).each( function(index) { element.className = element.className.split(' ').reject( function(klass) { return (klass == removeClasses[index]) } ).join(' '); }); 
context:     remove: function(element) {      element = $(element);      var regEx;      for(var i = 1; i < arguments.length; i++) {        regEx = new RegExp("(^|\\s)" + arguments[i] + "(\\s|$)", 'g');        element.className = element.className.replace(regEx, '')      }    },
meta: 5410	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5410/7d101d58400acaff232091485c8e140f0a37cbaf/util.js/clean/railties/html/javascripts/util.js