function class_hide_element()
{
    this.init=function(obj){
        document.getElementById(obj.value).style.display='block';
        for(var i=0; i<window.hide_element_list.childNodes.length; i++){
            if(window.hide_element_list.childNodes[i].value==obj.value){
                var remove_obj=window.hide_element_list.childNodes[i];
            }
        }
        if(remove_obj){
            window.hide_element_list.removeChild(remove_obj);
        }
    }
    
    this.insert_in_list=function(idx){
        window.my_obj_controller.d_none();
        document.getElementById(idx).style.display='none';
        var my_request=new class_http_request();
        my_request.set_query('?mode=hide&idx='+idx);
        my_request.start_request(window.my_hide_element);
    }
    
    this.calling=function(my_value){
        var obj = eval("(" + my_value + ")");
        var my_option=document.createElement('option');
        var my_valuetext=document.createElement('span');
        my_option.value="OBJ"+obj.ID;
        my_valuetext.innerHTML=obj.BEZEICHNER;
        my_option.appendChild(my_valuetext);
        window.hide_element_list.appendChild(my_option);
    }
    this.clear_list=function(){
        var remove_list_obj=new Array();
        for(var i=0; i<window.hide_element_list.childNodes.length; i++){
            if(window.hide_element_list.childNodes[i].value=='NULL'){
                
            }
            else{
               remove_list_obj.push(window.hide_element_list.childNodes[i]);
            }
        }
        for(var i=0; i<remove_list_obj.length; i++){
            window.hide_element_list.removeChild(remove_list_obj[i]);
        }
    }
}
