        function deletePlayer(theWrapper, thePlaceholder, thePlayerId) { 
            swfobject.removeSWF(thePlayerId);
            var tmp=document.getElementById(theWrapper);
            if (tmp) { tmp.innerHTML = "<div id='" + thePlaceholder + "'></div>"; }
        }

        function createPlayer(theFile, theSkin, theAutostart,w,h) {
            var flashvars = {
                    file:theFile, 
                    autostart:theAutostart, 
                    skin:theSkin
            }
            var params = {
                    allowfullscreen:"true", 
                    allowscriptaccess:"always"
            }
            var attributes = {
                    id:"player1",  
                    name:"player1"
            }
            swfobject.embedSWF("../../swfobject/player.swf", "placeholder1", w, h, "9.0.115", false, flashvars, params, attributes);
        }

        var currentFile;
        var currentSkin;

        function initPlayer(theFile, theSkin, theAutostart,w,h) {
            currentFile = theFile; 
            currentSkin = theSkin;
            deletePlayer('wrapper', 'placeholder1', 'player1');
            createPlayer(theFile, theSkin, theAutostart,w,h);
        }

    function set_field(theFile,theSkin, theAutostart,w,h){
        if(theFile == '')
            return;
        document.frm.path_video.value = theFile;
        //document.path_videol.value = theFile;
        initPlayer(theFile,theSkin, theAutostart,w,h);
    }
