(function () { 'use strict'; var that = document.getElementById("mhMailForm"), reset = document.getElementById("mhFormReset"), mhResetFunction = function () { var chk, data, rdo, obj, stO, selIdx; that.name.value = ''; that.kana.value = ''; for (rdo = 0; rdo !== that.sex.length; ++rdo) { that.sex[rdo].checked = false; } document.getElementsByName("birthday[year]")[0].selectedIndex = 100; document.getElementsByName("birthday[month]")[0].selectedIndex = 0; document.getElementsByName("birthday[day]")[0].selectedIndex = 0; that.postcode.value = ''; that.pref.selectedIndex = 0; for (selIdx = 0; selIdx !== that.pref.length; ++selIdx) { } that.address.value = ''; that.address_kana.value = ''; that.tel.value = ''; for (rdo = 0; rdo !== that.requirement.length; ++rdo) { that.requirement[rdo].checked = false; } that.other.value = ''; that.mail.value = ''; that.msg.value = ''; return false; }; if (reset) { that.onreset = mhResetFunction; reset.onclick = mhResetFunction; } }());