


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function clearIndustry(len)
{
    var i;
    for (i=0; i<len; i++){
        document.form_search.industry.options[i] = null;
    }
}
function setMenuItem(n)
{
    optlen = document.form_search.industry.options.length;
    while(optlen > 0){
        clearIndustry(optlen);
        optlen = document.form_search.industry.options.length;
    }
    
    if (IndustryItem[n].length > 0){
        for (i=0; i<IndustryItem[n].length; i+=2){
            document.form_search.industry.options[i/2] = new Option(IndustryItem[n][i+1],IndustryItem[n][i]);
        }
    }
}


// id取得エイリアス
function id(element) {
	var elem = document.getElementById(element);
	return elem;
}

// 複数選択画面表示
var win = null;
function func_search_multi(path) {
	try {
		if (win) {
			win.close();
		}
		win = window.open('about:blank', 'win_search', 'width=650, height=470, menubar=no, toolbar=no, scrollbars=no, status=no');
		win.location.href = "/tmpl/search_multi.php";
		win.focus();
	} catch(e) {
	}
}

// 検索フォームをサブミット
function func_search_submit() {
	try {
		document.form_search.submit();
	} catch(e) {
	}
}

