function go(destination)
{
	document.location=destination;
}

function goPopUp(destination,haut,large)
{
	var fen = window.open (destination, 'Partenaires', 'height='+haut+', width='+large+',left=0,top=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
	fen.focus();
}
function goPopUpResizable(destination)
{
	var fen = window.open (destination, 'Fenetre', 'height=350, width=500,left=0,top=0, toolbar=yes, menubar=yes, scrollbars=no, resizable=yes, location=yes, directories=no, status=yes')
	fen.focus();
}
function goPopUpPlan(destination)
{
	var fenPlan = window.open (destination, 'Plan', 'height=400, width=600,left=0,top=0, toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=yes, directories=no, status=no')
	fenPlan.focus();
}

function rollCouleur(obj,coulOver, coulOut)
{
	obj.style.color	= coulOver;
	obj.bgColor		= coulOut;
	obj.style.cursor	= "hand";
}
function rollCouleurTrait(obj,coul)
{
	obj.borderLeft		= coul;
	obj.borderBottom	= coul;
	obj.borderRight		= coul;
}

function calque(calqueHidden, calqueVisible){
	document.getElementById(calqueHidden).style.visibility='hidden';
	document.getElementById(calqueVisible).style.visibility='visible';
}

function majusculeLettre1(obj) {
    var m = obj.value.charAt(0).toUpperCase() + obj.value.substring(1).toLowerCase();
    obj.value = m;
}
function majuscule(obj) {
	obj.value = obj.value.toUpperCase();
}
function minuscule(obj) {
	obj.value = obj.value.toLowerCase();
}

function email1(s)
{
	var i=0;
	var cpt=0;
	var sLength = s.length;


	while (i < sLength)
	{ 
		if (s.charAt(i)=="@") {cpt = 1;}
		i++ ;
	}

	if (cpt==1) 
		return true;
	else 
		return false;
}
function email2(s)
{
	var sLength = s.length;
	if ((s.charAt(sLength-4)==".") || (s.charAt(sLength-3)==".")) 
		return true;
	else 
		return false;
}
function test_email(mail){
	if(email1(mail)==false || email2(mail)==false) 
		return false

	return true;
}