(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.hope.length; ++rdo) { that.hope[rdo].checked = false; } document.getElementsByName("hope-day1[year]")[0].selectedIndex = 0; document.getElementsByName("hope-day1[month]")[0].selectedIndex = 3; document.getElementsByName("hope-day1[day]")[0].selectedIndex = 29; that.hope-time1.selectedIndex = 0; for (selIdx = 0; selIdx !== that.hope-time1.length; ++selIdx) { } document.getElementsByName("hope-day2[year]")[0].selectedIndex = 0; document.getElementsByName("hope-day2[month]")[0].selectedIndex = 3; document.getElementsByName("hope-day2[day]")[0].selectedIndex = 29; that.hope-time2.selectedIndex = 0; for (selIdx = 0; selIdx !== that.hope-time2.length; ++selIdx) { } that.kind.value = ''; that.postcode.value = ''; that.pref.selectedIndex = 0; for (selIdx = 0; selIdx !== that.pref.length; ++selIdx) { } that.address1.value = ''; that.address2.value = ''; for (rdo = 0; rdo !== that.property.length; ++rdo) { that.property[rdo].checked = false; } that.name.value = ''; that.tel.value = ''; that.mail.value = ''; for (rdo = 0; rdo !== that.contact.length; ++rdo) { that.contact[rdo].checked = false; } return false; }; if (reset) { that.onreset = mhResetFunction; reset.onclick = mhResetFunction; } }());