Hello guys...

i hope you could help me

im using a modal form script in my page

once my page load a modal form will appear and it contains advertisement

my problem is how can i hide the modal form when advertisement was clicked

it is a javascript advertisement (adhitz)

this part of the code

Javascript code: this close when DIV was click
$('.window').click(function () {
$('#mask).hide();
$('.window').hide();
});

this is the modal form pop up
<div id="dialog" class="window" name="window">
<script type="text/javascript" src="http://adhitzads.com/xxxxxx" ></script>
</div>

i hope someone could help me

thanks