
// from prototype.js
var _Browser =  {
    IE:     !!(window.attachEvent && !window.opera),
    Opera:  !!window.opera,
    WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
    Gecko:  navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
    MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
  };

/* ===============================================
	レイヤーの表示形式を変更
=============================================== */
function changeLayerDisplay(id,dis){
	if(document.all || document.getElementById){
		if(document.getElementById){
			var obj = document.getElementById(id);
			if(dis == "none"){
				obj.parentNode.removeChild(obj);
			}else{
				obj.style.display = dis;
			}
		} else if(document.all){
			document.all(id).style.display = dis;
                }
	}
}

/* ===============================================
	ポップアップウインドウ
=============================================== */

// ツールバーのみ表示
function popwintool(url,name,w,h) {
	var typewin;
	var bars = "location=no,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,directories=no,resizable=yes,top=20,left=20";
	typewin = window.open(url,name,'width=' + w + ',height=' + h + bars);

//	typewin.focus();
//  Opera 対策。Focusは子ウィンドウで制御

}


// すべてのバー非表示
function popwin(url,name,w,h) {
	var typewin;
	var bars = "location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,directories=no,resizable=yes,top=20,left=20";
	typewin = window.open(url,name,'width=' + w + ',height=' + h + bars);
}


// ツールバーのみ表示（スクリーンの高さに依存）
function popwinscreentool(url,name,w) {
	var typewin;
	var agt=navigator.userAgent.toLowerCase();
	var bars = "location=no,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,directories=no,resizable=yes,top=20,left=20";
	if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) {
		var h = document.body.clientHeight - 20;
		typewin = window.open(url,name,'width=' + w + ',height=' + h + bars);
		} else {
		var h = window.outerHeight - 120;
		typewin = window.open(url,name,'width=' + w + ',height=' + h + bars);
	}
}

// すべてのバー非表示（スクリーンの高さに依存）
function popwinscreen(url,name,w) {
	var typewin;
	var agt=navigator.userAgent.toLowerCase();
	var bars = "location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,directories=no,resizable=yes,top=20,left=20";

	if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) {
		var h = document.body.clientHeight + 60;
		typewin = window.open(url,name,'width=' + w + ',height=' + h + bars);
		} else {
		var h = window.outerHeight - 70;
		typewin = window.open(url,name,'width=' + w + ',height=' + h + bars);
	}
}



function createXMLHttpRequest() {
	var xmlhttp = false;
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP")
    } catch (e) {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
    }
  }

  return xmlhttp;
}

function registerBookmark(type,id){
	var request = createXMLHttpRequest();
	var url="/bookmark/add_bookmark.do";
	url += "?" + type +"Id=" + id;
	var divPos = "div-"+type + "-" + id;
	var ancPos = "anc-"+type + "-" + id;
	var anc2Pos = "anc2-"+type + "-" + id;
	var imgPos = "img-"+type + "-" + id;
	
	var msgObjOK = document.getElementById("bookmark-popup-msg-ok");
	var msgObjNG = document.getElementById("bookmark-popup-msg-ng");
	
	var status = true;
	try{
		request.open("GET",url,false);
		request.setRequestHeader("If-Modified-Since","Thu, 01 Jun 1970 00:00:00 GMT"); 
		request.send("");
	}catch(e){
		status = false;
	}

	if (request.readyState != 4 || request.status != 200) {
		status = false;
	}
	
	var divObj = document.getElementById(divPos);
	var ancObj = document.getElementById(ancPos);
	var anc2Obj = document.getElementById(anc2Pos);
	var imgObj = document.getElementById(imgPos);
	var popupObj = document.getElementById("bookmark-popup");

	divObj.insertBefore(popupObj,ancObj);

	if(status){
		if(imgObj != null){
			imgObj.src = "/img/search/btn_looklistexamining.gif";
		}
		if(!anc2Obj){
			anc2Obj.href="/mypage/bookmark_list.do";
		}
		msgObjOK.style.display = "";
		msgObjNG.style.display = "none";
	}else{
		msgObjOK.style.display = "none";
		msgObjNG.style.display = "";
	}
	popupObj.style.display = "";
}
function registerBookmarkForJobDetail(id,position){
	var request = createXMLHttpRequest();
	var url="/bookmark/add_bookmark.do";
	url += "?jobId=" + id;
		
	var status = true;

	try{
		request.open("GET",url,false);
		request.setRequestHeader("If-Modified-Since","Thu, 01 Jun 1970 00:00:00 GMT"); 
		request.send("");
	}catch(e){
		status = false;
	}

	if (request.readyState != 4 || request.status != 200) {
		status = false;
	}

	var ancPos = "anc-job-" + position;
	var imgPos = "img-job-" + position;
	var divPos = "div-job-" + position;
	
	var divObj = document.getElementById(divPos);
	var ancObj = document.getElementById(ancPos);
	var imgObj = document.getElementById(imgPos);

	var msgObjOK = document.getElementById("bookmark-popup-msg-ok");
	var msgObjNG = document.getElementById("bookmark-popup-msg-ng");

	var popupObj = document.getElementById("bookmark-popup");
	popupObj.style.display = "";
	divObj.insertBefore(popupObj,ancObj);

	if(status){
		for(i = 1;i < 4;i++){
			var tmpObj = document.getElementById("anc-job-" + i);
			tmpObj.href = "/mypage/bookmark_list.do";
			tmpObj = document.getElementById("img-job-" + i);
			if(tmpObj != null){
				tmpObj.src = "/img/search/btn_looklistexamining.gif";
			}
		}
		msgObjOK.style.display = "";
		msgObjNG.style.display = "none";
	}else{
		msgObjOK.style.display = "none";
		msgObjNG.style.display = "";
	}
}

