function showClickToCall() {
	var oElem = document.getElementById('form-click-to-call');
	oElem.style.display = 'block';
}//End function


function hideClickToCall() {
	var oElem = document.getElementById('form-click-to-call');
	oElem.style.display = 'none';
}//End function


function isTelDigit(sValue) {
	var RegExp = /^[0-9]{2}$/
	
	return RegExp.test(sValue);
	
}//End function

function checkFormClickToCall(bSend) {

	var oForm = document.getElementById('formClickToCall');
	
	if(oForm.nom.value.length == 0) {
		alert("Vous devez saisir votre nom.");
		oForm.nom.focus();
		return false;
	}//End if
	else if(oForm.prenom.value.length == 0) {
		alert("Vous devez saisir votre prénom.");
		oForm.prenom.focus();
		return false;
	}//End else if
	else if( !isTelDigit(oForm.tel1.value) ) {
		alert("Votre saisie ne correspond pas à un numéro de téléphone valide.");
		oForm.tel1.focus();
		return false;
	}//End else if
	else if( !isTelDigit(oForm.tel2.value) ) {
		alert("Votre saisie ne correspond pas à un numéro de téléphone valide.");
		oForm.tel2.focus();
		return false;
	}//End else if
	else if( !isTelDigit(oForm.tel3.value) ) {
		alert("Votre saisie ne correspond pas à un numéro de téléphone valide.");
		oForm.tel3.focus();
		return false;
	}//End else if
	else if( !isTelDigit(oForm.tel4.value) ) {
		alert("Votre saisie ne correspond pas à un numéro de téléphone valide.");
		oForm.tel4.focus();
		return false;
	}//End else if
	else if( !isTelDigit(oForm.tel5.value) ) {
		alert("Votre saisie ne correspond pas à un numéro de téléphone valide.");
		oForm.tel5.focus();
		return false;
	}//End else if
	
	if(bSend){
		oForm.submit();
	}//end if
	
	return true;	
	
}//End function

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function btClickToCall_DoFSCommand(command, args) {
    var boutonObj = isInternetExplorer ? document.all.btClickToCall: document.btClickToCall;

    switch(command){
        case 'showFormulaire':
            //alert('showClickToCall <- alert à supprimer');
            showClickToCall() ;
        break;
    }//end switch
}//end function

function returnVoid() {

}//end function
	
