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


function showhideAllDiv(which, howmany, what)
{
var divmainname;
var test = 'divmain1';

	for (var x = 1; x <= 11; x++)
	{
	hideDiv('div'+x);
	divmainname = 'divmain'+x;
	}
	
	showDiv(which);
}

function showhideAllDiv2(which, howmany, what)
{
var divmainname2;

	if (what.className == 'blockRollover')
	{
		for (var x = 1; x <= 6; x++)
		{
		hideDiv('sec'+x);
		divmainname2 = 'divsec'+x;
		document.getElementById(divmainname2).className = 'blockRollout';
		}
		
		showDiv(which);
		what.className = 'blockRollon';
	}
	else
	{
	hideDiv(which);
	what.className = 'blockRollout';
	}
}

// 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;
} 



//<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;
}

function showhideCol(which) {
	if (document.getElementById('col_dates').style.display == String ('none')) {
	document.getElementById(which).style.display = String ('none'); 
	document.getElementById('col_dates').style.display = String ('block'); 
	return false;
	} else {
	document.getElementById('col_dates').style.display = String ('none'); 
	document.getElementById(which).style.display = String ('block'); 
	}
}

function initiateCol(which) {
	document.getElementById('col_dates').style.display = String ('block'); 
	document.getElementById('col_dates').style.display = String ('none'); 
	document.getElementById(which).style.display = String ('block'); 
}


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

function myPopup() {
mynewsletter=window.open('newsletter.php', 'newsletter', 'width=450, height=260, screenX=100, left=100, screenY=200, top=200');
}
