function chgCondTab(n) { for (i=1; i<=3; i++) { var cond = document.getElementById('custCondTable'+i); if (cond) { if (i == n) { cond.style.display = 'block'; } else { cond.style.display = 'none'; } } var tab = document.getElementById('searchCondTab'+i); if (tab) { if (i == n) { tab.className = 'searchCondTabOn'; } else { tab.className = 'searchCondTabOff'; } } } } function custOpenCond() { var dlg = document.getElementById("cust_cond_dlg"); if (!dlg) return; dlg.style.display = "block"; dlg.style.height = (document.body.clientHeight+20)+"px"; } function custCloseCond() { var dlg = document.getElementById("cust_cond_dlg"); if (!dlg) return; var form = document.formCond; if (form) form.reset(); dlg.style.display = "none"; } function custCondReSearch() { var e = document.getElementById("cust_research_url"); if (!e) return; var cond = ZdcEmapGetCondParm(true); var url = e.value+cond; window.location.href = url; } function custSubmitShopW() { var formCond = document.formCond; if (!formCond) return; var formFw = document.formFw; if (!formFw) return; for (var i = 0; i < formCond.elements.length; i++) { var obj = formCond.elements[i]; if (obj.type == "checkbox") { if (obj.checked) { var hid = document.createElement("input"); hid.setAttribute("type", "hidden"); hid.setAttribute("name", obj.name); hid.setAttribute("value", obj.value); formFw.appendChild(hid); } } } }