Adbanner modal dialog function and validate modal.