// JavaScript Document
function redirect(page){
<!--	
	window.location=page;
-->	
}

function Confirm(page, message){
<!--
	if (message == '')
		message = 'Continuer?';
		
	if (confirm(message)) {
		window.location=page;
		return true;
	}
	else {
		return false;
	}
-->	
}

function popup(url, hauteur, largeur)
{
<!--
	window.open (url, '', config='height='+hauteur+', width='+largeur+', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');
-->	
}


/* Détecte la version du navigateur du visiteur */
function isMSIE6()
{
	strColor = "bgcolor=#B44B66";
	NomNavigateur=navigator.appName;
	// VersionNavigateur=parseFloat(navigator.appVersion);
	VersionNavigateur=navigator.appVersion;
	// alert("Vous utilisez " + NomNavigateur + ",\nversion " + VersionNavigateur);	
	intPos = VersionNavigateur.search(/MSIE/);
	if (intPos== -1) {
		// alert("MSIE not found");
	} else {
		VersionNavigateur=VersionNavigateur.substr(intPos+5,3);
		if (VersionNavigateur == "5.5") {
			intPos = VersionNavigateur.search(/SP/);
			if (intPos== -1) {
				// alert("MSIE not found");
				strColor="";
			} else {
				// VersionNavigateur=VersionNavigateur.substr(intPos+2,1)
				strColor="";
			}
		} else {
			if (VersionNavigateur>=6 ) {
				strColor="";
			}
		}
	}

	return strColor;
}

function showGrad(el) {
	if (document.all)
	{
		document.all(el).style.filter = "progid:DXImageTransform.Microsoft.Gradient(GradientType='0', StartColorStr='#FFFFFF', EndColorStr='#CCCCCC')"; 
	}
}

function showGray(el) {
	if (document.all)
	{
		document.all(el).style.filter = "progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#CCCCCC', EndColorStr='#FFFFFF')"; 
	}
}

function fOn(o) { 
	o.style.filter = "progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#B44B66', EndColorStr='#FFFFFF')"; 
}

function fOff(o) {
	o.style.filter = ""; 
}

function eOn(o,c) {
	document.getElementById(o).bgcolor=c; 
}


function aleatoire(N) {
      return (Math.floor((N)*Math.random()+1));
   }

