,

Cow with Glasses

function validateCode() { var x = document.getElementById('code').value; //document.getElementById("alertmsg").innerHTML = x; if (x == "") { document.getElementById("alertmsg").innerHTML = "Enter a code."; …