function Onglet1(Ong1,Ong2) {
document.getElementById(Ong1).className="Ong1_View";
document.getElementById(Ong2).className="Ong1_Hid";}

function Onglet2(Ong1,Ong2) {
document.getElementById(Ong1).className="Ong1_Hid";
document.getElementById(Ong2).className="Ong1_View";}

function view_question(quest,coord) {
if (document.FrmContact.Them_Txt.value!="") {
document.getElementById(quest).className="vi";
document.getElementById(coord).className="vi";
	}
	else {
		document.getElementById(quest).className="Ong1_Hid";
			document.getElementById(coord).className="Ong1_Hid";}
}

/********************Function CONJOINT********************/
function Vi_conjoint(Conjoint_inf) {
	document.getElementById(Conjoint_inf).className="Vi";
	document.frmSante.TypeTxt.value="C";}

		function Hi_conjoint(Conjoint_inf) {
			document.getElementById(Conjoint_inf).className="Hi";
			document.frmSante.TypeTxt.value="A";}

/************SCRIPT FORMULAIRE SANTE**************************************************/

function cond() {
switch (document.frmSante.CiviliteTxt.value) {
    case "Mr":
      document.frmSante.SexeTxt.value="H";
      break;	  
	  case "Mlle":
      document.frmSante.SexeTxt.value="F";
      break;
	  case "Mme":
      document.frmSante.SexeTxt.value="F";
      break;
	  }
}	
function cond2() {
switch (document.frmSante.CiviliteTxt.value) {
    case "Mr":
      document.frmSante.SexeConjointTxt.value="F";
      break;	  
	  case "Mlle":
      document.frmSante.SexeConjointTxt.value="H";
      break;
	  case "Mme":
      document.frmSante.SexeConjointTxt.value="H";
      break;
}}

/************************PREVOYANCE FORMS***************************/
function Vi_Independant(Independant_id,Salarie_id) {
	document.getElementById(Independant_id).className="Vi";
	document.getElementById(Salarie_id).className="Hi";}

		function Vi_Salarie(Independant_id,Salarie_id) {
			document.getElementById(Salarie_id).className="Vi";
			document.getElementById(Independant_id).className="Hi";}

/**********************Nombre de sinistres**********************/
function Vi_NbSinistre(Nb_Sinistres) {
	if (document.frmAuto.nbsinLST.value!="0") {
	document.getElementById(Nb_Sinistres).className="Vi";}
	else {document.getElementById(Nb_Sinistres).className="Hi";}
	}

function Opt_In(FrmContact) { 
	if(FrmContact.optin.checked == true) {FrmContact.optinTxt.value = "O" }
	if(FrmContact.optin.checked == false) {FrmContact.optinTxt.value = "N" }
}