var win;
function copyrightSameFolder(){
	if (win && !win.closed) {
		win.close();
	}
	file = 'copyright.htm';
	
	win = window.open(file, '', 'resizable=yes,scrollbars=yes,toolbar=no,titlebar=no,menubar=no,location=no,width=560,height=500');

}
function copyright(){
	if (win && !win.closed) {
		win.close();
	}
	file = '../copyright.htm';
	
	win = window.open(file, '', 'resizable=yes,scrollbars=yes,toolbar=no,titlebar=no,menubar=no,location=no,width=560,height=500');

}
function glossaire(mot) {
	if (mot == '?') {
		alert("Lier avec quel mot?");
	}
	
	if (win && !win.closed) {
		win.close();
	}
	file = '../glossaire.htm#' + mot;
	
	win = window.open(file, '', 'resizable=yes,scrollbars=yes,toolbar=no,titlebar=no,menubar=no,location=no,width=500,height=500');
}

function biblio(n) {
	if (win && !win.closed) {
		win.close();
	}
	file = '../biblio.htm#' + n;
	
	win = window.open(file, '', 'resizable=yes,scrollbars=yes,toolbar=no,titlebar=no,menubar=no,location=no,width=500,height=500');
}

function popup(file) {
	if (win && !win.closed) {
		win.close();
	}
	
	if (arguments.length == 2) {
		height = arguments[1];
	}
	else {
		height = 250;
	}

	file = file + ".htm";
	win = window.open(file, '', 'resizable=yes,scrollbars=yes,toolbar=no,titlebar=no,menubar=no,location=no,width=500,height=' + height);
}

function showLogin(path) {
	popup(path + "login", 150);
}
