//セレクトボックスの検索チェック
function listcheck(form){

	var jCnt;
	var jSelect = "";

	//職種検索
	for(jCnt=0; jCnt < form.syokusyu.options.length; jCnt++){

		//選択項目を抜粋
		if(form.syokusyu.options[jCnt].selected){

			//こだわたない選択時は処理終了
			if(jCnt==0){ break; }

			//カンマ区切りで編集
			if(jSelect==""){ 
				jSelect = form.syokusyu.options[jCnt].value;
			}else{ 
				jSelect = jSelect + "," + form.syokusyu.options[jCnt].value;
			}
		}
	}

	form.hidsyokusyu.value = jSelect;


	//初期化
	jSelect = "";


	//勤務地検索
	for(jCnt=0; jCnt < form.area.options.length; jCnt++){

		//選択項目を抜粋
		if(form.area.options[jCnt].selected){

			//こだわたない選択時は処理終了
			if(jCnt == 0) { break; }

			//カンマ区切りで編集
			if(jSelect==""){ 
				jSelect = form.area.options[jCnt].value;
			}else{
				jSelect = jSelect + "," + form.area.options[jCnt].value;
			}
		}
	}

	form.hidarea.value = jSelect;


	//初期化
	jSelect = "";

	//雇用形態検索
	for(jCnt=0; jCnt < form.workform.options.length; jCnt++){

		//選択項目を抜粋
		if(form.workform.options[jCnt].selected){

			//こだわたない選択時は処理終了
			if(jCnt==0) { break; }

			//カンマ区切りで編集
			if(jSelect==""){
				jSelect = form.workform.options[jCnt].value;
			}else{
				jSelect = jSelect + "," + form.workform.options[jCnt].value;
			}
		}
	}

	form.hidworkform.value = jSelect;

}

//メール送信チェック
function mail_check( obj, no, name, mail, cnt ){
	var data;
	data = "somailjob[" + no + "]=" + name + ":" + mail + ";";
	if( obj.elements[cnt].checked ){
		document.cookie = data;
	}
	else {
		data = data + " expires=Fri, 31-Dec-1999 23:59:59 GMT;";
		document.cookie = data;
	}
}

//メール送信フォーム起動
function sendmail( ){
	if( document.cookie != "" ){
		w = window.open( "form-oubo.php", "mail", "width=720,height=600,toolbar=no,scrollbars=yes,resizable=yes" );
		w.focus();
	}
	else {
		alert( "応募する求人にチェックを入れてください" );
	}
}

//S3表示
function s3open( no, add ){
	w = window.open( "sora-special.php?id=" + no + "&ad=" + add + "", "_blank", "resizable=yes,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,location=no" );
	w.focus();
}

//次ページ・前ページ処理
function page_jump(page){
	window.location.href = 'sora-listea.php?start=' + page
		+ '&condi_age=' + document.form1.condi_age.value
		+ '&key=' + escape( document.form1.key.value )
		+ '&hidsyokusyu=' + escape( document.form1.hidsyokusyu.value )
		+ '&hidarea=' + escape( document.form1.hidarea.value )
		+ '&hidworkform=' + escape( document.form1.hidworkform.value )
		+ '&inex_flg=' + document.form1.inex_flg.value;
}
