 if (validateNumber(number.value.replace(/\D/g,""))) {                         document.getElementById("phone_number_valid").style.visibility = "visible";                         document.getElementById("phone_number_valid").style.height = "initial";                         document.getElementById("phone_number_invalid").style.visibility = "hidden";                         document.getElementById("phone_number_invalid").style.height = "0";                     } else {                         document.getElementById("phone_number_invalid").style.visibility = "visible";                         document.getElementById("phone_number_invalid").style.height = "initial";                         document.getElementById("phone_number_valid").style.visibility = "hidden";                         document.getElementById("phone_number_valid").style.height = "0";                     } 