
   
    function eraseInput(input, text){
        if(input.value != '' && input.value == text){
            input.value = '';
        }
    }
    
    function setDefaultInputText(input, text){
        if(input.value == ''){
            input.value = text;
        }
    }



    function rozbal(id){
        element = document.getElementById(id);
        elementStyle = element.style;
        elementStyle.display = 'block';

        element = document.getElementById(id + '_toggle');
        element.onclick = function(){
            sbal(id);
        }
        //element.style.textDecoration = 'underline';
        //element.style.fontStyle = 'italic';

        element.parentNode.style.backgroundImage = "url(view/design/minus.png)";
        
    }

    function sbal(id){
        element = document.getElementById(id);
        elementStyle = element.style;
        elementStyle.display = 'none';

        element = document.getElementById(id + '_toggle');
        element.onclick = function(){
            rozbal(id);
        }
        
        element.parentNode.style.backgroundImage = "url(view/design/plus.png)";
        
        //element.style.textDecoration = 'none';
        //element.style.fontStyle = 'normal';



    }

