
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: Verdana;font-size: 15px;color: #ff9900;}.champ1{background-color:#cc0000;border:3px double #cc6600;font-family: Verdana;font-size: 14px;color: #000000;}</style>");
document.write("<form name='acontact' method='post' action='http://tools.ifrance.com/contact/contact_send_mail.php?log=alaffichecinema&id=4644758' 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='5' cellpadding='0' style='border:12px groove #ffff00;'>");
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='50' 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='150' rows='17' 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>");
