<!--
/*
 * @(#)ChJComboBoxBuilder.js
 * USK  hiroshi_ueki
 * 全６画面共通のコンボボックス作成スクリプトファイル
 * 以下に作成するコンボボックスを示す
 *
 *	・西暦のコンボボックス
 *	・引数の配列名を利用する動的コンボボックス
 *	・【検索範囲】のコンボボックス
 *	・文字列検索テキストエリア
 *
 * @author	Nihon Unisys Software Kaisha, Ltd.
 * @version	1.0 2000/12/05
 */

	/**
	 * 西暦のコンボボックス"option"部を生成する関数
	 * 本年度、及び過去,今後二年（計5年度）
	 */
	function writeYearComboOption() {
		now = new Date(); 
		var year = now.getFullYear();
		var val;
		document.write("<option value=",val=year+2,">",val=year+2,"</option>"); 
		document.write("<option value=",val=year+1,">",val=year+1,"</option>"); 
		document.write("<option selected value=",val=year,">",val=year,"</option>"); 
		document.write("<option value=",val=year-1,">",val=year-1,"</option>"); 
		document.write("<option value=",val=year-2,">",val=year-2,"</option>"); 
	}

	/**
	 * コンボボックスの"option"部を生成する関数
	 * @param	aryName 配列名
	 */
	function writeComboOption(aryName) {
		var space = getInitString("&nbsp;",aryName); // "option"部の中で最大の長さの値を得る
		var count = getOptionLength(aryName); 		 // "option"部の数を得る
		/* 空の"option"部を生成する */
		for (i = 0; i < count; i++) {
			document.write("<option>");
			document.write(space);
			document.writeln("</option>");
		}
	}

	/**
	 * 【検索範囲】のコンボボックス"option"部を生成する関数
	 */
	function writeHaniComboOption() {
		for (i = 0; i < aryHani.length; i++) {
			document.write("<option value=\"");
			document.write(aryHani[i][0]);
			document.write("\">");
			document.write(aryHani[i][1]);
			document.writeln("</option>");
		}
	}

	/**
	 * 文字列検索テキストエリア入力部を生成する関数
	 */
	function writeMojiretsuArea() {
		var areaSize;		// textAreaの長さ
		var maxSize;		// maxlength
		/* ネットスケープ */
		if(navigator.appName.charAt(0)=="N"){ 
			areaSize = 10;
			maxSize  = 20;
		}
		/* その他 */
		else {
			areaSize = 15;
			maxSize  = 10;
		}

		for (i = 0; i < 3; i++) {
			document.write("<input type=TEXT name=Mojiretsu size=",areaSize," maxlength=",maxSize,">");
		}
	}	

		function writeMojiretsuAreaB() {
		var areaSize;		// textAreaの長さ
		var maxSize;		// maxlength
		/* ネットスケープ */
		if(navigator.appName.charAt(0)=="N"){ 
			areaSize = 10;
			maxSize  = 20;
		}
		/* その他 */
		else {
			areaSize = 15;
			maxSize  = 10;
		}

		for (i = 0; i < 2; i++) {
			document.write("<input type=TEXT name=Mojiretsu size=",areaSize," maxlength=",maxSize,">");
		}
	}	

//-->
