//Position cursor to text field.
//document.pform.loginPassword.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.loginName.value.toUpperCase() == "CSURE"){
	if(document.pform.loginPassword.value.toUpperCase() == "CSURE") {
    	location.href="welcome1.shtml" 
  	}else{
    		alert ("Bad password, access denied!!!")
		location.href="welcome3.shtml"
  	}
  }
  else if (document.pform.loginName.value.toUpperCase() == "PCHAT"){
	if(document.pform.loginPassword.value.toUpperCase() == "PCHAT") {
    	location.href="welcome2.html" 
  	}else{
    		alert ("Bad password, access denied!!!")
		location.href="welcome3.shtml"
  	}
  }
  else{
    alert ("UserName doesnt exist!!!")
    location.href="welcome3.shtml"
  }	
}