window.onload = function() 
{
	aideSaisie();
}

function aideSaisie()
{
	var e;
	var titre;
	var val;
	var balise		= new Array("input" , "textarea");

	for (var i=0 ; i<balise.length ; i++)
	{
		e = document.getElementsByTagName( balise[i] );

		for (var j=0 ; j<e.length ; j++)
		{
			titre = e[j].title;
			val   = e[j].value;

			if ((titre!=null && titre!='') && (val=='' || val==null))
			{
				e[j].value = titre;

				e[j].onfocus = function() { if (this.value == this.title) { this.value=''; } }
				e[j].onblur  = function() { if (this.value == '') { this.value=this.title; } }
			}
		}
	}
}


function VerifFormulaireEmail(pagevalidation) {
var new_string = new String(document.formemail.email_abo.value);
   if (!new_string.match('^[-_\.0-9a-zA-Z]{1,}@[-_\.0-9a-zA-Z]{1,}[\.][0-9a-zA-Z]{2,}$')) 
      {
        alert("L'email indiqué est incorrect.");
		document.formemail.email_abo.focus();
		document.formemail.email_abo.style.background="#CCCCCC";
		return false;
      }
        else 
	  {
        document.formemail.action=validation;
		document.formemail.submit();
      }
}
