//SSLページ
var strBasePageS = "https://www.yado-t.com/yokosojapan/";
//通常ページ
var strBasePageN = "http://www.yokoso-japan.jp/";

function MM_findObj(n, d){
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage(){
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore(){
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

//予約変更
function fncsubModify(Lang){
 var m=window.open(strBasePageS + "frmRsvModify.aspx?LngKbn=" + Lang,'Rsv','width=650,height=740,menubar=no,toolbar=no,location=yes,directories=no,status=no,scrollbars=yes,resizable=no');
 m.focus();
}

//問い合わせ
function fncsubQuestion(Lang){
 var m=window.open(strBasePageS + "frmQuestion.aspx?LngKbn=" + Lang,'Qst','width=650,height=670,menubar=no,toolbar=no,location=yes,directories=no,status=no,scrollbars=yes,resizable=no');
 m.focus();
}

//メールマガジン登録
function fncsubMMEntry(Lang){
 var m=window.open(strBasePageS + "frmMMEntry.aspx?LngKbn=" + Lang,'MME','width=650,height=670,menubar=no,toolbar=no,location=yes,directories=no,status=no,scrollbars=yes,resizable=no');
 m.focus();
}

//メールマガジン解約
function fncsubMMDel(Lang){
 var m=window.open(strBasePageS + "frmMMDel.aspx?LngKbn=" + Lang,'MMD','width=650,height=670,menubar=no,toolbar=no,location=yes,directories=no,status=no,scrollbars=yes,resizable=no');
 m.focus();
}
//催行状況表示
function fncsubSaikou(tourNo,Lang){
 var m=window.open(strBasePageN + "frmTourSituation.aspx?TourNo="+ tourNo +"&LngKbn=" + Lang,'SAI','width=630,height=500,menubar=no,toolbar=no,location=yes,directories=no,status=no,scrollbars=yes,resizable=no');
 m.focus();
}

//ツアー検索画面表示
function fncsubSearch(Lang){
 var m=window.open(strBasePageN + "frmSearchTour.aspx?LngKbn=" + Lang,'SEA','width=900,height=500,menubar=no,toolbar=no,location=yes,directories=no,status=no,scrollbars=yes,resizable=no');
 m.focus();
}


  function fncimg(){

    if(document.fm.agree[0].checked == true){
      document.getElementById('button1').style.display = "none";
      document.getElementById('button2').style.display = "inline";
    } else {
      document.getElementById('button1').style.display = "inline";
      document.getElementById('button2').style.display = "none";
    }
  }

  function openwin(add){

    var m = window.open(add,'jp','location=yes,width=650,height=670,resizable=no,scrollbars=yes');
    m.focus();

  }


