function backToTop() {
  var x1 = x2 = x3 = 0;
  var y1 = y2 = y3 = 0;
  if (document.documentElement) {
      x1 = document.documentElement.scrollLeft || 0;
      y1 = document.documentElement.scrollTop || 0;
  }
  if (document.body) {
      x2 = document.body.scrollLeft || 0;
      y2 = document.body.scrollTop || 0;
  }
  x3 = window.scrollX || 0;
  y3 = window.scrollY || 0;
  var x = Math.max(x1, Math.max(x2, x3));
  var y = Math.max(y1, Math.max(y2, y3));
  window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
  if (x > 0 || y > 0) {
      window.setTimeout("backToTop()", 25);
  }
}


function closeWin(){
    window.close();
}


/************************************************
	Description: 会員エントリー
************************************************/
function openEntry(){
	window.open("https://nowgetta.com/sm/p/f/tf.php?id=kotobuki","",'resizable=no,scrollbars=no,menubar=no,directories=no,status=no,location=no,width=550,height=640');
}

/************************************************
	レポート
************************************************/
function openNakamura(){
	window.open("nakamura/index.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=660,height=600');
}

function openKozuka(){
	window.open("kozuka/index.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=660,height=600');
}


function openHayashi(){
	window.open("hayashi/index.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=660,height=600');
}




/************************************************
	フォトストーリー
************************************************/
function openNakamuraphoto(){
var w = screen.availWidth;
var h = screen.availHeight;
window.open("nakamura/swf/photo.html","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + w + ",height=" + h + ",left=0,top=0");
}

function openKozukaphoto(){
var w = screen.availWidth;
var h = screen.availHeight;
window.open("kozuka/swf/photo.html","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + w + ",height=" + h + ",left=0,top=0");
}

function openHayashiphoto(){
var w = screen.availWidth;
var h = screen.availHeight;
window.open("hayashi/swf/photo.html","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + w + ",height=" + h + ",left=0,top=0");
}



/************************************************
	プラン
************************************************/
function openQuick(){
	window.open("quick.html","",'resizable=no,scrollbars=no,menubar=no,directories=no,status=no,location=no,width=758,height=331,left=100,top=100');
}

function openShogatsu(){
	window.open("shogatsu.html","",'resizable=no,scrollbars=no,menubar=no,directories=no,status=no,location=no,width=758,height=384,left=100,top=100');
}

function openChristmas(){
	window.open("christmas.html","",'resizable=no,scrollbars=no,menubar=no,directories=no,status=no,location=no,width=758,height=362,left=100,top=100');
}

function openHappy(){
	window.open("happy.html","",'resizable=no,scrollbars=no,menubar=no,directories=no,status=no,location=no,width=758,height=398,left=100,top=100');
}

function openMoniter(){
	window.open("moniter.html","",'resizable=no,scrollbars=no,menubar=no,directories=no,status=no,location=no,width=758,height=325,left=100,top=100');
}

