<!--

	/**
	 * ダウンロードファイルとアクションを設定して遷移します.
	 *
	 */
     function download(id, downloadFileName) {
   		document.mainform.downloadFileName.value = downloadFileName;
   		sendNext(id);
	 }

	 /**
	  * Actionをセットします．
	  *
	  */
	  function setAction(id) {
		document.mainform.action = id;
	  }

	 /**
	  * 次ページに遷移します．
	  *
	  */
	  function sendNext(id) {
		document.mainform.action = id;
		document.mainform.submit();
	  }

	  /**
	   * タブが押された時の処理
	   *
	   */
	  function sendTag(id, obj) {
		document.mainform.selectTag.value = obj.name;
		sendNext(id);
	  }

	  
	  /**
	   * カレンダの次月処理
	   *
	   */
	  function sendCalendarNext(id, yearObj, monthObj) {
	  	year = yearObj.value;
		month = monthObj.value;
		month++ ;
		if(month > 12){
			month = 1;
			year++;
		}
		yearObj.value = year;
		monthObj.value = month;
		sendNext(id);
	  }


	  /**
	   * カレンダの前月処理
	   *
	   */
	  function sendCalendarPrev(id, yearObj, monthObj) {
	  	year = yearObj.value;
		month = monthObj.value;
		month = month - 1;
		if(month < 1){
			month = 12;
			year = year -1;
		}
		yearObj.value = year;
		monthObj.value = month;
		sendNext(id);
	  }

	  /**
	   * カレンダ中のボタンが押された場合の処理
	   *
	   */
	  function sendCalendarButton(id, dayValue, type) {
		document.mainform.clickDay.value = dayValue;
		document.mainform.seminarID.value = type;
		alert(document.mainform.clickDay.value);
		alert(document.mainform.seminarID.value);
		sendNext(id);
	  }

	  /**
	   * カレンダ中のチェックボックスが押された時の処理
	   *
	   */
	  function sendCalendarCheck(id,dayValue, type) { 
		document.mainform.clickDay.value = dayValue;
		document.mainform.reserveID.value = type;
		alert(document.mainform.clickDay.value);
		alert(document.mainform.reserveID.value);
		sendNext(id);
	  }
	  
	  /**
	   * 検索ウインドウを開きます．
	   *
	   */
	  function openSearch(){
	  	window.open("branchSearch.do","welcome", "width=700,height=700");
	  	
	  }
	  
	  function inputBranch(){
	  	window.opener.document.mainform.action = "recomendInput.do";
		window.opener.document.mainform.submit();
	  }
	  
	  function meClose(){
	  	window.close();
	  }
	  
	  /**
	   * ウインドウを開きます．
	   *
	   */
	  function openSubWindow(){
	  	window.open("first.do","welcome", "width=450,height=500");
	  	
	  }
	  
	function openwin(fileName){ 
	  window.open(fileName,"JUDESite","toolbar=yes,scrollbars=yes,location=yes,menubar=yes,left=10,top=30,resizable=yes");
	  return false;
	}
	
	function openwinTarget(fileName){ 
	  window.open(fileName,"constitution","width=680,height=520,scrollbars=no,location=no,menubar=no,left=10,top=30");
	  return false;
	}
	
	function MM_swapImgRestore() { //v3.0
	  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 MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	function MM_findObj(n, d) { //v4.01
	  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() { //v3.0
	  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 openwinForNoteFromHTML(fileName){ 
	 	window.open(fileName,"popupwindow","width=680,height=520,scrollbars=no,location=no,menubar=no,left=10,top=30");
	 	return false;
	}
	
	function openwinForNoteFromHTMLWithWidth(fileName,width){ 
	 	window.open(fileName,"popupwindow","width=" + width + ",height=520,scrollbars=no,location=no,menubar=no,left=10,top=30");
	 	return false;
	}
	
	function openwinForOldNews(fileName){ 
		window.open(fileName,"popupwindow","width=900,height=500,scrollbars=yes,location=no,menubar=no,left=10,top=30");
		return false;
	}
	
	function getInfoMailAdress() {
	    //メールアドレス(info)
	 	var coded = "DXJI-E2H4@KFM2GI-WEZE42.K4A"
		var cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
		var shift=coded.length
		var link=""
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i)
				link+=(ltr)
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
				link+=(cipher.charAt(ltr))
			}				
	    }
	    //return link;
	    document.write(link);
	}
	
	function getBugsMailAdress() {
		//メールアドレス(bugs)
	 	var coded = "DXJI-LXGZ@KFM2GI-WEZE42.K4A"
		var cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
		shift=coded.length
		var link=""
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i)
				link+=(ltr)
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
				link+=(cipher.charAt(ltr))
			}				
	    }
	    //return link;
	    document.write(link);
	}
	
	function getSalesMailAdress() {
		//メールアドレス(sales)
		var coded = "xdrs-bozsb@qvo3us-ewbw53.q51"
		var cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
		shift=coded.length
		var link=""
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i)
				link+=(ltr)
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
				link+=(cipher.charAt(ltr))
			}				
	    }
	    //return link;
	    //alert(link)
	    document.write(link);
	}
	
	function getUsersCtlMailAdress() {
		//メールアドレス(users-ctl)
		var coded = "zftu-fducd-se3@sxq7wu-gydy97.s95"
		var cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
		shift=coded.length
		var link=""
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i)
				link+=(ltr)
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
				link+=(cipher.charAt(ltr))
			}				
	    }
	    //return link;
	    document.write(link);
	}
	
	function getUsersECtlMailAdress() {
	    //メールアドレス(users-e-ctl)
	 	var coded = "1guv-gevde-v-tf5@tyr9xv-hzeza9.ta7"
		var cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
		var shift=coded.length
		var link=""
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i)
				link+=(ltr)
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
				link+=(cipher.charAt(ltr))
			}				
	    }
	    //return link;
	    document.write(link);
	}
	
	function getPrivacyMailAdress() {
		//メールアドレス(privacy)
		var coded = "48FXNLU@LGNAHJ-XF0F2A.L2B"
		var cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
		shift=coded.length
		var link=""
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i)
				link+=(ltr)
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
				link+=(cipher.charAt(ltr))
			}				
	    }
	    //return link;
	    document.write(link);
	}
	
	function getUsersCtlEsmMailAdress() {
		//メールアドレス(users-ctl)
		var coded = "vbpq-b9q79-oax@q9y.o1.v3"
		var cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
		shift=coded.length
		var link=""
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i)
				link+=(ltr)
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
				link+=(cipher.charAt(ltr))
			}				
	    }
	    //return link;
	    document.write(link);
	}
	
	function getUsersECtlEsmMailAdress() {
	    //メールアドレス(users-e-ctl)
	 	var coded = "wcqr-car9a-r-pby@raz.p3.w5"
		var cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
		var shift=coded.length
		var link=""
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i)
				link+=(ltr)
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
				link+=(cipher.charAt(ltr))
			}				
	    }
	    //return link;
	    document.write(link);
	}
-->
