//Position cursor to text field.
document.pform.pword.focus()

//Function to check password.
function checkWord() {
  //If you remove .toUpperCase() from line below, visitor must type
  //password n all uppercase letters, or it won't be accepted.
  if (document.pform.pword.value.toUpperCase() == "BENTALL") {
    location.href="leasingtoolkit.html" 
  }
  else if (document.pform.pword.value.toUpperCase() == "ROYALLEPAGE") {
    location.href="leasingtoolkit.html" 
  }
   else if (document.pform.pword.value.toUpperCase() == "CBRE") {
    location.href="leasingtoolkit.html" 
  }
  else if (document.pform.pword.value.toUpperCase() == "CBRICHARDELLIS") {
    location.href="leasingtoolkit.html" 
  }
  else if (document.pform.pword.value.toUpperCase() == "BARNICKE") {
    location.href="leasingtoolkit.html" 
  }
  else if (document.pform.pword.value.toUpperCase() == "COLLIERS") {
    location.href="leasingtoolkit.html" 
  }
  else if (document.pform.pword.value.toUpperCase() == "AVISON") {
    location.href="leasingtoolkit.html" 
  }
  else if (document.pform.pword.value.toUpperCase() == "LENNARD") {
    location.href="leasingtoolkit.html" 
  }
  else if (document.pform.pword.value.toUpperCase() == "ASHLARURBAN") {
    location.href="leasingtoolkit.html" 
  }            
  else if (document.pform.pword.value.toUpperCase() == "DEVENCORE") {
    location.href="leasingtoolkit.html" 
  }   
  else if (document.pform.pword.value.toUpperCase() == "LNRCORP") {
    location.href="leasingtoolkit.html" 
  }
  else if (document.pform.pword.value.toUpperCase() == "DEUTSCHEBANK") {
    location.href="leasingtoolkit.html" 
  }   
  else if (document.pform.pword.value.toUpperCase() == "STAUBACH") {
    location.href="leasingtoolkit.html" 
  }   
  else if (document.pform.pword.value.toUpperCase() == "ROYAL LEPAGE") {
    location.href="leasingtoolkit.html" 
  }   
  else if (document.pform.pword.value.toUpperCase() == "SMITHCOMPANY") {
    location.href="leasingtoolkit.html" 
  }   
  else{
    alert ("Invalid Password, Access Denied")
  }
}
