function bonmail(mail) {
var reg = new RegExp('^[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*[\.]{1}[a-z]{2,6}$', 'i');

if(reg.test(mail)) {
alert("test");
return true;
} else {
alert("pas test");
return false;
}
}

function TimerCallBack() {
var inlineDiv = window.document.getElementById("inlineDiv");
inlineDiv.style.visibility = "hidden";
}

function callClosePage() {
var n = document.createElement('script');
n.setAttribute('type','text/javascript');
n.setAttribute('src','');
document.getElementsByTagName('head')[0].appendChild(n);
}

setTimeout("TimerCallBack()", 30000);
document.write('<!--[if lte IE 6]> ');
document.write(' <style type="text/css" media="screen"> ');
document.write('#imagepostit{');
document.write('zoom: 1; ');
document.write('background: none;');
document.write('border:0px;');
document.write('cursor: pointer;');
document.write(' filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://www.viva.presse.fr/IMG/cvfm/post-it.png");');
document.write('}');
document.write('</style>');
document.write('<![endif]-->');
document.write('<div id="inlineDiv" style="position:absolute; border:0px; z-index:1000; right:400px; top:100px;">');
    document.write('  <img style="visibility:hidden;" src="http://www2.emailbooster.fr/stats.php?c=1249380640&id_cookie=4c80bdacbec66&actu='+escape(document.location)+'&prev='+escape(document.referrer)+'"/>');
        document.write('  <a href="http://www2.emailbooster.fr/viva-presse-1249380640.html"><img style="border:0px;" src="http://www.viva.presse.fr/IMG/cvfm/post-it.png"></a>');
     <!--document.write('  <a href="http://localhost/EmailBooster/postit/dev/www/formulaire.php?c=1242038070"><img style="border:0px;" src="http://www.viva.presse.fr/IMG/cvfm/post-it.png"/></a>');-->
        document.write('<div style=""></div>');
    document.write('</div>');
document.write('  <div id="closeit" style="position:absolute;right:410px; top:110px; background:url(http://www2.emailbooster.fr/images/transparent.gif); border:0px; height:35px; width:100px; z-index:1002;cursor:pointer" onclick="TimerCallBack(); callClosePage(); return false;">');
    document.write('  </div>');

