
function chk_add_wh(num)
{
	res=confirm("会社の数は[ "+num+" ]社でよろしいですか？\n[OK]ボタンを押したあと、会社の数を変更できません。\n会社の数を多く表示させてしまった場合は、未入力のままで結構です。");
	if(res==true){ 
		sendRequest(on_loaded,'&num='+num,'GET','./form_item_wh-list.php',true,true);
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function sample_win_open(theURL) { //v2.0
  window.open(theURL,'sample','status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=350');
}

//職種の入力
function set_wh_type(num,str)
{

	if(num){	//職歴
		if(str){
		type=str.split('_');
		window.opener.document.form1['wh_type_t'+num].value=type[0];
		window.opener.document.form1['wh_type_d'+num].value=type[1];
		}
	}else{	//希望職種
		if(str){
		type=str.split('_');
		window.opener.document.form1.type_t.value=type[0];
		window.opener.document.form1.type_d.value=type[1];
		}
	}
	window.close();
}

//職種の削除
function clear_wh_type(num)
{
	if(num){	//職歴
		window.opener.document.form1['wh_type_t'+num].value='';
		window.opener.document.form1['wh_type_d'+num].value='';
	}else{	//希望職種
		window.opener.document.form1.type_t.value='';
		window.opener.document.form1.type_d.value='';
	}
	window.close();
}

//値をセット
function setValue(n,v)
{
	document.form1[n].value=v;
}

