Hi,

I get an error in this function in IE 5.0, while they are run fine in NN4 and Opera5:

function check_number(numbertotest) {
var reg=RegExp("^[0-9]+$","");
return reg.test(numbertotest);
}


Any ideas what I am doing wrong ?
PS. The modification
var reg=RegExp('/^[0-9]+$/',"")
does not work either.