Hi,

I have an example where the author does the following:

function mouseOut() {
var roll = new RegExp ("rollover");
if (this.id.match(roll)) {

What's the advantage of the "new RegExp"...
couldn't you just as well say...
var roll="rollover"?

as another alternative, couldn't you just do the match on the literal, and skip the variable all together (i.e... if (this.id.match("rollover')) {

Thanks,

Jeff