(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.type.length; ++rdo) { that.type[rdo].checked = false; } document.getElementsByName("estimate01[year]")[0].selectedIndex = 0; document.getElementsByName("estimate01[month]")[0].selectedIndex = 0; document.getElementsByName("estimate01[day]")[0].selectedIndex = 18; that.time01.selectedIndex = 0; for (selIdx = 0; selIdx !== that.time01.length; ++selIdx) { } document.getElementsByName("estimate02[year]")[0].selectedIndex = 0; document.getElementsByName("estimate02[month]")[0].selectedIndex = 0; document.getElementsByName("estimate02[day]")[0].selectedIndex = 18; that.time02.selectedIndex = 0; for (selIdx = 0; selIdx !== that.time02.length; ++selIdx) { } obj = that.dlg_upfile.parentNode; stO = obj.innerHTML; obj.innerHTML = stO; that.save_upfile.value = ''; that.upfile.value = ''; document.getElementById("upfile_dummy").innerHTML = ""; that.msg.value = ''; that.name.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 = ''; return false; }; if (reset) { that.onreset = mhResetFunction; reset.onclick = mhResetFunction; } }());