(function () { 'use strict'; var that = document.getElementById("mhMailForm"), reset = document.getElementById("mhFormReset"), mhResetFunction = function () { var chk, data, rdo, obj, stO, selIdx; for (rdo = 0; rdo !== that.koyou.length; ++rdo) { that.koyou[rdo].checked = false; } that.name.value = ''; that.kana.value = ''; for (rdo = 0; rdo !== that.sex.length; ++rdo) { that.sex[rdo].checked = false; } that.tel.value = ''; that.mail.value = ''; for (chk = 0; chk !== document.getElementsByName("quali[]").length; ++chk) { document.getElementsByName("quali[]")[chk].checked = false; } return false; }; if (reset) { that.onreset = mhResetFunction; reset.onclick = mhResetFunction; } }());