/**
*** C00101用js
**/
var C00101  = function()  {
  return  {
    GetLoginCookie: function( id, url ) {
      //JavaSctiprの埋め込み
      var script = document.createElement('script');
      script.setAttribute( 'type', 'text/javascript');
      script.setAttribute( 'src', url + '/cb/C00101getCookie' );
      script.setAttribute( 'charset', 'UTF-8');
      $( id ).appendChild( script );
    }
  }
}();

//JSONPコールバック
function C00101getCookie( res ) {
  $( 'meiruadoresu' ).value = res[ 'm' ];
  $( 'pasuwaado' ).value    = res[ 'p' ];
  $( 'zidou' ).value        = res[ 'a' ];
  if( res[ 'i' ] )  {
    $( 'hozon' ).checked    = true;
  }
  else  {
    $( 'hozon' ).checked    = false;
  }
}
