        function test_fields(x)
        {
            action_type=document.getElementById('action');
            document_name=formulari.elements['document'].value;

            formulari.elements['no'].disabled=false;

            hiddenfiles=document.getElementById('hiddenfile');
            for (i=0;i<=hiddenfiles.length;i++)
                if (document_name==hiddenfiles.options[i].value)
                {
                    var statesure=window.confirm("There is a file in the server with the same name. Overwritte existing file?");
                    if (!statesure)
                        return false;
                    else
                    return true;
                }
        }
