/* カスタマイズ用のJavaScriptコードをここに記述してください */ /* ラジオボタン設定 */ function setRadio(form) { if(!form) return; var radio = "", cond_val = ""; radio = document.getElementsByName("shop_type"); for (var i=0, len=radio.length; i var input = document.createElement("input"); var inputName = "cond"+num; if((!formCond.inputName) || (formCond.inputName != "1")){ input.setAttribute("type", "hidden"); input.setAttribute("name", inputName); input.setAttribute("value", "1"); formCond.appendChild(input); } } /* 絞込み条件取得 */ function getFormCond(form, formCond) { if(!form) return; if(!formCond) return; for( num = 0 ; num < formCond.elements.length ; num++){ var obj = formCond.elements[num]; var inputName = "cond"+num; if((!obj.inputName) || (formCond.inputName != "1")){ //設定形式: var input = document.createElement("input"); input.setAttribute("type", "hidden"); input.setAttribute("name", obj.name); input.setAttribute("value", obj.value); form.appendChild(input); } } } /* 絞込み条件取得 */ function hideShopRadio(isVal) { if(isVal){ //「店舗」絞込み非表示 document.getElementById("checkTypeShop").style.display='none'; document.getElementById("checkItemShop").style.display='none'; } else { //「店舗」絞込み表示 document.getElementById("checkTypeShop").style.display=''; document.getElementById("checkItemShop").style.display=''; } }