<!--
//***********************************************************************
// Scrtipt Name:  enupdateacct.js
// Author:        Jeffery Frazier  Jefe@jefferyfrazier.com
// Date:          7-25-2001
// Purpose:       Used to validate the input of the sbm_update_acct.php page.
//                This paged is used by the Spain Bilbao Mission Website
//                to update Alumni info in the database.
//*********************************************************************** 



function validate(objForm){
   var strErroredFields = "";
   var strErrorFlag = "";


   if (objForm.UserId.value == ""){
      strErroredFields = "User Id - Blank \n";
      if (strErrorFlag == ""){
         strErrorFlag = "UserId";            
      } 
   }	



   if (objForm.Password.value == ""){
      strErroredFields += "Password – Blank";
      if (strErrorFlag == ""){
         strErrorFlag = "Password";            
      } 
   } 	
   


   if (strErroredFields != "") {
      alert ("The following field(s) contain errors: \n" + strErroredFields);	  
      eval("objForm." + strErrorFlag + ".focus()");
   }
   else {
      objForm.submit();
   }		
}



function myReset(objForm){
    objForm.UserId.focus();	
    objForm.reset();  
}

// -->