function registerBookmarkWithoutPosition(type,id, element){
	var request = createXMLHttpRequest();
	var url="/bookmark/add_bookmark.do";
	url += "?" + type +"Id=" + id;
	
	var status = true;

	try{
		request.open("GET",url,false);
		request.setRequestHeader("If-Modified-Since","Thu, 01 Jun 1970 00:00:00 GMT"); 
		request.send("");
	}catch(e){
		status = false;
	}
	if (request.readyState != 4 || request.status != 200) {
		status = false;
	}
	
	var popupMsgOK = document.getElementById("bookmark-popup-msg-ok");
	var popupMsgNG = document.getElementById("bookmark-popup-msg-ng");
	if(status){
		popupMsgOK.style.display = "";
		popupMsgNG.style.display = "none";
	}else{
		popupMsgOK.style.display = "none";
		popupMsgNG.style.display = "";
	}
	var popupObj = document.getElementById("bookmark-popup");
	popupObj.style.display = "";
}

function closeBookmarkPopup(){
	var popupObj = document.getElementById("bookmark-popup");
	popupObj.style.display = "none";
}

function setSwfFile(id,file){
	if(file != ''){
 		document.getElementById(id).innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"710\" height=\"300\" id=\"at-type\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"http://type.jp/swf/webcm/" + file + "\" /><param name=\"quality\" value=\"high\" /><param name=\"salign\" value=\"t\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"/swf/webcm/" + file + "\" quality=\"high\" salign=\"t\" bgcolor=\"#ffffff\" width=\"710\" height=\"300\" name=\"at-type\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" /></object>";
 	}else{
	 doc.getElementById(id).innerHTML = "";
 	}
}

function getZipcodes(){
	// FIXME
	document.getElementById('zip1');
	document.getElementById('zip2');
}

/* ===============================================
	小分類以外を選択したらアラート表示
=============================================== */

function checkOldJob(select) {
	if (select.value == "-1") {
		alert("経験職種は小分類を選択してください。");
		select.selectedIndex=0;
	}
}

function checkJob(select) {
	if (select.value == "-1") {
		alert("希望職種は小分類を選択してください。");
		select.selectedIndex=0;
	}
}

function checkPlace(select) {
	if (select.value == "-1") {
		alert("希望勤務地は小分類を選択してください。");
		select.selectedIndex=0;
	}
}

/* ===============================================
	入力文字数表示
=============================================== */

