#2 removed depricated eregi() replaced with preg_match