function hideInfo(){
	document.getElementById("req-info").style.visibility="hidden";
	document.getElementById("req-info").style.position="absolute";
}
function showInfo(){
	document.getElementById("req-info").style.visibility="visible";
	document.getElementById("req-info").style.position="relative";
}
function writeInfo(texte){
	document.getElementById("info").innerHTML = texte;
}
function testForm(){
	msg_error = "";
	if(document.contact.name.value == ""){
		msg_error += "<li>your name</li>";
	}
	if(document.contact.company.value == ""){
		msg_error += "<li>your Company</li>";
	}
	if(document.contact.mail.value == ""){
		msg_error += "<li>your E-mail</li>";
	}else{
		var regex = /^([a-zA-Z0-9_\.\'\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		testemail = regex.test(document.contact.mail.value);
		if(!testemail){
			msg_error += "<li>your valid E-mail</li>";
			error = 1; 
		}	
	}
	if(msg_error != ""){
		texte = "<p>Please fill in:</p><ul>"+msg_error+"</ul>";
		writeInfo(texte);
		showInfo()
	}else{
		document.contact.submit();
	}
}
function resetForm(){
	hideInfo();
	document.contact.reset();
}