function emailOk()
		{
		return this.value.match(/^[-_a-zA-Z0-9\.]+@[-_a-zA-Z0-9]+\.[-_a-zA-Z0-9.]+$/)
		}
	window.onload = function() {
		document.forms[0].onsubmit= function ()
			{
			if (this.email.value.match(/^\s*$/)) { this.email.value=''; this.email.focus(); return false;}
			var divErreur = document.all ?document.all['error']:(document.getElementById?document.getElementById('error'):null);
			if (divErreur!=null && !emailOk.apply(this.email))
				{
				divErreur.style.display = 'block';
				window.setTimeout(function(){divErreur.style.display = 'none';},2000);
				this.email.focus();
				return false;
				}
			return true;
			}
		document.forms[0].email.focus();
		}
