////////////////////////////////////////////////////
// Fichier Javascript principal de l'application  //
////////////////////////////////////////////////////

// trOver => Gestion du roll over sur les tableaux de liste
var oldCol;
function trOver(tr, mode){
	if(mode == 0){
		oldCol = tr.className;
		tr.className = 'liststdtrover';
	}else{
		tr.className = oldCol;
	}
}

var oldColColor;
function trOverColor(tr, mode, Color){
	if(mode == 0){
		oldColColor = tr.style.backgroundColor;
		tr.style.backgroundColor = Color;
	}else{
		tr.style.backgroundColor = oldColColor;
	}
}



//function qui ouvre une popup 
function openPopup(url,name,width,height,complement){
	
	//init complement
	if(!complement) complement = "";
	else complement = ','+complement;
	
	// init size
	if(!width) width = "800";
	if(!height) height = "600";
	
	winPopup = window.open(url,name,'width='+width+',height='+height+',screenX=100,screenY=20,top=30,left=30,resizable=yes,menubar=yes,scrollbars=yes'+complement);
	winPopup.focus();
}


