function execForm(formId)
{
	document.getElementById(formId).submit();
}

function execsearch(formId , page)
{
	document.getElementById('search_page').value=page;
	execForm(formId);
}

function execcontact(formId)
{
	if(verif_Mail())
	{
		execForm(formId);
	}
}

function verif_Mail()
{	
	var valide = false ;
	var email = document.getElementById("contact_mail").value;
	
		if(email == '' )
		{
			document.getElementById("label_email").style.color = "#FF0000"; 
			valide =  false;
		}
	else
		if(!isEmail3(email))
		{
			document.getElementById("label_email").style.color = "#FF0000"; 
			valide =  false;
		}
	else
		{
			document.getElementById("label_email").style.color = "#000000"; 
			valide =  true;
		}

	return valide ;
}


function isEmail3(my_email) 
{
	var new_string = new String(my_email);
	if (!new_string.match('^[-_\.0-9a-zA-Z]{1,}@[-_\.0-9a-zA-Z]{1,}[\.][0-9a-zA-Z]{2,}$')) 
	{
			return false;
	}
	else 
	{
			return true;
	}
}