> } else if(user.indexOf("gecko/2004") != -1) { > moz = true; How about Gecko in 2005? You could take the four characters after "gecko/" and check it's a number > 2003. .k