﻿//初期設定
function setUp() {
var repo_photoElmnts = getByClass (document,"repo_photo","div");
for (i=0; i<repo_photoElmnts.length; i++){
     repo_photoElmnts[i].style.display = "none";
     }
     }

//開閉
function repo_photoOpen( obj ){
var repo_photoElmnts = getByClass (obj.parentNode,"repo_photo","div" );
if (repo_photoElmnts[0].style.display == "none" ){
repo_photoElmnts[0].style.display = "block";
} else {
repo_photoElmnts[0].style.display = "none";
}
}

//要素の取得
function getByClass ( parentElmnts, className, tagName ){
var cElmnts = new Array ();
var elmnts = parentElmnts.getElementsByTagName (tagName);
for ( i = 0; i <elmnts.length; i++ ){
if (elmnts[i] .className == className ){
cElmnts.push ( elmnts [i] );
}
}

return cElmnts;
}

//個人情報の取扱いについてウィンドウ開く
function openwin() {
	window.open("./about_privacy.html", "new", "width=680,height=500,scrollbars=yes");
}

//ウィンドウ閉じる
function closewin() {
	window.close();
}

//body onloadの代わり
window.onload = function() {
setUp ();
}


//プルダウンメニュー
function navi(obj) {
 url = obj.options[obj.selectedIndex].value;
 if(url != "") {
   location.href = url;
  }
}


//ウィンドウオープン
function openwin1() {
    window.open("passinfo.aspx", "new", "width=750, height=650, menubar=no, toolbar=no, statusbar=no, scrollbars=yes");
}

function openwininfo() {
    window.open("info.aspx", "new", "width=650, height=250, menubar=no, toolbar=no, statusbar=no, scrollbars=yes");
}

