/*--- Avanquest WebEasy Custom Script ---*/

<!-- My Function to display a message from a link 
 
function displaymymessage(message) 
{ 
   alert(message); 
} 
 
<!-- Function for Multiple User Passwords 
<!-- 03-10-08 
<!-- <head> 
 
var attempts = 0; 
function Login() 
{ 
var done = 0; 
var username=window.document.login.username.value; 
<!-- username=username.toLowerCase(); 
var password=window.document.login.password.value; 
<!-- password=password.toLowerCase(); 
 
<!-- User Names and Passwords 
 
if (username=="guest" && password=="today") { window.location="cmg1_1024_005.htm"; done=1; } 
if (username=="campbellmgold" && password=="veritas") { window.location="cmg1_1024_005.htm"; done=1; } 
if (username=="JohnSmith" && password=="Apollo11") { window.location="cmg1_1024_005.htm"; done=1; } 
if (username=="member" && password=="password") { window.location="cmg1_1024_005.htm"; done=1; } 
if (username=="1234" && password=="1234") { window.location="cmg1_1024_006.htm"; done=1; } 
 
<!-- Invalid Password Trap 
 
if (done==0) { alert("Invalid login!"); 
   <!-- Clear Entry Fields 
   window.document.login.username.value=""; 
   window.document.login.password.value="";   
   attempts++; 
   <!-- Only Allow 3 Attenpts  
      if (attempts>=3) { alert("Password Attempts Exceeded");  
         window.location="cmg1_1024_003.htm"; 
         } 
   } 
}

/*--- EndOfFile ---*/
