function ResetForm(action){ if (action == "fail"){ document.getElementById("form_input").style.display = 'block'; document.getElementById("form_desc").style.display = 'block'; document.getElementById("formdiv").style.display = 'block'; document.getElementById("form_result").style.display = "none"; } else { document.getElementById("form_input").style.display = 'block'; document.getElementById("form_desc").style.display = 'block'; document.getElementById("formdiv").style.display = 'none'; document.getElementById("form_result").style.display = "none"; } }