I have a exit popup on my site and when some people come to my site from like yahoo or google i don't want those people to get the popup is there a way to put urls in the Java script so it will know not to open a exit window when the referring url is google or yahoo?

If Java script can't do it what can?

Thanks