The popup obviously isn’t related to a virus issue - so avast won’t help here. I’d suggest getting some ad blocking software such as AdAware that will (quite reliably) save you from these annoyances.

Vlk