function displayMessage(type, message) {
    var msgDiv = document.getElementById("msg");
    msgDiv.textContent = message;
    msgDiv.setAttribute("class", type);
  }
// to display a message based on criteria below for setting initials
to display a message based on criteria below for setting initials
to display a message based on criteria below for setting initials
function displayMessage(type, message) {
    var msgDiv = document.getElementById("msg");
    msgDiv.textContent = message;
    msgDiv.setAttribute("class", type);
  }
function displayMessage ( type , message ) { var msgDiv = document . getElementById ( "msg" ) ; msgDiv . textContent = message ; msgDiv . setAttribute ( "class" , type ) ; }
to display a message based on criteria below for setting initials
to display a message based on criteria below for setting initials