document.getElementById("notavailablemsg").style.visibility = "visible"; document.getElementById("submsg").style.visibility = "visible";