// JavaScript Document
function courriel(nom,site)
{
	window.location.href = "mailto:" + nom + "@" + site;
}

function popup(fichier, name,largeur, hauteur, scroller, resizable, menus)
{
 	window.open(fichier,name,"toolbar="+menus+",scrollbars="+scroller+",directories=no,status=no,menubar="+menus+",resizable="+resizable+",left=50,right=0,top=50,width="+largeur+",height="+hauteur);
	screen.focus;
}

function changeCSSclass(obj,style)
{
	obj.className = style;
}

function showhide(obj,action)
{
	if(obj) {
		switch(action) {
			case 'show':
				obj.style.display = 'block';
				break;
			case 'hide':
				obj.style.display = 'none';
				break;
			case 'toggle':
				if(obj.style.display == 'none' || obj.style.display == '') {
					obj.style.display = 'block';	
				} else {
					obj.style.display = 'none';	
				}
				break;
		}
		if(typeof ini_hauteur() == 'function') {
			ini_hauteur();
		}
	}
}