
function move_clr(obj,clr) { obj.style.backgroundColor = clr }

// Suppression d'un objet
function del(url_redir) {
 var msg_que="Attention,\n vous êtes sur le point d'effacer des données !\n Cette action est irréversible !";

 if(confirm(msg_que)) {
	window.location.href = url_redir
	}
 else {
 	return;
 	//window.location.href = window.location.href
 	}
}

var ecran			= screen.height;
var hauteur_ecran	= 480
if (ecran==600) hauteur_ecran = 560
if (ecran>600)	hauteur_ecran = 600

// sem vendredi 14 novembre 2003 09:57:51
var largeur			= screen.width;
if (largeur==800) largeur_ecran = 760
if (largeur>800) largeur_ecran = 800

/* width = largeur + 17 */ 
var popup_scroll 	= "toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=0,width=467,height="+ hauteur_ecran +",top=0,left=0,status=0";

var popup_scrollun 	= "toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=0,width=580,height="+ hauteur_ecran +",top=0,left=0,status=0";

var popup_scroll2 	= "toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=200,height=200,top=0,left=0,status=0";
var popup_scroll3 	= "toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=640,height="+ hauteur_ecran +",top=0,left=0,status=0";

// sem vendredi 14 novembre 2003 09:57:51
var popup_scroll4 	= "toolbar=0,location=0,directories=0,menuBar=1,scrollbars=1,resizable=1,width="+ largeur_ecran +",height="+ hauteur_ecran +",top=0,left=0,status=0";

// Ouverture du bon de commande
function bdc(page) {
	fiche = open(page,'Fiche',popup_scroll4);
	if (navigator.appVersion.substring(1,0) >= "3")
    {
    fiche.focus (); 
    }
}

// Ouverture du bon de commande
function newsletter(page) {
	fiche = open(page,'ARCNEWSLETTER',popup_scroll4);
	if (navigator.appVersion.substring(1,0) >= "3")
    {
    fiche.focus (); 
    }
}

// Ouverture d'un popup
function ouvrir(page) {
	fiche = open(page,'Fiche',popup_scroll);
	if (navigator.appVersion.substring(1,0) >= "3")
    {
    fiche.focus (); 
    }
}
function ouvrir1(page) {
	fiche = open(page,'Fiche',popup_scrollun);
	if (navigator.appVersion.substring(1,0) >= "3")
    {
    fiche.focus (); 
    }
}
function ouvrir2(page) {
	fiche = open(page,'Search',popup_scroll);
	if (navigator.appVersion.substring(1,0) >= "3")
    {
    fiche.focus (); 
    }
}
function ouvrir3(page) {
	fiche = open(page,'Solutions',popup_scroll4);
	if (navigator.appVersion.substring(1,0) >= "3")
    {
    fiche.focus (); 
    }
}
// Ouverture Help
function help(page) {
	fiche = open(page,'Calendar',popup_scroll2);
	if (navigator.appVersion.substring(1,0) >= "3")
    {
    fiche.focus (); 
    }
}

// Ouverture calendar
function calendar(page) {
	fiche = open(page,'Calendar',popup_scroll2);
	if (navigator.appVersion.substring(1,0) >= "3")
    {
    fiche.focus (); 
    }
}

// ouverture Bon de Parution
function ouvrir_bp(page) {
	fiche = open(page,'Calendar',popup_scroll3);
	if (navigator.appVersion.substring(1,0) >= "3")
    {
    fiche.focus (); 
    }
}

// Gestion des layers tous navigateurs
function affObject(ID) {
   if (document.getElementById) {
		var visibleVar="visible";
		return eval('document.getElementById("'+ID+'").style.visibility = "'+ visibleVar +'"');
   }
   if (document.layers) {
		var visibleVar="show";
		return eval('document.'+ID+'.visibility = '+ visibleVar);
   }
   if (document.all) {
		var visibleVar="visible";
		return eval('document.all.'+ID+'.style.visibility = '+ visibleVar);
   }
}

function masqueObject(ID) {
   if (document.getElementById) {
		var visibleVar="hidden";
		return eval('document.getElementById("'+ID+'").style.visibility = "'+ visibleVar +'"');
   }
   if (document.layers) {
		var visibleVar="hidden";
		return eval('document.'+ID+'.visibility = '+ visibleVar);
   }
   if (document.all) {
		var visibleVar="hidden";
		return eval('document.all.'+ID+'.style.visibility = '+ visibleVar);
   }
}
