function send_form_contact() {
	
	var v_return_code = true;
	
	if (document.getElementById("t_lastname")) {
		if ( (document.getElementById("t_lastname").value.length<=0) || (trim(document.getElementById("t_lastname").value.toUpperCase()) == "NOM") ) {			
			document.getElementById("t_lastname").value = "NOM";
			document.getElementById("t_lastname").style.color = "#ff0000";
			v_return_code = false;
		}
	}
	if (document.getElementById("t_firstname")) {
		if ( (document.getElementById("t_firstname").value.length<=0) || (trim(document.getElementById("t_firstname").value.toUpperCase()) == "PRENOM") ) {			
			document.getElementById("t_firstname").value = "PRENOM";
			document.getElementById("t_firstname").style.color = "#ff0000";
			v_return_code = false;
		}
	}
	if (document.getElementById("t_phone")) {
		if ( (document.getElementById("t_phone").value.length<=0) || (trim(document.getElementById("t_phone").value.toUpperCase()) == "TELEPHONE FIXE") ) {			
			document.getElementById("t_phone").value = "TELEPHONE FIXE";
			document.getElementById("t_phone").style.color = "#ff0000";
			v_return_code = false;
		}
	}	
	if (document.getElementById("t_city")) {
		if ( (document.getElementById("t_city").value.length<=0) || (trim(document.getElementById("t_city").value.toUpperCase()) == "CP / VILLE") ) {			
			document.getElementById("t_city").value = "CP / VILLE";
			document.getElementById("t_city").style.color = "#ff0000";
			v_return_code = false;
		}
	}	
	if (document.getElementById("t_message")) {
		if ( (document.getElementById("t_message").value.length<=0) || (trim(document.getElementById("t_message").value.toUpperCase()) == "VOTRE DEMANDE :") ) {			
			document.getElementById("t_message").value = "VOTRE DEMANDE :";
			document.getElementById("t_message").style.color = "#ff0000";
			v_return_code = false;
		}
	}		
	if (!v_return_code) 
		alert(jstring("Merci de renseigner tous les champs obligatoires"));
	else {
		if (document.getElementById("flag_send")) document.getElementById("flag_send").value = "1";
		if (document.getElementById("f_contact")) document.getElementById("f_contact").submit();
	}
	

	return v_return_code;
}

function focus_control(v_control) {
	
	
	switch(v_control.id.toUpperCase()) {
		
		case "T_LASTNAME": if (trim(v_control.value.toUpperCase()) == "NOM") { v_control.value = ""; v_control.style.color = "#000000";  }	break;
		case "T_FIRSTNAME": if (trim(v_control.value.toUpperCase()) == "PRENOM") { v_control.value = ""; v_control.style.color = "#000000";  }	break;
		case "T_PHONE": if (trim(v_control.value.toUpperCase()) == "TELEPHONE FIXE") { v_control.value = ""; v_control.style.color = "#000000";  }	break;
		case "T_MOBILE": if (trim(v_control.value.toUpperCase()) == "TELEPHONE PORTABLE") { v_control.value = ""; v_control.style.color = "#000000";  }	break;
		case "T_ADDRESS1": if (trim(v_control.value.toUpperCase()) == "ADRESSE") { v_control.value = ""; v_control.style.color = "#000000";  }	break;
		case "T_EMAIL": if (trim(v_control.value.toUpperCase()) == "E-MAIL") { v_control.value = ""; v_control.style.color = "#000000";  }	break;
		case "T_CITY": if (trim(v_control.value.toUpperCase()) == "CP / VILLE") { v_control.value = ""; v_control.style.color = "#000000";  }	break;
		case "T_MESSAGE": if (trim(v_control.value.toUpperCase()) == "VOTRE DEMANDE :") { v_control.value = ""; v_control.style.color = "#000000";  }	break;
		
		case "T_ANTISPAM": if (trim(v_control.value.toUpperCase()) == "RECOPIEZ LE TEXTE ICI") { v_control.value = ""; v_control.style.color = "#000000";  }	break;		
	}	
}


function blur_control(v_control) {	
	
	switch(v_control.id.toUpperCase()) {
		
		case "T_LASTNAME": if ((v_control.value.length<=0)) { v_control.value = "NOM"; v_control.style.color = "#000000";  }	break;
		case "T_FIRSTNAME": if ((v_control.value.length<=0)) { v_control.value = "PRENOM"; v_control.style.color = "#000000";  }	break;
		case "T_PHONE": if ((v_control.value.length<=0)) { v_control.value = "TELEPHONE FIXE"; v_control.style.color = "#000000";  }	break;
		case "T_MOBILE": if ((v_control.value.length<=0)) { v_control.value = "TELEPHONE PORTABLE"; v_control.style.color = "#000000";  }	break;
		case "T_ADDRESS1": if ((v_control.value.length<=0)) { v_control.value = "ADRESSE"; v_control.style.color = "#000000";  }	break;
		case "T_EMAIL": if ((v_control.value.length<=0)) { v_control.value = "E-MAIL"; v_control.style.color = "#000000";  }	break;
		case "T_CITY": if ((v_control.value.length<=0)) { v_control.value = "CP / VILLE"; v_control.style.color = "#000000";  }	break;
		case "T_MESSAGE": if ((v_control.value.length<=0)) { v_control.value = "VOTRE DEMANDE :"; v_control.style.color = "#000000";  }	break;
		
		case "T_ANTISPAM": if ((v_control.value.length<=0)) { v_control.value = "RECOPIEZ LE TEXTE ICI"; v_control.style.color = "#000000";  }	break;		
	}	
}
