<!--
  // 指定したURLに移動
  function jumpTo(url)
  {
    location.href = url;
  }

  // クッキーに値を設定
  function setCookie(p1, p2, p3)
  {
    var d = new Date();
    d.setSeconds(d.getSeconds() + 2592000);
    var e = d.toGMTString();

    var c = "COOKDEFUID=" + escape(p1);
    c += ";expires=" + e;
    document.cookie = c;

    c = "COOKDEFPWD=" + escape(p2);
    c += ";expires=" + e;
    document.cookie = c;

    c = "COOKDEFSAVE=" + escape(p3);
    c += ";expires=" + e;

    document.cookie = c;
  }


  // クッキーの値を取得
  function getCookie()
  {
    var f = document.login;
    var c = document.cookie;
    var w = c.split("; ");
    for (i in w)
    {
      if(w[i].indexOf("COOKDEFUID=") != -1)
      {
        var uid = w[i].split("=");
        f.name.value = uid[1];
      }

      if(w[i].indexOf("COOKDEFPWD=") != -1)
      {
        var pwd = w[i].split("=");
        f.pass.value = pwd[1];
      }

      if(w[i].indexOf("COOKDEFSAVE=") != -1)
      {
        var chk = w[i].split("=");
        if(chk[1] == "on")
        {
          f.save.checked = true;
        }
        else
        {
          f.save.checked = false;
        }
      }
    }
  }

  // フォームの内容を送信
  function submitForm()
  {
    var f = document.login;
    if(f.save.checked)
    {
      setCookie(f.name.value, f.pass.value, "on");
    }
    else
    {
      setCookie("", "", "off");
    }
    f.submit();
  }

  // ポップアップ
  function windowOpen(u, n, w, h, s)
  {
    var op;
    var px = (screen.width - w) / 2;
    var py = (screen.height - h) / 2;

    if(navigator.userAgent.indexOf("MSIE") && navigator.userAgent.indexOf("Win"))
      w += 16;

    op = "left=" + px + ",top=" + py + ",width=" + w + ",height=" + h + ",scrollbars=" + s + ",resizable=0,toolbar=0,location=0";
    var win = window.open(u, n, op);
  }

  // 登録画面
  function openRegist()
  {
    windowOpen('../login/regist/index.php','member',620,600,1);
  }

  // ニュース画面
  function openNews()
  {
    windowOpen('news.html','news',420,430,1);
  }

  // コミック画面
  function openComic(i, w, h, s)
  {
    windowOpen('comic' + i + '.html', 'comic', w, h, s);
  }

  // フィギュア広告
  function openGacha()
  {
    windowOpen('../gacha/index.html','gacha',571,699,0);
  }

  // プラグインチェック
  function checkPlugins()
  {
    var flag = false;
    if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] )
    {
      var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
      if(plugin)
        flag = true;
    }
    else if(navigator.appName &&  navigator.appName.indexOf("Microsoft") != -1)
    {
      flag = true;
    }

    if(!flag)
      location.href = "plugin.html";
  }
//-->