var $132 = $.noConflict(true); function setCheckValue(checked) { $132("input[name=j_nenshu]").attr('checked', checked); } function clickSearchButton() { doSearch(true); } function changeCategoryList(chubunrui) { $132("input[name=j_category]").attr('checked', false); var tag = "#disp_category" + chubunrui; $132(tag).css({"display":""}); $132("#soshikiTh").attr({"rowspan":2}); $132("#chubunruiTd").addClass("special"); $132("#categoryCheckTd").css({"display":""}); } function doSearch(isSearch) { var freeword = ''; var chubunrui = ''; var categoryList = new Array(); var soshiki = ''; var nenshuList = new Array(); var todofuken = ''; var keyword = ''; var orderby = ''; /* 2015/02/19 sier START */ var kbnList = new Array(); /* 2015/02/19 sier END */ /* 2015/06/19 ymd START */ var ageList = new Array(); /* 2015/06/19 ymd END */ if ( isSearch ) { freeword = $132("#j_freeword").val(); chubunrui = $132("select[name=j_chubunrui]").val(); //chubunrui = 11; $132("input[name=j_category]:checked").each(function(){ categoryList.push(this.value);}); soshiki = $132("select[name=j_soshiki]").val(); $132("input[name=j_nenshu]:checked").each(function(){ nenshuList.push(this.value);}); todofuken = $132("select[name=j_todofuken]").val(); keyword = $132("select[name=j_keyword]").val(); orderby = $132("select[name=j_ob]").val(); $132("#pn").val(1); /* 2015/02/19 sier START */ $132("input[name=j_kbn]:checked").each(function(){ kbnList.push(this.value);}); /* 2015/02/19 sier END */ /* 2015/06/19 ymd START */ $132("input[name=j_age]:checked").each(function(){ ageList.push(this.value);}); /* 2015/06/19 ymd END */ } else { freeword = $132("#fw").val(); chubunrui = $132("#ch").val(); categoryList = $132("#ca").val(); soshiki = $132("#so").val(); nenshuList = $132("#ne").val(); todofuken = $132("#to").val(); keyword = $132("#kw").val(); orderby = $132("#ob").val(); /* 2015/02/19 sier START */ kbnList = $132("#kb").val(); /* 2015/02/19 sier END */ /* 2015/06/19 sier START */ ageList = $132("#ag").val(); /* 2015/06/19 sier END */ } if ( freeword != '' && freeword != 'ご自由に入力して検索できます' && freeword !== undefined ) { $132("#fw").val(encodeURIComponent(freeword)); $132("#fw").attr("disabled", ""); //window.alert($("#fw").val()); } if ( chubunrui != '' && chubunrui !== undefined ) { $132("#ch").val(chubunrui); $132("#ch").attr("disabled", ""); //window.alert($("#ch").val()); } if ( categoryList != '' && categoryList.len != 0 && categoryList !== undefined ) { $132("#ca").val(categoryList); $132("#ca").attr("disabled", ""); } if ( soshiki != '' && soshiki !== undefined ) { $132("#so").val(soshiki); $132("#so").attr("disabled", ""); } if ( nenshuList != '' && nenshuList.len != 0 && nenshuList !== undefined ) { $132("#ne").val(nenshuList); $132("#ne").attr("disabled", ""); } if ( todofuken != '' && todofuken !== undefined ) { $132("#to").val(todofuken); $132("#to").attr("disabled", ""); } if ( keyword != '' && keyword !== undefined ) { $132("#kw").val(keyword); $132("#kw").attr("disabled", ""); } if ( orderby != '' && orderby !== undefined ) { $132("#ob").val(orderby); $132("#ob").attr("disabled", ""); } else { $132("#ob").val(1); $132("#ob").attr("disabled", ""); } /* 2015/02/19 sier START */ if ( kbnList != '' && kbnList.len != 0 && kbnList !== undefined ) { $132("#kb").val(kbnList); $132("#kb").attr("disabled", ""); } /* 2015/02/19 sier END */ /* 2015/06/19 ymd START */ if ( ageList != '' && ageList.len != 0 && ageList !== undefined ) { $132("#ag").val(ageList); $132("#ag").attr("disabled", ""); } /* 2015/06/19 ymd END */ document.thisForm.submit(); }