//沿線チェック
function lineCheck() {
    var flg = 0;
    
    for ( i=0; i<document.lineForm.elements["line_cds[]"].length; i++) {
	if ( document.lineForm.elements["line_cds[]"][i].checked ) flg = 1;
    }

    if ( !flg ) {
	window.alert('沿線が選択されていません'); 
	return false;
    } else {
	return true;
    }
}

//区名チェック
function cityCheck() {
    var flg = 0;

    for ( i=0; i<document.cityForm.elements["city_cds[]"].length; i++) {
	if ( document.cityForm.elements["city_cds[]"][i].checked ) flg = 1;
    }

    if ( !flg ) {
	window.alert('区名が選択されていません'); 
	return false;
    } else {
	return true;
    }
}

//1つ以上のチェック処理
function minCheck() {
    var flg = 0;
　　
　　//表示件数を変化させると処理できないのでチェックボックスを数えつつチェック
    for ( i=0; i<document.checkForm.elements["b_ids[]"].length; i++) {
	if ( document.checkForm.elements["b_ids[]"][i].checked ) flg = 1;
    }

    if ( !flg ) {
	window.alert('チェックボックスが選択されていません'); 
	return false;
    } else {
	return true;
    }
}
