/** worktank */

/**
 * SWFを書き出します。
 * @param swf     swfファイル名
 * @param width   横サイズ
 * @param height  縦サイズ
 * @param bgcolor 背景カラー
 */
function writeFlash(swf,width,height,bgcolor){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+width+"' height='"+height+"' id='"+swf+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='movie' value='"+swf+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='scale' value='noscale' />");
	document.write("<param name='bgcolor' value='"+bgcolor+"' />");
	document.write("<embed src='"+swf+"' quality='high' scale='noscale' bgcolor='"+bgcolor+"' width='"+width+"' height='"+height+"' name='"+swf+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

/**
 * アルバイト タイトルを書き出します。
 * @param title タイトル名
 */
function titleChanger(title){
	if(title == 'フード系'){
		document.write("<b>ホ</b>：ホールスタッフ　<b>ウ</b>：ウェイター/ウェイトレス　<b>調</b>：調理スタッフ　<b>キ</b>：キッチンスタッフ　<b>デ</b>：デリバリー　<b>フ</b>：フロアレディー<br>");
		document.write("<b>カ</b>：カウンターレディー　<b>コ</b>：コンパニオン　<b>他</b>：その他");
	}
	if(title == '販売系'){
		document.write("<b>服</b>：洋服　<b>貨</b>：雑貨　<b>Ｃ</b>：ＣＤ　<b>本</b>：本　<b>粧</b>：化粧品　<b>菓</b>：お菓子/お惣菜　<b>他</b>：その他");
	}
	if(title == 'オフィスワーク系'){
		document.write("<b>一</b>：一般事務　<b>デ</b>：データ入力　<b>テ</b>：テレフォンオペレーター　<b>全</b>：事務全般　<b>他</b>：その他");
	}
	if(title == 'IT・Web系'){
		document.write("<b>Ｓ</b>：ＳＥ/ＰＧ　<b>デ</b>：デザイナー/コンテンツ作成　<b>ユ</b>：ユーザーサポート　<b>他</b>：その他");
	}
	if(title == '営業系'){
		document.write("<b>企</b>：企画営業　<b>ア</b>：営業アシステント　<b>カ</b>：カウンター営業　<b>ル</b>：ルートセールス　<b>他</b>：その他");
	}
	if(title == '軽作業・体力系'){
		document.write("<b>仕</b>：仕分け/商品管理　<b>警</b>：警備　<b>ガ</b>：ガソリンスタンド　<b>新</b>：新聞配達　<b>掃</b>：清掃　<b>越</b>：引越し　<b>他</b>：その他");
	}
	if(title == 'ライダー・ドライバー系'){
		document.write("<b>バ</b>：バイク便　<b>タ</b>：タクシー運転手　<b>ト</b>：トラック(2t/4t)　<b>ル</b>：ルート配達　<b>他</b>：その他");
	}
	if(title == '美容・医療関連職'){
		document.write("<b>美</b>：美容師　<b>エ</b>：エステシャン　<b>マ</b>：マッサージ師　<b>歯</b>：歯科助手　<b>護</b>：介護士　<b>他</b>：その他");
	}
	if(title == 'イベント・レジャー関連職'){
		document.write("<b>パ</b>：パチンコ　<b>カ</b>：カラオケ　<b>イ</b>：イベント　<b>ゲ</b>：ゲームセンタースタッフ　<b>他</b>：その他");
	}
}


/**
 * アルバイトのタイトル変更
 * 
 */
function titlebarChanger(title){
	if(title == 'フード系'){
		document.write("<div><img src='../img_src/index2c_1_food.gif' alt='フード系(調理・ホール・ウェイター/ウェイトレス・デリバリー 等)' title='フード系(調理・ホール・ウェイター/ウェイトレス・デリバリー 等)' width='700'></div>");
	}
	if(title == '販売系'){
		document.write("<div><img src='../img_src/index2c_1_buy.gif' alt='販売系(洋服・雑貨・CD・本・化粧品・お菓子/お惣菜 等)' title='販売系(洋服・雑貨・CD・本・化粧品・お菓子/お惣菜 等)' width='700'></div>");
	}
	if(title == 'オフィスワーク系'){
		document.write("<div><img src='../img_src/index2c_1_office.gif' alt='オフィスワーク系(一般事務・データ入力・テレフォンオペレーター・事務全般)' title='オフィスワーク系(一般事務・データ入力・テレフォンオペレーター・事務全般)' width='700'></div>");
	}
	if(title == 'IT・Web系'){
		document.write("<div><img src='../img_src/index2c_1_it.gif' alt='IT・Web系(SE・PG・デザイナー・コンテンツ作成・ユーザサポート 等)' title='IT・Web系(SE・PG・デザイナー・コンテンツ作成・ユーザサポート 等)' width='700'></div>");
	}
	if(title == '営業系'){
		document.write("<div><img src='../img_src/index2c_1_sales.gif' alt='営業系(企画営業・営業アシスタント・カウンター営業・ルートセールス 等)' title='営業系(企画営業・営業アシスタント・カウンター営業・ルートセールス 等)' width='700'></div>");
	}
	if(title == '軽作業・体力系'){
		document.write("<div><img src='../img_src/index2c_1_power.gif' alt='軽作業・体力系(仕分け/商品管理・警備・ガソリンスタンド・新聞配達・清掃・引越 等)' title='軽作業・体力系(仕分け/商品管理・警備・ガソリンスタンド・新聞配達・清掃・引越 等)' width='700'></div>");
	}
	if(title == 'ライダー・ドライバー系'){
		document.write("<div><img src='../img_src/index2c_1_driver.gif' alt='ライダー・ドライバー系(バイク便・タクシー運転手・トラック[2t.4t]・ルート配送 等)' title='ライダー・ドライバー系(バイク便・タクシー運転手・トラック[2t.4t]・ルート配送 等)' width='700'></div>");
	}
	if(title == '美容・医療関連職'){
		document.write("<div><img src='../img_src/index2c_1_drug.gif' alt='美容・医療関連職(美容師・エステシャン・マッサージ師・歯科助手・介護士 等)' title='美容・医療関連職(美容師・エステシャン・マッサージ師・歯科助手・介護士 等)' width='700'></div>");
	}
	if(title == 'イベント・レジャー関連職'){
		document.write("<div><img src='../img_src/index2c_1_ivent.gif' alt='イベント・レジャー関連職(パチンコ・カラオケ・イベント・ゲームセンタースタッフ 等)' title='イベント・レジャー関連職(パチンコ・カラオケ・イベント・ゲームセンタースタッフ 等)' width='700'></div>");
	}

	if(title == '新宿・高田馬場・中野'){
		document.write("<div><img src='../img_src/index2c_k0100.gif' alt='新宿・高田馬場・中野' title='新宿・高田馬場・中野' width='700'></div>");
	}

	if(title == '渋谷・自由が丘'){
		document.write("<div><img src='../img_src/index2c_k0200.gif' alt='渋谷・自由が丘' title='渋谷・自由が丘' width='700'></div>");
	}

	if(title == '池袋・大塚・練馬'){
		document.write("<div><img src='../img_src/index2c_k0300.gif' alt='池袋・大塚・練馬' title='池袋・大塚・練馬' width='700'></div>");
	}

	if(title == '原宿・青山'){
		document.write("<div><img src='../img_src/index2c_k0400.gif' alt='原宿・青山' title='原宿・青山' width='700'></div>");
	}

	if(title == '新橋・銀座・築地・お台場'){
		document.write("<div><img src='../img_src/index2c_k0500.gif' alt='新橋・銀座・築地・お台場' title='新橋・銀座・築地・お台場' width='700'></div>");
	}

	if(title == '赤坂・六本木'){
		document.write("<div><img src='../img_src/index2c_k0600.gif' alt='赤坂・六本木' title='赤坂・六本木' width='700'></div>");
	}

	if(title == '恵比寿・目黒・広尾・麻布・白金'){
		document.write("<div><img src='../img_src/index2c_k0700.gif' alt='恵比寿・目黒・広尾・麻布・白金' title='恵比寿・目黒・広尾・麻布・白金' width='700'></div>");
	}

	if(title == '有楽町・東京・日本橋・神田'){
		document.write("<div><img src='../img_src/index2c_k0800.gif' alt='有楽町・東京・日本橋・神田' title='有楽町・東京・日本橋・神田' width='700'></div>");
	}

	if(title == '上野・秋葉原・浅草'){
		document.write("<div><img src='../img_src/index2c_k0900.gif' alt='上野・秋葉原・浅草' title='上野・秋葉原・浅草' width='700'></div>");
	}

	if(title == '品川・五反田・大崎'){
		document.write("<div><img src='../img_src/index2c_k1000.gif' alt='品川・五反田・大崎' title='品川・五反田・大崎' width='700'></div>");
	}

	if(title == '四谷・市ヶ谷・飯田橋・後楽園'){
		document.write("<div><img src='../img_src/index2c_k1100.gif' alt='四谷・市ヶ谷・飯田橋・後楽園' title='四谷・市ヶ谷・飯田橋・後楽園' width='700'></div>");
	}

	if(title == '吉祥寺・立川・八王子'){
		document.write("<div><img src='../img_src/index2c_k1200.gif' alt='吉祥寺・立川・八王子' title='吉祥寺・立川・八王子' width='700'></div>");
	}

	if(title == '神奈川'){
		document.write("<div><img src='../img_src/index2c_k1300.gif' alt='神奈川' title='神奈川' width='700'></div>");
	}

	if(title == '千葉'){
		document.write("<div><img src='../img_src/index2c_k1400.gif' alt='千葉' title='千葉' width='700'></div>");
	}

	if(title == '埼玉'){
		document.write("<div><img src='../img_src/index2c_k1500.gif' alt='埼玉' title='埼玉' width='700'></div>");
	}
}


/**
 * 職種で検索を行います。
 * @param target 職種ID
 */
function goTenshokuSearch(target){
	document.frm.SYOKUSYU.value = target;
	document.frm.submit();
}

function divTagShowSwitch(target){
	var views = target;
	if(views==1){
		document.write("<div style='display:block;'>");
	}else{
		document.write("<div style='display:none;'>");
	}
}

function divTagClose(){
	document.write("</div>");
}

function showBosyuSyokusyu(target){
	var view = target;
	if(view==1){
		document.write("<div>募集職種</div>");
	}
}

function showTorihiki(torihiki,pict3){
/*
	var t1='';
	var t2='';
	t2 += torihiki;
	if(t1 != t2){
		document.write("<div id='pict3_a'>");
		document.write("<div id='txt_1'>"+torihiki+"</div>");
		document.write("<div id='pct_1'>"+pict3+"</div><br>");
		document.write("</div>");
		document.write("<div id='pict3_b'>");
		document.write("<div id='txt_2'>"+torihiki+"</div><br>");
		document.write("</div>");
	}
*/
}


function bosyuValues(name,value){
	if(value!=''){
		document.write("<tr>");
		document.write("<td id='name'>");
		document.write("<div>"+name+"</div>");
		document.write("</td>");
		document.write("<td id='value'>");
		document.write("<div>"+value+"</div>");
		document.write("</td>");
		document.write("</tr>");
	}
}

function writeTableTagOpen(style){
	document.write("<table cellspacing='1' id='"+style+"' class='fontM'>");
}

function writeTableTagClose(){
	document.write("</table>");
}

var vParam = new Array(15);
vParam[0] = 'gaiyo';
vParam[1] = 'bosyu';
vParam[2] = 'otoiawase';
var vCnt=3;

function putvParam(pm){
	vParam[vCnt] = pm;
	vCnt++;
}

function ankenSwitch(haken,syokai){

	if(haken == 'OK'){
		dispSwitcher('hakenNon','hakenBtn');
		putvParam('anken');
	}

	if(syokai == 'OK'){
		dispSwitcher('syokai_format','anken_format');
		document.getElementById('syokai_format').style.display='block';
		document.getElementById('anken_format').style.display='none';
		putvParam('anken');
	}
	bosyuSelected();
}


function bosyuSelected(){
	var lo = "";
	lo=location.href;
	var vSharp = lo.split("#");

	if(vSharp[1]!=null){

	if(isNaN(vSharp[1])==true){
		if(vSharp[1].length>0){
			selectPages(vSharp[1]);
		}else{
			selectPages('gaiyo');
		}
	}else{
		if(vSharp[1]>0){
			selectPages(vSharp[1]);
		}else{
			selectPages('gaiyo');
		}
	}

	}else{
		selectPages('gaiyo');
	}
}

function dispSwitcher(closeID,openID)
{
//	document.getElementById(openID).style.display='block';
//	document.getElementById(closeID).style.display='none';
	var o = document.getElementById(openID);
	if (o != null) {
		o.style.display='block';
	}

	o = document.getElementById(closeID);
	if (o != null) {
		o.style.display='none';
	}
}

function selectPages(target){

	var flg=0;

	for(i=0; i<vParam.length; i++){
		if(target==vParam[i]){
			document.getElementById(target).style.display='block';
			flg=1;
		}else{
			var param=vParam[i];
			if(param!=null){
				document.getElementById(vParam[i]).style.display='none';
			}
		}
	}

	if(flg==0){
		document.getElementById('gaiyo').style.display='block';
	}
}

function makeKeireki(target){
	document.FormName.SUB.value=target;
	document.FormName.ADD_CAREER.value="ON";
	document.FormName.submit();
}


function sodanSub(){
	var errmsg          = "** 入力エラー **\n\n";
	var sel             = document.form.elements[8].selectedIndex;
	var name_value      = document.form.elements[3].value;
	var id_value        = document.form.elements[4].value;
	var id_value_substr = id_value.substr(0,2);
	var mail_value      = document.form.elements[6].value;
	var quest_value     = document.form.elements[9].value;

	if( name_value == '' ){
		errmsg += "お名前を入力して下さい\n";
	}

	if( id_value == '' ){
		errmsg += "ワークタンクの登録IDを入力して下さい\n";
	}else{
		if( id_value_substr != 'cr' && id_value_substr != 'hk' && id_value_substr != 'ta' && id_value_substr != 'tb' && id_value_substr != 'tc' && id_value_substr != 'af' && id_value_substr != 'bk' ){
			errmsg += "正しいワークタンクの登録IDを入力して下さい\n";
		}
	}

	if( mail_value == '' ){
		errmsg += "メールアドレスを入力して下さい\n";
	}

	if( sel < 0 ){
		errmsg += "ご相談いただく先生を選択して下さい\n";
	}else{
		document.form.elements[2].value = document.form.sendto.options[sel].value;
	}

	if( quest_value == '' ){
		errmsg += "ご質問内容を入力して下さい\n";
	}

	if( errmsg.length > 18 ){
		window.alert(errmsg);
		return;
	}

	document.form.submit();
}


function insKeireki(target){

	var syear = document.FormName.CRR_SYEAR.selectedIndex;
	var eyear = document.FormName.CRR_EYEAR.selectedIndex;
	var smonth = document.FormName.CRR_SMONTH.selectedIndex;
	var emonth = document.FormName.CRR_EMONTH.selectedIndex;

	if(syear > eyear){
		alert('正しい年月を入力を選択して下さい');
		return false;
	}

	if(syear==eyear){
		if(smonth>emonth){
			alert('正しい年月を入力を選択して下さい');
			return false;
		}
	}

	if(document.FormName.CRR_JOB.selectedIndex==0){
		alert("職種を選択して下さい");
		return false;
	}

	if(document.FormName.CRR_JOB.selectedIndex==1 || document.FormName.CRR_JOB.selectedIndex==2){
		if(document.FormName.CRR_GYOKAI.selectedIndex==0){
			alert("開発ジャンルを選択して下さい");
			return false;
		}

		if(document.FormName.CRR_GYOKAIOP.value==""){
			alert("開発ジャンルの業界・分野を選択して下さい");
			return false;
		}

		if(document.FormName.CRR_GYOKAI.selectedIndex==1 || document.FormName.CRR_GYOKAI.selectedIndex==2 || document.FormName.CRR_GYOKAI.selectedIndex==3){
			if(document.FormName.CRR_GYOKAIOPSUB.selectedIndex==0){
				alert("開発ジャンルの業務システム詳細を選択して下さい");
				return false;
			}
		}

		if(document.FormName.CRR_KIBO.selectedIndex==0){
			alert("プロジェクト規模を選択して下さい");
			return false;
		}

		var flgCRR_GYOMU = 0;
		for(i=0; i<document.FormName.CRR_GYOMU.length; i++){
			if(document.FormName.CRR_GYOMU[i].checked == true){
				flgCRR_GYOMU = 1;
			}
		}
		if(flgCRR_GYOMU == 0){
			alert("業務内容を選択して下さい");
			return false;
		}

	}else{
		var sbCRR_CMNT = document.FormName.CRR_CMNT.value;
		if(sbCRR_CMNT.length < 1){
			alert("キャリアコメントを入力して下さい");
			return false;
		}
		document.FormName.CRR_NAME.value=document.FormName.CRR_JOB_SHOWCASE[document.FormName.CRR_JOB.selectedIndex].value;
	}

	if(document.FormName.CRR_NAME.value == ""){
		alert("プロジェクト名をご記入下さい");
		return false;
	}

	document.FormName.ADD_CAREER.value="ON";
	document.FormName.SUB.value=target;
	document.FormName.submit();
}

function editKeireki(target){
	document.FormNam.ADD_CAREER.value="ON";
	document.FormNam.SUB.value=target;
	document.FormNam.submit();
}

function testClose2(){
	document.FormName.SUB.value="";
	document.FormName.submit();
}

var itemArray = new Array('os','gyomu','lang','db','server','net','crm','groupware');
var itemNameArray = new Array('CRR_OS','CRR_GYOMU','CRR_LANG','CRR_DB','CRR_SERVER','CRR_NET','CRR_CRM','CRR_GROUPWARE');

function AfterYear(frm,target){
	document.getElementById(target).selected=frm.CRR_SYEAR.selectedIndex;
}

function genreSelect2(){
	var target=document.FormName.CRR_GYOKAI.selectedIndex;
	var OPTION_PARAM = 'CRR_GYOKAIOP'+target;

	if(document.FormName.CRR_GYOKAI.selectedIndex == 0){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 1){
		document.getElementById('op1').style.display='block';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 2){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='block';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 3){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='block';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 4){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='block';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 5){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='block';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 6){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='block';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 7){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='block';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 8){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='block';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 9){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='block';
	}

	GyokaiOptionMove(OPTION_PARAM);
}

function genreSelect(){

	document.FormName.CRR_GYOKAIOP.value="";
	document.FormName.CRR_GYOKAIOP1.options[0].selected = true;
	document.FormName.CRR_GYOKAIOP2.options[0].selected = true;
	document.FormName.CRR_GYOKAIOP3.options[0].selected = true;
	document.FormName.CRR_GYOKAIOP4.options[0].selected = true;
	document.FormName.CRR_GYOKAIOP5.options[0].selected = true;
	document.FormName.CRR_GYOKAIOP6.options[0].selected = true;
	document.FormName.CRR_GYOKAIOP7.options[0].selected = true;
	document.FormName.CRR_GYOKAIOP8.options[0].selected = true;
	document.FormName.CRR_GYOKAIOP9.options[0].selected = true;
	document.FormName.CRR_GYOKAIOPSUB.options[0].selected = true;

	if(document.FormName.CRR_GYOKAI.selectedIndex == 0){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 1){
		document.getElementById('op1').style.display='block';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 2){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='block';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 3){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='block';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 4){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='block';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 5){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='block';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 6){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='block';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 7){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='block';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 8){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='block';
		document.getElementById('op9').style.display='none';
	}
	if(document.FormName.CRR_GYOKAI.selectedIndex == 9){
		document.getElementById('op1').style.display='none';
		document.getElementById('op2').style.display='none';
		document.getElementById('op3').style.display='none';
		document.getElementById('op4').style.display='none';
		document.getElementById('op5').style.display='none';
		document.getElementById('op6').style.display='none';
		document.getElementById('op7').style.display='none';
		document.getElementById('op8').style.display='none';
		document.getElementById('op9').style.display='block';
	}

	document.getElementById('opSub').style.display='none';
}

function ItShow(frm,target){

	if(document.FormName.CRR_JOB.selectedIndex == 1 || document.FormName.CRR_JOB.selectedIndex == 2){
		document.getElementById(target).style.display='block';
		document.getElementById('ex0').style.display='none';
		document.getElementById('ex1').style.display='block';
		document.getElementById('ex2').style.display='none';
	}else{
		document.getElementById(target).style.display='none';
		document.getElementById('ex0').style.display='none';
		document.getElementById('ex1').style.display='none';
		document.getElementById('ex2').style.display='block';
		for(i=0; i<itemArray.length; i++){
			document.getElementById(itemArray[i]).style.display='none';
		}
	}

	if(document.FormName.CRR_JOB.selectedIndex == 0){
		document.getElementById('ex0').style.display='block';
		document.getElementById('ex1').style.display='none';
		document.getElementById('ex2').style.display='none';
	}

	DropName();
}

function DropName(){
	if(document.FormName.CRR_JOB.selectedIndex!=1 && document.FormName.CRR_JOB.selectedIndex!=2){
		for(i=0; i<itemNameArray.length; i++){
			document.getElementById(itemNameArray[i]).value="";
		}
		document.FormName.CRR_NAME.value="";
	}
}


function GyokaiOptionMove(target){

	document.FormName.CRR_GYOKAIOP.value="";

	if(target=='CRR_GYOKAIOP1'){
		for(j=0; j<document.FormName.CRR_GYOKAIOP1.length; j++){
			if(document.FormName.CRR_GYOKAIOP1[j].selected==true && document.FormName.CRR_GYOKAIOP1[j].selectedIndex != 0){
				document.FormName.CRR_GYOKAIOP.value=document.FormName.CRR_GYOKAIOP1[j].value;
			}
		}
		document.getElementById('opSub').style.display='block';
	}

	if(target=='CRR_GYOKAIOP2'){
		for(j=0; j<document.FormName.CRR_GYOKAIOP2.length; j++){
			if(document.FormName.CRR_GYOKAIOP2[j].selected==true && document.FormName.CRR_GYOKAIOP2[j].selectedIndex != 0){
				document.FormName.CRR_GYOKAIOP.value=document.FormName.CRR_GYOKAIOP2[j].value;
			}
		}
		document.getElementById('opSub').style.display='block';
	}

	if(target=='CRR_GYOKAIOP3'){
		for(j=0; j<document.FormName.CRR_GYOKAIOP3.length; j++){
			if(document.FormName.CRR_GYOKAIOP3[j].selected==true){
				document.FormName.CRR_GYOKAIOP.value=document.FormName.CRR_GYOKAIOP3[j].value;
			}
		}
		document.getElementById('opSub').style.display='block';
	}

	if(target=='CRR_GYOKAIOP4'){
		for(j=0; j<document.FormName.CRR_GYOKAIOP4.length; j++){
			if(document.FormName.CRR_GYOKAIOP4[j].selected==true){
				document.FormName.CRR_GYOKAIOP.value=document.FormName.CRR_GYOKAIOP4[j].value;
			}
		}
	}

	if(target=='CRR_GYOKAIOP5'){
		for(j=0; j<document.FormName.CRR_GYOKAIOP5.length; j++){
			if(document.FormName.CRR_GYOKAIOP5[j].selected==true){
				document.FormName.CRR_GYOKAIOP.value=document.FormName.CRR_GYOKAIOP5[j].value;
			}
		}
	}

	if(target=='CRR_GYOKAIOP6'){
		for(j=0; j<document.FormName.CRR_GYOKAIOP6.length; j++){
			if(document.FormName.CRR_GYOKAIOP6[j].selected==true){
				document.FormName.CRR_GYOKAIOP.value=document.FormName.CRR_GYOKAIOP6[j].value;
			}
		}
	}

	if(target=='CRR_GYOKAIOP7'){
		for(j=0; j<document.FormName.CRR_GYOKAIOP7.length; j++){
			if(document.FormName.CRR_GYOKAIOP7[j].selected==true){
				document.FormName.CRR_GYOKAIOP.value=document.FormName.CRR_GYOKAIOP7[j].value;
			}
		}
	}

	if(target=='CRR_GYOKAIOP8'){
		for(j=0; j<document.FormName.CRR_GYOKAIOP8.length; j++){
			if(document.FormName.CRR_GYOKAIOP8[j].selected==true){
				document.FormName.CRR_GYOKAIOP.value=document.FormName.CRR_GYOKAIOP8[j].value;
			}
		}
	}

	if(target=='CRR_GYOKAIOP9'){
		for(j=0; j<document.FormName.CRR_GYOKAIOP9.length; j++){
			if(document.FormName.CRR_GYOKAIOP9[j].selected==true){
				document.FormName.CRR_GYOKAIOP.value=document.FormName.CRR_GYOKAIOP9[j].value;
			}
		}
	}

}

function deleteConfirm(frm){
	if(confirm('本当によろしいですか？')){
		frm.submit();
	}
}

function overYear(){
	return false;
}

/* ロールオーバー設定　*/
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}
