// JavaScript Document

function tag_copy1() {
   if (document.all && navigator.userAgent.match(/windows/i) && document.tags.total.value) {
      copy_obj = document.tags.total.createTextRange();
      copy_obj.execCommand("Copy");
      alert("【合計のみ表示タイプ】カウンターのタグをコピーしました。");
   }
}
function tag_copy2() {
   if (document.all && navigator.userAgent.match(/windows/i) && document.tags.today.value) {
      copy_obj = document.tags.today.createTextRange();
      copy_obj.execCommand("Copy");
      alert("【今日のみの表示タイプ】カウンターのタグをコピーしました。");
   }
}
function tag_copy3() {
   if (document.all && navigator.userAgent.match(/windows/i) && document.tags.yesterday.value) {
      copy_obj = document.tags.yesterday.createTextRange();
      copy_obj.execCommand("Copy");
      alert("【昨日のみの表示タイプ】カウンターのタグをコピーしました。");
   }
}
function tag_copy4() {
   if (document.all && navigator.userAgent.match(/windows/i) && document.tags.textarea1.value) {
      copy_obj = document.tags.textarea1.createTextRange();
      copy_obj.execCommand("Copy");
      alert("【縦表示タイプ】カウンターのタグをコピーしました。");
   }
}
function tag_copy5() {
   if (document.all && navigator.userAgent.match(/windows/i) && document.tags.textarea.value) {
      copy_obj = document.tags.textarea.createTextRange();
      copy_obj.execCommand("Copy");
      alert("【横表示タイプ】カウンターのタグをコピーしました。");
   }
}
