//
// This script merely hides the value of the user_id
// that is passed to the CGI at
// http://129.133.21.120/uhtbin/cgisirsi/0/57/1/0/
//
// Michael Friscia
// Connecticut College
// 04/12/2000
//
// Modifications:
//
// 10/14/97 - added code to check the ip address of the
// client accessing this document.  If the client is part
// of the Conn College domain, use "ccweblg" as the password.
//
//10/22/97 - added the college_domain variable to allow easier
//configuration of the script.
//
// 04/12/2000 - allowed script to accept multiple form actions
// Through the naming of the form actions individually
// as LogIn2(), LogIn3()
//
// Modified the changes made on 10/14/97 to accommodate 5.0
// and above browsers
//
//

function logIn2() {

   var cc_passwd = "ccweblg"
   var other_passwd="webctw"
   var college_domain = "136.244"
   document.LogIn2.user_id.value=other_passwd
   if (IP_ADDR.indexOf(college_domain) == 0) {
      document.LogIn2.user_id.value=cc_passwd
   }

   document.LogIn2.submit()
}// end logIn()

function logIn() {

   var cc_passwd = "ccweblg"
   var other_passwd="webctw"
   var college_domain = "136.244"
   document.LogIn.user_id.value=other_passwd
   if (IP_ADDR.indexOf(college_domain) == 0) {
      document.LogIn.user_id.value=cc_passwd
   }

   document.LogIn.submit()
}// end logIn()

function logIn3() {

   var cc_passwd = "ccweblg"
   var other_passwd="webctw"
   var college_domain = "136.244"
   document.LogIn3.user_id.value=other_passwd
   if (IP_ADDR.indexOf(college_domain) == 0) {
      document.LogIn3.user_id.value=cc_passwd
   }

   document.LogIn3.submit()
}// end logIn()

