function disp(url,titlemsg){
        w=window.open(url,"","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=641,height=481");
        w.document.open();
        w.document.write('<html>');
        w.document.write('<head>');
        w.document.write('<title>' , titlemsg , '<','/title>');
        w.document.write('<','/head>');
        w.document.write('<body topmargin=0 leftmargin=0>');
        w.document.write('<img src="' , url , '">' );

        w.document.write('<script src="','http://www.google-analytics.com/urchin.js"','type="','text/javascript"','>');
        w.document.write('<','/script>');
        w.document.write('<script type="','text/javascript"','>');
        w.document.write('<!-- ');
        w.document.write('_uacct = "','UA-719567-1"',';');
        w.document.write('urchinTracker();');
        w.document.write('//-->');
        w.document.write('<','/script>');

        w.document.write('<' , '/body>');
        w.document.write('<' , '/html>');
        w.document.close();
}
function displ(url,titlemsg){

//        var gazou= new Image();
//        gazou.src=url;
//        haba = gazou.width+1;
//        takasa = gazou.height+1;
//        w=window.open(url,"","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width="+haba+",height="+takasa);
        w=window.open(url,"","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=801,height=601");
        w.document.open();
        w.document.write('<html>');
        w.document.write('<head>');
        w.document.write('<title>' , titlemsg , '<','/title>');
        w.document.write('<','/head>');
        w.document.write('<body topmargin=0 leftmargin=0>');
        w.document.write('<img src="' , url , '">' );
        w.document.write('<script src="','http://www.google-analytics.com/urchin.js"','type="','text/javascript"','>');
        w.document.write('<','/script>');
        w.document.write('<script type="','text/javascript"','>');
        w.document.write('<!-- ');
        w.document.write('_uacct = "','UA-719567-1"',';');
        w.document.write('urchinTracker();');
        w.document.write('//-->');
        w.document.write('<','/script>');

        w.document.write('<' , '/body>');
        w.document.write('<' , '/html>');
        w.document.close();
}

function tweet() {
    var login  = 'u1motooka'; // ← bitly に登録したユーザ名
    var apiKey = 'R_233f9f6c6c4eb3e1128b9262da89e18a'; // ← bitly API Key
    bitly = 'http://api.bit.ly/shorten' 
        + '?version=2.0.1&format=json&callback=callback'
        + '&login=' + login
        + '&apiKey=' + apiKey + '&longUrl=';
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = bitly + encodeURIComponent(location.href) ;
    document.body.appendChild(script);
  }

  function callback(bitlyResponse) {
    var title = '城めぐ(siromegu).com:' + document.title;
    var url = 'http://twitter.com/home/?status=' 
        + encodeURIComponent(
             title + ' ' 
               + bitlyResponse.results[location.href]['shortUrl']
          );
    location.href = url;
//      window.open(url, '_blank'); 
  }

