// ========================= DISPLAY/HIDE SPECIFIC DIV ============================


function showhideAllDiv(which, howmany)
{
var divmainname;
var whichstatus;

whichstatus = document.getElementById(which).style.display
	// si l'&eacute;l&eacute;ment cliqu&eacute; est en display = none
		for (var x = 1; x <= howmany; x++)
		{
		hideDiv('div_'+x);
		//divmainname = 'divmain_'+groupid+'_'+x;
		//document.getElementById(divmainname).className = 'blockRollout';
		}
	
	document.getElementById(which).style.display = String ('block');
	
	// si l'&eacute;l&eacute;ment cliqu&eacute; est deja en display = block
	if(whichstatus == String ('none'))
	{
	
	//what.className = 'blockRollon';
	}	
		
	
}


//<div id="show_pass" style="display:none" >
function displayDiv(which) {
	if (document.getElementById(which).style.display == String('none'))
	{
	document.getElementById(which).style.display = String ('block');
	}
else
	{
	document.getElementById(which).style.display = String ('none');
	}

return false;
}




// DISPLAY DIV WITH IMG CHANGE
function displayDivImg(which,img1,img2) {
	var icon = 'icon_'+which;
if (document.getElementById(which).style.display == String('none'))
	{
	document.getElementById(which).style.display = String ('block');
	document[icon].src=img1;
	}
else
	{
	document.getElementById(which).style.display = String ('none');
	document[icon].src=img2;
	}

return false;
}

// display hidden text USE: <INPUT ou A onClick="showDiv(ID_de_la_DIV); return false;">
function showDiv(which) {
	document.getElementById(which).style.display = String ('block');
	return false;
}
function hideDiv(which) { 
	document.getElementById(which).style.display = String ('none'); 
	return false;
} 



// ======================== VERIFICATION CHAMP VIDE ================================
function checkEmpty(formname,forminput) {
	
   if ((formname.forminput.value.length==0) ||  (formname.forminput.value==null)) 
   {	   return false;   }
   else   
   {	   return true;   }
}