function efface(form,name)
{
	eval ( that = window.document [form] [name]);
	if ( name == 'value1' && that.value == '...' )
		{
		that.value = '';
		}
	else if ( name == 'value2' && that.value == '...' )
		{
		that.value = '';
		}
	else return false;
}

function CheckBoxVerif(nombre,suivant){
	var verif;
	for (i=0;i<=nombre-1;i++){
		if (document.frm1.rep[i].checked == true){
			verif = true;
		}
	}
	if (verif == true){
		document.frm1.action.value='question';document.frm1.now.value=suivant;document.frm1.module.value='sondage';document.frm1.submit();
	}else{
		alert("Vous devez répondre à la question");
	}
}

function CheckBoxVerifValide(nombre){
	var verif;
	for (i=0;i<=nombre-1;i++){
		if (document.frm1.rep[i].checked == true){
			verif = true;
		}
	}
	if (verif == true){
		document.frm1.action.value='enregistrement';document.frm1.now.value='';document.frm1.module.value='sondage';document.frm1.submit();
	}else{
		alert("Vous devez répondre à la question");
	}
}



function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	} else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}

}

function showdiv(id) {
	//safe function to show an element with a specified id 
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

function showhidediv(id){
	
if (document.getElementById) {
		if (document.getElementById(id).style.display == 'none'){
			showdiv(id);	
		}else{
			hidediv(id);

		}
	}else{
		
		if (document.layers) { // Netscape 4
			if (document.id.display == 'none'){
				showdiv(id);
			}else{
				hidediv(id);
			}
		}
		else { // IE 4
			if (document.all.id.style.display == 'none'){
				showdiv(id);	
			}else{
				hidediv(id);
			}
				
		}
		
	}
	
}
