var ZdcEmapGPSCondParams=""; // 検索TOP:cond条件セット function ZdcEmapSetCond(frm, frm_c, htm) { if(!frm) return; if(!frm_c) return; var condfr, condto; if (htm=="nmap") { condfr = frm_c.cond1; } else { condfr = frm_c.scond1; } condto = frm.cond1; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond1"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond2; } else { condfr = frm_c.scond2; } condto = frm.cond2; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond2"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond3; } else { condfr = frm_c.scond3; } condto = frm.cond3; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond3"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond4; } else { condfr = frm_c.scond4; } condto = frm.cond4; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond4"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond5; } else { condfr = frm_c.scond5; } condto = frm.cond5; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond5"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond6; } else { condfr = frm_c.scond6; } condto = frm.cond6; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond6"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond7; } else { condfr = frm_c.scond7; } condto = frm.cond7; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond7"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond9; } else { condfr = frm_c.scond9; } condto = frm.cond9; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond9"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond10; } else { condfr = frm_c.scond10; } condto = frm.cond10; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond10"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond11; } else { condfr = frm_c.scond11; } condto = frm.cond11; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond11"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond12; } else { condfr = frm_c.scond12; } condto = frm.cond12; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond12"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond13; } else { condfr = frm_c.scond13; } condto = frm.cond13; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond13"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond14; } else { condfr = frm_c.scond14; } condto = frm.cond14; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond14"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond15; } else { condfr = frm_c.scond15; } condto = frm.cond15; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond15"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond16; } else { condfr = frm_c.scond16; } condto = frm.cond16; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond16"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond17; } else { condfr = frm_c.scond17; } condto = frm.cond17; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond17"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond18; } else { condfr = frm_c.scond18; } condto = frm.cond18; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond18"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond19; } else { condfr = frm_c.scond19; } condto = frm.cond19; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond19"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond28; } else { condfr = frm_c.scond28; } condto = frm.cond28; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond28"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond31; } else { condfr = frm_c.scond31; } condto = frm.cond31; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond31"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond32; } else { condfr = frm_c.scond32; } condto = frm.cond32; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond32"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond34; } else { condfr = frm_c.scond34; } condto = frm.cond34; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond34"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond35; } else { condfr = frm_c.scond35; } condto = frm.cond35; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond35"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond36; } else { condfr = frm_c.scond36; } condto = frm.cond36; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond36"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond37; } else { condfr = frm_c.scond37; } condto = frm.cond37; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond37"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond38; } else { condfr = frm_c.scond38; } condto = frm.cond38; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond38"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond39; } else { condfr = frm_c.scond39; } condto = frm.cond39; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond39"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond40; } else { condfr = frm_c.scond40; } condto = frm.cond40; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond40"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond41; } else { condfr = frm_c.scond41; } condto = frm.cond41; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond41"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond42; } else { condfr = frm_c.scond42; } condto = frm.cond42; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond42"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond43; } else { condfr = frm_c.scond43; } condto = frm.cond43; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond43"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond44; } else { condfr = frm_c.scond44; } condto = frm.cond44; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond44"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond45; } else { condfr = frm_c.scond45; } condto = frm.cond45; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond45"); frm.appendChild(condto); } condto.value = cond_val; } } if (htm=="nmap") { condfr = frm_c.cond46; } else { condfr = frm_c.scond46; } condto = frm.cond46; if (condfr) { var cond_val = ""; switch (condfr.type) { case "checkbox": if(condfr.checked == true) { cond_val = condfr.value; } break; case "select-one": cond_val = condfr.options[condfr.selectedIndex].value; break; case "radio": if(condfr.checked == true && condfr.value) { cond_val = condfr.value; } break; case "hidden": cond_val = condfr.value; break; ; case "text": if(condfr.value != '') { cond_val = condfr.value; } break; ; } ; if (condto) { frm.removeChild(condto); condto = null; } ; if (cond_val != "") { if (!condto) { condto = document.createElement("input"); condto.setAttribute("type", "hidden"); condto.setAttribute("name", "cond46"); frm.appendChild(condto); } condto.value = cond_val; } } } // 任意パラメータセット function ZdcEmapSetFreeParams(frm) { var hid; hid = document.createElement("input"); hid.setAttribute("type", "hidden"); hid.setAttribute("name", "p_s1"); hid.setAttribute("value", "kuji2404165hanayome"); frm.appendChild(hid); hid = document.createElement("input"); hid.setAttribute("type", "hidden"); hid.setAttribute("name", "p_f1"); hid.setAttribute("value", "1"); frm.appendChild(hid); hid = document.createElement("input"); hid.setAttribute("type", "hidden"); hid.setAttribute("name", "p_f2"); hid.setAttribute("value", "0"); frm.appendChild(hid); } // 検索TOP:地域図検索実行 function ZdcEmapSubmitArea(frm, area, frm_c) { if(!frm) return; if(!area) return; frm.area.value = area; if (frm_c) ZdcEmapSetCond(frm, frm_c); ZdcEmapSetFreeParams(frm); frm.submit(); } ; // 検索TOP:地域図検索実行 function ZdcEmapSubmitAreaSEO(frm, area, frm_c) { if(!frm) return; if(!area) return; if (frm_c) ZdcEmapSetCond(frm, frm_c); ZdcEmapSetFreeParams(frm); var url = "http://127.0.0.1/p/lawson/"+area+"/"; frm.action=url; frm.submit(); } ; // 検索TOP:路線図検索実行 function ZdcEmapSubmitRail(frm, area, frm_c) { if(!frm) return; if(!area) return; frm.area.value = area; if (frm_c) ZdcEmapSetCond(frm, frm_c); ZdcEmapSetFreeParams(frm); frm.submit(); } function ZdcEmapEscapeKeyword(form) { if (form.keyword) { var kw = form.keyword.value; if (kw.substr(kw.length-1) == ' ') return; form.keyword.value = kw+' '; } } //検索結果ajax表示 var ZdcEmapSearchTopPopObj; function ZdcEmapSearchTopResultAjax(form) { ZdcEmapSearchTopPopObj = document.getElementById('ZdcEmapSearchTopPop'); if(!ZdcEmapSearchTopPopObj) ZdcEmapSearchTopPopObj = document.createElement('DIV');//light用ダミー ZdcEmapSearchTopPopObj.innerHTML = ''; //検索条件 var type = form.type.value; var keyword, col, area, adcd, page; var cond_col = cond_val = cond_param = ""; switch (type) { case "ShopW": col = form.col.value; keyword = form.keyword.value; break; case "AddrW": case "StW": case "ZipW": case "Comb": keyword = form.keyword.value; break; case "AddrL": area = form.area.value; adcd = form.adcd.value; break; default: break; } if (form.page) page = form.page.value; for (var no=1; no<=200; no++) { cond_col = "cond"+no; if (form[cond_col]) { cond_val = form[cond_col].value; if (cond_val) cond_param += "&"+cond_col+"="+cond_val; } } var url = "http://127.0.0.1/p/lawson/search.htm?type="+type; if (keyword) url+= "&keyword="+keyword; if (col) url+= "&col="+col; if (area) url+= "&area="+area; if (adcd) url+= "&adcd="+adcd; if (page) url+= "&page="+page; if (cond_param) url+= cond_param; ZdcEmapCmnHttpRequestHtmlAjax(url, function(html,status){ if(status) html = "申し訳ありませんが只今大変混み合っております。TOPページに戻りしばらく時間を置いてからご利用ください cond["+status+"]"; ZdcEmapSearchTopPopObj.innerHTML = html; }); } function ZdcEmapLocProgress() { var c=document.getElementById("ZdcEmapLocCmmt"); if(c){ c.innerHTML = "現在地を取得中..."; } } function ZdcEmapLocFinish() { var c=document.getElementById("ZdcEmapLocCmmt"); if(c){ c.innerHTML = ""; } } var flt = ""; function GetFilter(){ if( document.getElementById("gpsfilter").value ){ flt = document.getElementById("gpsfilter").value; } else { flt = ""; } } function ZdcEmapMakeGPSCondParams(frm) { ZdcEmapGPSCondParams = ""; if (frm.plfilter) { if (frm.plfilter.value) { ZdcEmapGPSCondParams += "&plfilter="+frm.plfilter.value; } } if (ZdcEmapCond.length > 0) { for(var i=0; i < ZdcEmapCond.length; i++) { cond = eval("frm.cond"+ZdcEmapCond[i]); if (cond) { if (cond.value) { ZdcEmapGPSCondParams += "&cond"+ZdcEmapCond[i]+"="+cond.value; } } } } }