
function hide_them_all() {
document.getElementById("rename").style.display = "none";


    }

    function init_options() {
        hide_them_all();
        if (document.getElementById("coche").checked) {
document.getElementById("rename").style.display = "block";
 } 
 
    }
	
function insertValueQuery() {
    var myQuery = document.modifgaltag.tags;
    var myListBox = document.modifgaltag.dummy;

    if(myListBox.options.length > 0) {
        var chaineAj = "";
        var NbSelect = 0;
        for(var i=0; i<myListBox.options.length; i++) {
            if (myListBox.options[i].selected){
                NbSelect++;
                if (NbSelect > 1)
                    chaineAj += ", ";
                chaineAj += myListBox.options[i].value;
            }
        }

        //IE support
        if (document.selection) {
            myQuery.focus();
            sel = document.selection.createRange();
            sel.text = chaineAj;
            document.modifgaltag.insert.focus();
        }
        //MOZILLA/NETSCAPE support
        else if (document.modifgaltag.tags.selectionStart || document.modifgaltag.tags.selectionStart == "0") {
            var startPos = document.modifgaltag.tags.selectionStart;
            var endPos = document.modifgaltag.tags.selectionEnd;
            var chaineSql = document.modifgaltag.tags.value;

            myQuery.value = chaineSql.substring(0, startPos) + chaineAj + chaineSql.substring(endPos, chaineSql.length);
        } else {
            myQuery.value += chaineAj;
        }
    }
}