function countLengthMessage(checkTarget, outputTarget) {
  var target=document.getElementById(outputTarget);

  target.innerHTML = "全角で約<span class=\"nm\"><span class=\"l orange2\">" + strMultibyteLength( document.getElementById(checkTarget).value ) + "</span></span>文字です";

  target.style.visibility = "visible";
  setTimeout("hideCountLengthMessage(\'" + outputTarget + "\')",5000);
}

function hideCountLengthMessage( outputTarget ){
  var target=document.getElementById(outputTarget);
  target.style.visibility = "hidden";
}

function strMultibyteLength(targetValue){
	var total = 0;
	var str = targetValue;
	str = str.replace(/\r\n/g, "\n");
	str = str.replace(/\n/g, "\r\n");
	for(var i=0; i<str.length; i++) {
		ch = str.substr(i,1);
		if (ch.charCodeAt() <= 255) {
			total++;
		} else {
			total = total + 2;
		}
	}
	total = total / 2;
	return Math.ceil( total );
}

/* ===============================================
	企業ページの検討中リスト対応
=============================================== */
function registerBookmarkWithoutPosition2(type,id, element){
	var request = createXMLHttpRequest();
	var url="/bookmark/add_bookmark.do";
	url += "?" + type +"Id=" + id;
	
	var status = true;

	try{
		request.open("GET",url,false);
		request.setRequestHeader("If-Modified-Since","Thu, 01 Jun 1970 00:00:00 GMT"); 
		request.send("");
	}catch(e){
		status = false;
	}
	if (request.readyState != 4 || request.status != 200) {
		status = false;
	}
	
	var popupMsgOK = document.getElementById("bookmark-popup-msg-ok2");
	var popupMsgNG = document.getElementById("bookmark-popup-msg-ng2");
	if(status){
		popupMsgOK.style.display = "";
		popupMsgNG.style.display = "none";
	}else{
		popupMsgOK.style.display = "none";
		popupMsgNG.style.display = "";
	}
	var popupObj = document.getElementById("bookmark-popup2");
	popupObj.style.display = "";
}

function closeBookmarkPopup2(){
	var popupObj = document.getElementById("bookmark-popup2");
	popupObj.style.display = "none";
}

/* ===============================================
	紹介の業種制御系
=============================================== */

