


function getStyle(el, cssprop){
	if (el.currentStyle) //IE
		return el.currentStyle[cssprop]
	else if (document.defaultView && document.defaultView.getComputedStyle) //Firefox
		return document.defaultView.getComputedStyle(el, "")[cssprop]
	else //try and get inline style
		return el.style[cssprop]
}

function toggleSearch(el) {
	var closedHeight = '20px';
	var openedHeight = '134px';
	if(getStyle(el.parentNode.parentNode,'height') == closedHeight) {
		el.parentNode.parentNode.style.height = openedHeight;
	} else {
		el.parentNode.parentNode.style.height = closedHeight;
	}
}

function activateRadio(el) {
	var rootEl = el.parentNode;
	for (i=0; i<rootEl.childNodes.length; i++) {
		var node = rootEl.childNodes[i];
		if (node.nodeName == 'LABEL') {
			if(node.className != 'inactif') { // on verifie que l'element n'est pas en classe 'inactif'
				node.className = '';
			}
		}
	}
	el.className = 'actif';
}




