function addText(mess, instext) {
        //IE support
        if (document.selection) {
            mess.focus();
            sel = document.selection.createRange();
            sel.text = instext;
            document.form.focus();
        }
        //MOZILLA/NETSCAPE support
        else if (mess.selectionStart || mess.selectionStart == "0") {
            var startPos = mess.selectionStart;
            var endPos = mess.selectionEnd;
            var chaine = mess.value;

            mess.value = chaine.substring(0, startPos) + instext + chaine.substring(endPos, chaine.length);

            mess.selectionStart = startPos + instext.length;
            mess.selectionEnd = endPos + instext.length;
            mess.focus();
        } else {
            mess.value += instext;
            mess.focus();
        }
}
function afficheId(baliseId) {
	if (document.getElementById && document.getElementById(baliseId) != null){
		document.getElementById(baliseId).style.visibility='visible';
		document.getElementById(baliseId).style.display='block';
	}
}

function cacheId(baliseId){
	if (document.getElementById && document.getElementById(baliseId) != null){
		document.getElementById(baliseId).style.visibility='hidden';
		document.getElementById(baliseId).style.display='none';
	}
}
  
function categorie_evenement(idcategorie) {
	if (idcategorie == 1) {
		afficheId('proposer-concert');
		cacheId('proposer-soiree');
		cacheId('proposer-sortiecd');
	}
	else if (idcategorie == 2) {
		afficheId('proposer-soiree');
		cacheId('proposer-concert');
		cacheId('proposer-sortiecd');
	}
	else {
		afficheId('proposer-sortiecd');
		cacheId('proposer-concert');
		cacheId('proposer-soiree');
	}	
}
