function refresh() //??????? ????? ?????????? ?? ????????????? ???????
        {
                if (!endu)
                        {
                                var dom = document.body;
                                window.status = '????????....';
                                var jsel = document.createElement('SCRIPT');
                                jsel.type = 'text/javascript';
                                jsel.src = uplin+'/uplprgs.php?uplid='+uniq2key+'&'+Math.random() + '&' +dop;
                                dom.appendChild (jsel);
                                dom = null;
                                jsel = null;
                                window.status = '????????....';
                                setTimeout("refresh()",10000);
                        }
        }
function hideupl()
 {
        if (document.getElementById('agree').checked)
        {
                var i = document.getElementById('file').value.split("\\");
                if (i.length == 0)
                 {
                   i = document.getElementById('file').value.split("/");
                   if (i.length == 0)
                    {
                                alert('Choose the file!');
                                return false;
                        }
                 }

                document.getElementById('fn').innerHTML=i[i.length-1];
                document.forms['uplform'].action = uplin+':88/cgi-bin/upload.pl?uplid='+uniqkey;
                document.getElementById('uplform').style.display = 'none';
                document.getElementById('statusbar').style.display = 'block';
                document.forms['uplform'].submit();
                refresh();
        }
        else
        {
        alert('Check: Yes, I accept this terms. ');
        }
 }
function endupl(fl)
 {
        endu = true;
        document.getElementById('st').width='400';
        document.getElementById('statusbar').style.display = 'none';
        document.getElementById('endupl').style.display = 'block';
        if (fl != "")
         {
           location.href="http://nukeuploads.com/add/"+fl+"/";
         }
 }