function shoukaiIndustryCategoryChange( selectSource, setTarget ){
	var index = document.getElementById( selectSource ).selectedIndex;
	var target = document.getElementById( setTarget );

	if( index != 0 ){
	    for (var i = 0; i <= target.length ; i++) {
	        target.removeChild(target.lastChild);
	    }
		target.length=0;

		target.options[ target.length ] = new Option( '選択してください', '' );

		switch( index ){
			case 1:
target.options[ target.length ] = new Option( 'システムインテグレータ／ソフトハウス', '100100010' );
target.options[ target.length ] = new Option( 'ITコンサルティング', '100100020' );
target.options[ target.length ] = new Option( 'ネットワークインテグレーター', '100100030' );
target.options[ target.length ] = new Option( '通信／ISP／データセンター', '100100040' );
target.options[ target.length ] = new Option( 'その他ＩＴ/通信　', '100100100' );
target.options[ target.length ] = new Option( 'ハードウェアベンダー（サーバ、ストレージ、PC、OA、周辺機器など）', '100100060' );
target.options[ target.length ] = new Option( '通信機器ベンダー（ルーター、スイッチ、基地局など）', '100100070' );
target.options[ target.length ] = new Option( 'セキュリティベンダー（ハード、ソフト、コンサルなど）', '100100080' );
target.options[ target.length ] = new Option( 'IT系商社', '100100090' );
target.options[ target.length ] = new Option( 'ソフトウェアベンダー', '100100050' );
				break;
			case 2:
target.options[ target.length ] = new Option( 'Webインテグレーター（サイト構築/コンサルティング）/BtoB', '100200010' );
target.options[ target.length ] = new Option( 'ECサイト/ポータルサイト/BtoC', '100200020' );
target.options[ target.length ] = new Option( 'ネット広告', '100200030' );
target.options[ target.length ] = new Option( 'その他Web・インターネット', '100200070' );
target.options[ target.length ] = new Option( 'モバイル', '100200050' );
target.options[ target.length ] = new Option( 'eラーニング', '100200060' );
target.options[ target.length ] = new Option( 'ネットリサーチ', '100200040' );
				break;
			case 3:
target.options[ target.length ] = new Option( '都市銀行', '100300010' );
target.options[ target.length ] = new Option( 'その他金融', '100300150' );
target.options[ target.length ] = new Option( '地方銀行', '100300030' );
target.options[ target.length ] = new Option( '信金／信組', '100300040' );
target.options[ target.length ] = new Option( '銀行他', '100300050' );
target.options[ target.length ] = new Option( '生命保険', '100300060' );
target.options[ target.length ] = new Option( '損害保険', '100300070' );
target.options[ target.length ] = new Option( 'リース', '100300080' );
target.options[ target.length ] = new Option( '証券会社', '100300090' );
target.options[ target.length ] = new Option( '不動産金融', '100300100' );
target.options[ target.length ] = new Option( 'クレジット／信販', '100300110' );
target.options[ target.length ] = new Option( '消費者金融／商工ローン／商品取引／短資', '100300120' );
target.options[ target.length ] = new Option( '投信／投資顧問', '100300130' );
target.options[ target.length ] = new Option( 'ベンチャーキャピタル', '100300140' );
target.options[ target.length ] = new Option( '信託銀行', '100300020' );
				break;
			case 4:
target.options[ target.length ] = new Option( 'コンサルティングファーム（経営／戦略系）', '100400010' );
target.options[ target.length ] = new Option( 'コンサルティングファーム（組織／人事系）', '100400020' );
target.options[ target.length ] = new Option( 'コンサルティングファーム（財務／会計系）', '100400030' );
target.options[ target.length ] = new Option( 'コンサルティングファーム（その他）', '100400040' );
target.options[ target.length ] = new Option( 'シンクタンク', '100400050' );
target.options[ target.length ] = new Option( 'リサーチ／マーケティング', '100400060' );
target.options[ target.length ] = new Option( 'その他専門サービス', '100400140' );
target.options[ target.length ] = new Option( '税理士法人', '100400080' );
target.options[ target.length ] = new Option( '会計事務所', '100400090' );
target.options[ target.length ] = new Option( '特許事務所', '100400100' );
target.options[ target.length ] = new Option( '法律事務所', '100400110' );
target.options[ target.length ] = new Option( '社会保険労務士事務所', '100400120' );
target.options[ target.length ] = new Option( '建設設計／建設コンサルティング', '100400130' );
target.options[ target.length ] = new Option( '監査法人', '100400070' );
				break;
			case 5:
target.options[ target.length ] = new Option( '人材サービス', '100500010' );
target.options[ target.length ] = new Option( '人材紹介', '100500020' );
target.options[ target.length ] = new Option( '人材派遣', '100500030' );
target.options[ target.length ] = new Option( '教育／研修', '100500040' );
target.options[ target.length ] = new Option( 'コールセンター', '100500050' );
target.options[ target.length ] = new Option( 'その他人材・アウトソーシング・コールセンター', '100500120' );
target.options[ target.length ] = new Option( 'アウトソーシング（採用系）', '100500070' );
target.options[ target.length ] = new Option( 'アウトソーシング（事務系）', '100500080' );
target.options[ target.length ] = new Option( 'アウトソーシング（軽作業系）', '100500090' );
target.options[ target.length ] = new Option( 'アウトソーシング（設計開発系）', '100500100' );
target.options[ target.length ] = new Option( 'アウトソーシング（IT・通信・Web系）', '100500110' );
target.options[ target.length ] = new Option( 'アウトソーシング（営業系）', '100500060' );
				break;
			case 6:
target.options[ target.length ] = new Option( '医薬品メーカー', '100600010' );
target.options[ target.length ] = new Option( '医療機器／医療関連メーカー', '100600020' );
target.options[ target.length ] = new Option( '医薬品卸', '100600030' );
target.options[ target.length ] = new Option( 'その他医療／医薬サービス', '100600070' );
target.options[ target.length ] = new Option( 'CRO／SMO／CSO', '100600050' );
target.options[ target.length ] = new Option( 'バイオ関連', '100600060' );
target.options[ target.length ] = new Option( '医療機器／医療関連卸', '100600040' );
				break;
			case 7:
target.options[ target.length ] = new Option( '住宅', '100700010' );
target.options[ target.length ] = new Option( 'その他住宅・不動産関連', '100700040' );
target.options[ target.length ] = new Option( '不動産（ディベロッパー）', '100700030' );
target.options[ target.length ] = new Option( '不動産（仲介）', '100700020' );
				break;
			case 8:
target.options[ target.length ] = new Option( '建築／土木', '100800010' );
target.options[ target.length ] = new Option( 'その他建築・土木', '100800040' );
target.options[ target.length ] = new Option( '設備関連', '100800030' );
target.options[ target.length ] = new Option( '建材関連', '100800020' );
				break;
			case 9:
target.options[ target.length ] = new Option( '食料品', '100900010' );
target.options[ target.length ] = new Option( 'ファッション・アパレル', '100900020' );
target.options[ target.length ] = new Option( 'スポーツ用品', '100900030' );
target.options[ target.length ] = new Option( '化粧品', '100900040' );
target.options[ target.length ] = new Option( '文具／事務機器', '100900050' );
target.options[ target.length ] = new Option( '日用品（家庭／育児関連）', '100900060' );
target.options[ target.length ] = new Option( 'インテリア', '100900070' );
target.options[ target.length ] = new Option( '総合電機', '100900080' );
target.options[ target.length ] = new Option( '重電／産業用電気機器', '100900090' );
target.options[ target.length ] = new Option( '家電／AV機器', '100900100' );
target.options[ target.length ] = new Option( 'ゲームソフト／玩具／アミューズメント機器', '100900110' );
target.options[ target.length ] = new Option( '電子／電気部品', '100900120' );
target.options[ target.length ] = new Option( '半導体関連', '100900130' );
target.options[ target.length ] = new Option( '輸送機器', '100900140' );
target.options[ target.length ] = new Option( '自動車', '100900150' );
target.options[ target.length ] = new Option( '自動車部品', '100900160' );
target.options[ target.length ] = new Option( '精密機器／計測機器', '100900170' );
target.options[ target.length ] = new Option( '印刷関連', '100900180' );
target.options[ target.length ] = new Option( '紙／パルプ', '100900190' );
target.options[ target.length ] = new Option( '化学', '100900200' );
target.options[ target.length ] = new Option( '陶業／セメント', '100900210' );
target.options[ target.length ] = new Option( '鉄鋼', '100900220' );
target.options[ target.length ] = new Option( '機械／工具', '100900230' );
target.options[ target.length ] = new Option( 'プラント／エンジニアリング', '100900240' );
target.options[ target.length ] = new Option( 'その他メーカー', '100900250' );
				break;
			case 10:
target.options[ target.length ] = new Option( '総合商社', '101000010' );
target.options[ target.length ] = new Option( 'その他商社', '101000270' );
target.options[ target.length ] = new Option( 'ファッション・アパレル', '101000030' );
target.options[ target.length ] = new Option( 'スポーツ用品', '101000040' );
target.options[ target.length ] = new Option( '書籍／雑誌', '101000050' );
target.options[ target.length ] = new Option( '化粧品', '101000060' );
target.options[ target.length ] = new Option( '文具／事務機器', '101000070' );
target.options[ target.length ] = new Option( '日用品（家庭／育児関連）', '101000080' );
target.options[ target.length ] = new Option( 'インテリア', '101000090' );
target.options[ target.length ] = new Option( '紙／パルプ', '101000100' );
target.options[ target.length ] = new Option( '化学', '101000110' );
target.options[ target.length ] = new Option( '陶業／セメント', '101000120' );
target.options[ target.length ] = new Option( '鉄鋼', '101000130' );
target.options[ target.length ] = new Option( '機械／工具', '101000140' );
target.options[ target.length ] = new Option( 'プラント／エンジニアリング', '101000150' );
target.options[ target.length ] = new Option( '総合電機', '101000160' );
target.options[ target.length ] = new Option( '重電／産業用電気機器', '101000170' );
target.options[ target.length ] = new Option( '家電／AV機器', '101000180' );
target.options[ target.length ] = new Option( 'ゲームソフト／玩具／アミューズメント機器', '101000190' );
target.options[ target.length ] = new Option( '電子／電気部品', '101000200' );
target.options[ target.length ] = new Option( '半導体関連', '101000210' );
target.options[ target.length ] = new Option( '輸送機器', '101000220' );
target.options[ target.length ] = new Option( '自動車', '101000230' );
target.options[ target.length ] = new Option( '自動車部品', '101000240' );
target.options[ target.length ] = new Option( '精密機器／計測機器', '101000250' );
target.options[ target.length ] = new Option( '物流（ロジスティクス）', '101000260' );
target.options[ target.length ] = new Option( '食料品', '101000020' );
				break;
			case 11:
target.options[ target.length ] = new Option( 'ファッション・アパレル', '101100060' );
target.options[ target.length ] = new Option( 'コンビニエンスストア', '101100050' );
target.options[ target.length ] = new Option( 'その他専門店／小売', '101100100' );
target.options[ target.length ] = new Option( '外食／レストラン', '101100090' );
target.options[ target.length ] = new Option( '食品スーパー／ストア', '101100020' );
target.options[ target.length ] = new Option( 'ホームセンター／DIY', '101100070' );
target.options[ target.length ] = new Option( '百貨店', '101100010' );
target.options[ target.length ] = new Option( '量販店（GMS）', '101100040' );
target.options[ target.length ] = new Option( 'ディスカウント／ストア', '101100030' );
target.options[ target.length ] = new Option( '通信販売／無店舗販売', '101100080' );
				break;
			case 12:
target.options[ target.length ] = new Option( 'SP／広告代理店／編プロ', '101200020' );
target.options[ target.length ] = new Option( '放送', '101200010' );
target.options[ target.length ] = new Option( 'その他メディア', '101200060' );
target.options[ target.length ] = new Option( '出版／印刷', '101200040' );
target.options[ target.length ] = new Option( 'イベント運営', '101200030' );
target.options[ target.length ] = new Option( '新聞', '101200050' );
				break;
			case 13:
target.options[ target.length ] = new Option( 'スポーツ／ヘルス関連', '101300060' );
target.options[ target.length ] = new Option( 'レジャー／アミューズメント／エンターテインメント', '101300050' );
target.options[ target.length ] = new Option( '旅行', '101300040' );
target.options[ target.length ] = new Option( 'ホテル', '101300030' );
target.options[ target.length ] = new Option( '設備／メンテナンス', '101300020' );
target.options[ target.length ] = new Option( '安全産業', '101300010' );
target.options[ target.length ] = new Option( '冠婚葬祭', '101300080' );
target.options[ target.length ] = new Option( 'その他サービス', '101300130' );
target.options[ target.length ] = new Option( '教育／学校／学習塾／予備校', '101300120' );
target.options[ target.length ] = new Option( '福祉／介護関連', '101300110' );
target.options[ target.length ] = new Option( '清掃事業', '101300100' );
target.options[ target.length ] = new Option( '理容／美容／エステ', '101300090' );
target.options[ target.length ] = new Option( '芸能／芸術', '101300070' );
				break;
			case 14:
target.options[ target.length ] = new Option( '鉄道', '101400010' );
target.options[ target.length ] = new Option( '陸運', '101400020' );
target.options[ target.length ] = new Option( 'その他生活インフラ', '101400100' );
target.options[ target.length ] = new Option( 'エネルギー', '101400090' );
target.options[ target.length ] = new Option( '倉庫', '101400050' );
target.options[ target.length ] = new Option( 'ガス', '101400070' );
target.options[ target.length ] = new Option( '電気', '101400060' );
target.options[ target.length ] = new Option( '海運', '101400030' );
target.options[ target.length ] = new Option( '航空', '101400040' );
target.options[ target.length ] = new Option( '水道', '101400080' );
				break;
			case 15:
target.options[ target.length ] = new Option( '工業', '101500030' );
target.options[ target.length ] = new Option( '公社／官公庁', '101500040' );
target.options[ target.length ] = new Option( '宗教', '101500060' );
target.options[ target.length ] = new Option( '水産', '101500010' );
target.options[ target.length ] = new Option( '農林', '101500020' );
target.options[ target.length ] = new Option( '団体／連合会', '101500050' );
				break;
		}
	}
}

