function confirm_logout() {
	if(confirm('Voulez vous vraiment quitter l\'administration ?')) {
		document.location.href = 'index.php?todo=logout';
	}
}

function open_popup(s_url) {
	window.open(s_url, 'popup', 'resizable=no,toolbar=no,statusbar=no,scrollbars=no,width=600,height=800');
}

function open_url(param) {
	var sep_pos = param.indexOf(',', 0);
	var url = param.substring(0, sep_pos);
	var win = param.substr(sep_pos+1, param.length);
	if(win=='self') {
		document.location.href = url;
	} else {
		var c_date = new Date();
		window.open(url, "popup"+c_date.getTime(), "directories=no, location=no, menubar=no, resizable= yes, scrollbars=yes, status=yes, toolbar=no, width=900, height=500");
	}
}

