(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 = ''; that.postcode.value = ''; that.pref.selectedIndex = 0; for (selIdx = 0; selIdx !== that.pref.length; ++selIdx) { } that.address.value = ''; that.tel.value = ''; that.mail.value = ''; for (rdo = 0; rdo !== that.method.length; ++rdo) { that.method[rdo].checked = false; } for (rdo = 0; rdo !== that.place.length; ++rdo) { that.place[rdo].checked = false; } document.getElementsByName("first_date[year]")[0].selectedIndex = 11; document.getElementsByName("first_date[month]")[0].selectedIndex = 6; document.getElementsByName("first_date[day]")[0].selectedIndex = 17; that.first_time.selectedIndex = 0; for (selIdx = 0; selIdx !== that.first_time.length; ++selIdx) { } document.getElementsByName("second_date[year]")[0].selectedIndex = 11; document.getElementsByName("second_date[month]")[0].selectedIndex = 6; document.getElementsByName("second_date[day]")[0].selectedIndex = 17; that.second_time.selectedIndex = 0; for (selIdx = 0; selIdx !== that.second_time.length; ++selIdx) { } that.comment.value = ''; return false; }; if (reset) { that.onreset = mhResetFunction; reset.onclick = mhResetFunction; } }());