var pagePathname = location.pathname; var pageSearch = location.search; function tagJump(){ var qstr = pageSearch.split('&'); var jflg = 0,pt; if( ! pagePathname.match(/search.htm/) ){ return; } for(var q=0; q 0) { for(var i=0; i < ZdcEmapCond.length; i++) { condfr = eval("frm1.cond"+ZdcEmapCond[i]); condto = eval("frm2.cond"+ZdcEmapCond[i]); if (condfr && condto) { switch (condfr.type) { case "checkbox": if(condfr.checked == true) { condto.value = condfr.value; } else { condto.value = ""; } break; case "select-one": condto.value = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { condto.value = condfr.value; } else { condto.value = ""; } break; case "hidden": condto.value = condfr.value; break; } } } } frm2.submit(); } /** * 検索TOPページへ * @param url */ function toTopPageSp(url) { var idx = url.indexOf('?'); window.location.href = idx > 0 ? url.substr(0, idx) : url; } $(function(){ $('#condSum1').on('click',function(){ if ($('#condSum1').prop('checked')){ $('#cond1').prop('checked',true); $('#cond2').prop('checked',true); }else{ $('#cond1').prop('checked',false); $('#cond2').prop('checked',false); } }); $('#condSum2').on('click',function(){ if ($('#condSum2').prop('checked')){ $('#cond7').prop('checked',true); }else{ $('#cond7').prop('checked',false); } }); var fCondSum1 = function(){ if ($('#cond1').prop('checked')){ if ($('#cond2').prop('checked')){ if($('#condSum1').hasClass('Partial')){ $('#condSum1').prop('checked',false); $('#condSum1').removeClass('Partial'); } $('#condSum1').prop('checked',true); }else{ if(!$('#condSum1').hasClass('Partial')){ $('#condSum1').prop('checked',false); $('#condSum1').addClass('Partial'); } } }else{ if ($('#cond2').prop('checked')){ if(!$('#condSum1').hasClass('Partial')){ $('#condSum1').prop('checked',false); $('#condSum1').addClass('Partial'); } }else{ if($('#condSum1').hasClass('Partial')){ $('#condSum1').prop('checked',false); $('#condSum1').removeClass('Partial'); } $('#condSum1').prop('checked',false); } } }; $('#cond1').on('click',function(){ fCondSum1(); }); $('#cond2').on('click',function(){ fCondSum1(); }); $('#cond7').on('click',function(){ if ($('#cond7').prop('checked')){ $('#condSum2').prop('checked',true); }else{ $('#condSum2').prop('checked',false); } }); });