// JavaScript Document
function check_coal() {
  
  var cPassword = document.getElementById('pass').value; //forms[0].password.value;  
  var cNextPage = "media_downloads.html";

  if (cPassword == "121coalpit" || cPassword == "121") {
    document.location.href = cNextPage;
  } else {
    alert('Wrong password, please try again');
  }
}