function openNewWindow( url, title, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable) {
// Définition des variables
var x = "";
var newwindowc = "";
var param = 'toolbar='+toolbar+',location='+location+',directories='+directories+',status='+status+',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;
var param2 = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
if( width != "0" ) {
	x = ",width="+width;
	}
if( height != "0" ) {
	x = x + ",height="+height;
	}
        
if ((width == "0") && (height == "0")) {
	newwindowc = window.open(url, title, param2 + x);
	}
	else {
	newwindowc = window.open(url, title, param + x);
	}
}
function openReportDKV() {
openNewWindow( '../dkv/financial_report/', 'ReportDKV', 800, 600, 'no', 'no', 'no', 'no', 'no', 'yes', 'yes');
}
function openMenu(s_CodeMenu, s_Url, s_Log) {
/* Cette fonction gère l'action de changement de menu
	s_CodeMenu = Code du Menu
	s_Url = Url à ouvrir
	s_Log = Log de l'action (0 | 1)
*/
// Changement de menu
if (s_Url == '') {
	return;
	}

i_Pos = s_Url.toLowerCase().indexOf('javascript:');
i_sizeDep = i_Pos + 11;
s_Fonction = s_Url.substr(i_sizeDep, s_Url.length - i_sizeDep);
if (i_Pos > -1) {	
	eval(s_Fonction);
	}
else {
	contentPortal.location = s_Url;
	}
// Log du menu le cas echéant
if (s_Log == '1') {
	logPortal.location = s_BasepathPortail + '/logme.php?id=' + s_CodeMenu;
	}
}
function openInfoDemo(s_Txt) {
var div_InfoDemo = self.document.getElementById('infoDemo');
var s_Value = '';
if (s_Txt != '') {
	s_Value+='<table border="1" cellspacing="0" cellpadding="1" bordercolor="#FFFFFF">';
	s_Value+='<tr>';
	s_Value+='<td Class="txt_blanc" bgcolor="#CD5C3D" align="center" valign="middle">&nbsp;<br>'+s_Txt+'<br/>&nbsp;</td>';
	s_Value+='</td>';
	s_Value+='</tr>';
	s_Value+='</table>';	
	}
div_InfoDemo.innerHTML = s_Value;
}