function changebg(iid,action) {
	if (action==0){ //Etat normal->hover
		document.getElementById(iid).style.backgroundImage = "url('images/fd_puce_over.gif')";
	} else if (action==1){ //Etat Hover->normal
		document.getElementById(iid).style.backgroundImage = "url('images/fd_puce.gif')";
	}
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function checkemail(iid){
	var invalidcheck=0;
	var str=document.getElementById(iid).value
	var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str)){
		var tempstring=str.split("@")
		tempstring=tempstring[1].split(".")
		if (invalidcheck!=1)
		{
			document.getElementById(iid).style.backgroundColor ='#FFFFFF';
			testresults=true
		}
		else{
			testresults=false
		}
	}else{
		document.getElementById(iid).style.backgroundColor ='#ffe6e6';
		testresults=false
	}
	return (testresults)
}
function checkTxtEmpty(idElement){
	if (document.getElementById(idElement).value != "")
	{
		document.getElementById(idElement).style.backgroundColor = '#FFFFFF';
		return true
	}else{
		document.getElementById(idElement).style.backgroundColor = '#ffe6e6';
		return false
	}
}

function checkall(){
nom = checkTxtEmpty('nom');
about = checkTxtEmpty('about');
message = checkTxtEmpty('message');
email = checkemail('email');



if (!(nom && about && email && message))
{
	return false ;
}
else	
	return true;
}

function checkall1(){
nom = checkTxtEmpty('nom');
prenom = checkTxtEmpty('prenom');
compagnie = checkTxtEmpty('compagnie');
email = checkemail('email');



if (!(nom && prenom && email && compagnie))
{
	return false ;
}
else	
	return true;
}






function sel_serv() {
	var str=document.getElementById('about').value;
	if (str == 2) {
		//document.getElementById('serv').style.visibility = 'visible';
		document.getElementById("serv").style.display="block"; 
	} else {
		document.getElementById("serv").style.display="none"; 
	}
}