function Decrypt(s) 
{
	r='';
    for(i=0;i<s.length;i++)
    {
    	n=s.charCodeAt(i); 
        if (n>=8364) 
        {
    	    n = 128;
	    } 
	    r += String.fromCharCode( n - 3 ); 
    }
    return r;
}  
// affichage d'une adresse mail perturbante pour les moteurs spamm
// input:
//	- name : partie login d'une adresse mail
//	- domain : partie domaine d'une adresse mail (name@domain)
//	- args : argument de mailto (permet d'ajouter un CC, etc...
//	- Text : texte à afficher pour le lien
// Output :
//		sortie html : <a href='mailto:name@domain args> Text </a>
// où name, domain args Text sont les variables d'input
function print_mail(name,domain,Text,args)
{
	a ="pdlowr=";
	m='@';d=unescape(m);
	var nom = name;
	var domaine = domain;
	var aro = nom + d + domaine;
	if (!args) args='';
	if (!Text) Text=aro;
	document.write('<a href="');
  document.write(Decrypt(a));
  document.write(aro);
  document.write(args);
  document.write('">');  
	document.write(Text + '</a>');    
}                 


function showForm(arg) {
	document.getElementById('quotForm').style.display = "none";
	document.getElementById('supForm').style.display = "none";
	document.getElementById(arg).style.display = "block";
}

function synthApproach( obj) {
  if (obj.checked) {
    document.getElementById('blocApproach').style.display = 'block';
  } else {
	  document.getElementById('blocApproach').style.display = 'none';
    for (cpt=1; cpt<7; cpt++) {
			document.getElementById('sasOpt'+cpt).checked = false;
		}
  }
}

function requestType( obj) {
  if (obj.checked) {
    document.getElementById('blocQuotation').style.display = 'block';
  } else {
	  document.getElementById('blocQuotation').style.display = 'none';
    for (cpt=1; cpt<4; cpt++) {
			document.getElementById('cotOpt'+cpt).value = "";
		}
  }
}
