// JavaScript Document
var theMaxObj = 7;
var typMaxObj = 5;
var popMaxObj = 4;
var lanMaxObj = 2;

function filterCheck( critObj, idObj) {
	maxObj = eval(critObj + "MaxObj");
	codeResult = 0;
	for (cpt=0; cpt < maxObj; cpt++) {
		indice = Math.pow(2, cpt);
		if (document.getElementById(critObj+'-'+indice).checked) { codeResult += indice;}
	}
	document.getElementById(critObj+'-sum').value = codeResult;
}

function openPopup( file, target, param) {
	var fenFille = "";
	fenFille = window.open( file, target, param);
	fenFille.focus();
}

function showHidePubDesc(objId) {
	action=objId.split("-")[0];
	numObj=objId.split("-")[1];
	if (action == 's') {
		document.getElementById('sd-'+numObj).style.display = 'none';
		document.getElementById('hd-'+numObj).style.display = 'block';
		document.getElementById('dd-'+numObj).style.display = 'block';
	} else {
		document.getElementById('sd-'+numObj).style.display = 'block';
		document.getElementById('hd-'+numObj).style.display = 'none';
		document.getElementById('dd-'+numObj).style.display = 'none';
	}
}
