(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.tel.value = ''; that.mail.value = ''; that.pref.selectedIndex = 0; for (selIdx = 0; selIdx !== that.pref.length; ++selIdx) { } that.address.value = ''; for (rdo = 0; rdo !== that.type.length; ++rdo) { that.type[rdo].checked = false; } for (rdo = 0; rdo !== that.internet.length; ++rdo) { that.internet[rdo].checked = false; } that.construction.value = ''; that.msg.value = ''; return false; }; if (reset) { that.onreset = mhResetFunction; reset.onclick = mhResetFunction; } }());