
function checkacontactform() {
		var modele = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]{2,4}$/;
		var err = "Error:\n";
		var email = document.getElementById('resp_mail').value;
		if (!modele.test(email))
			err+=" - Email invalid\n";
		if (document.getElementById('msg').value == '')
			err+=" - No Content\n";
		if (err == "Error:\n")
			return true;
		alert(err);
		return false;	
}

document.write("<style>.a12gris{font-family: Arial;font-size: 12px;color: #333333;}.champ1{background-color:#FFFFFF;border:1px solid #A8BDD8;font-family: Arial;font-size: 11px;color: #333333;}</style>");
document.write("<form name='acontact' method='post' action='http://tools.ifrance.com/contact/contact_send_mail.php?log=dumagny&id=4538206' OnSubmit='return checkacontactform();'>");
document.write("<input type='hidden' value='' name='log'>");
document.write("<input type='hidden' value='"+document.location.href+"' name='return_url'>");
document.write("<table cellspacing='0'  cellpadding='5' style='border:3px solid #CEE5F3;'>");
document.write("<tr>");
document.write("<td class='a12gris'>Votre email</td>");
document.write("<td><input class='champ1' type='text' id='resp_mail' name='resp_mail' size='24' value=''></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td class='a12gris'>Objet</td>");
document.write("<td><input class='champ1' type='text' size='70' id='title' name='title' value=''></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td class='a12gris' valign='top'>Message</td>");
document.write("<td><textarea class='champ1' cols='66' rows='5' name='msg' id='msg'></textarea></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan='2' align='right'><input type='submit' value='Envoyer'></td>");
document.write("</tr>");
document.write("</table>");
document.write("</form>");
