public static void send( String xml1 ){
        xml=xml1;
        if(askForName){
            global.conf.pastebinPane.remove(global.conf.pastebinConf);
            int ok=JOptionPane.showConfirmDialog(global.Window, global.conf.pastebinConf, "Send", JOptionPane.OK_CANCEL_OPTION);
            global.conf.pastebinPane.setLayout(new BorderLayout());
            global.conf.pastebinPane.add(global.conf.pastebinConf);
            if(ok==JOptionPane.CANCEL_OPTION) return;
            email=global.conf.pastebinEmail.getText();
            name=global.conf.pastebinName.getText();
            exposure=global.conf.pastebinPublic.getSelectedItem().toString();
            expire=global.conf.pastebinExpire.getSelectedItem().toString();
            
        }
        try {// <editor-fold defaultstate="collapsed" desc="Send">
            data="";
            working=true;
            if (askForName) {
                if (name.length() > 0) {
                    data += URLEncoder.encode("paste_name", "UTF-8") + "="
                         + URLEncoder.encode(name, "UTF-8");
                } else {
                    data += URLEncoder.encode("paste_name", "UTF-8") + "="
                         + URLEncoder.encode("JavaBlock", "UTF-8");
                }
            } else {
                data += URLEncoder.encode("paste_name", "UTF-8") + "="
                     + URLEncoder.encode("JavaBlock", "UTF-8");
            }
            //brak api w nazwach
            data += "&" + URLEncoder.encode("api_dev_key", "UTF-8") + "="
                 + URLEncoder.encode("464f791c879e77742a1b377a1a4a8a2d", "UTF-8");
            data += "&" + URLEncoder.encode("api_paste_code", "UTF-8") + "="
                 + URLEncoder.encode(xml, "UTF-8");
            data += "&" + URLEncoder.encode("api_paste_format", "UTF-8") + "="
                 + URLEncoder.encode("xml", "UTF-8");
            data += "&" + URLEncoder.encode("api_paste_expire_date", "UTF-8") + "=" 
                 + URLEncoder.encode(expire.split(" ")[0], "UTF-8");
            data += "&" + URLEncoder.encode("api_paste_email", "UTF-8") + "="
                 + URLEncoder.encode(email, "UTF-8");
            data += "&" + URLEncoder.encode("api_paste_private", "UTF-8") + "="
                 + URLEncoder.encode((exposure.equals("Public") ? "0" : "1"), "UTF-8");
            data += "&" + URLEncoder.encode("api_option", "UTF-8") + "=" 
                + URLEncoder.encode("paste", "UTF-8");
        } catch (Exception e) {
            working=false;
        }
        final URLDownloader down=new URLDownloader(
                //zly adres
                //"http://javablock.sf.net/",
                //"http://javablock.pastebin.com/api_public.php",
                "http://pastebin.com/api/api_post.php",
                data,
                "Exporting to pastebin");
        global.Window.setEnabled(false);
        new Thread(new Runnable() {
            @Override
            public void run() {
                String address = down.get1();
                global.Window.setEnabled(true);
                if(address==null){
                    JOptionPane.showMessageDialog(null, "Connection error", "error", JOptionPane.ERROR_MESSAGE);
                    working=false;
                    return ;
                }
                if(!address.isEmpty()){
                    String[] u = address.split("/");
                    JPanel panel = global.conf.pastebinSummary;
                    global.conf.pastebinURL.setText(address);
                    global.conf.pastebinID.setText(u[u.length - 1]);
                    global.conf.pastebinApplet.setText("http://javablock.sf.net/applet.php?url=http://pastebin.com/download.php?i=" + u[u.length - 1]);
                    JOptionPane.showMessageDialog(null, panel);
                }
                working=false;
            }
        }).start();
        // </editor-fold>
    }