I am receiving the following error on my customers searchresults.html page.

Deprecated: Function eregi() is deprecated in /heerey/include/misc.inc.php on line 376
Specifically, line 376 is the following if (eregi("0$", $count)) {

My host recently upgraded php to the latest version and I realize that this caused this error.

Can someone give me some instructions on what to change to eliminate the errors? Thanks...