document.getElementById('thanks').style.visibility = "visible"; document.getElementById('_name').value = ""; document.getElementById('_email').value = ""; document.getElementById('_phone').value = ""; document.getElementById('_message').value = "";