//*****************************************************************************************
//* getLogon.js
//*
//* This set of javascript functions are unique to the getProfile.asp
//*
//* DATE       BY     DESCRIPTION
//* 2000-09-23 PRJDC  CREATION
//*****************************************************************************************

//*****************************************************************************************
//* 	Global Variables:					define global variables
//*****************************************************************************************

var head              ="display:''"

var tMsg	      = "";	
var tMsg1             = "";
var tMsg2             = "";
var txtMessage        = "";
var strPageRequest    = "";
var strGoToSection    = "1";

var bSubmitOK         = true;
var bSubmitClick      = false;
var bMemberLogonOK    = true;

var timed             = 0;
var scrollGo          = false;
var delay             = 50;  
var space1             = 100;

//*****************************************************************************************
//* Function:	getMainLine
//* Passed:	none
//* Returned:	none
//* Purpose:	On loading form, perform setup and init functions
//* Example:    getMainLine()
//*****************************************************************************************
function getMainLine() {

    setWindowDefaultMsg("Enter your Profile information here, then click SUBMIT..");

    document.all.txtLogonId.setAttribute("DisplayName","Logon Id");
    document.all.txtLogonPassword.setAttribute("DisplayName","Password");

    div0 = document.all.nameMessageCenter;
    div0.style.display = "none";
    
    strPageRequest="N";
    document.all.txtLogonId.focus();

}    
//*****************************************************************************************
//*	Function:	getEditCheck(formObj)
//* 	Passed:		formObj
//*	Returned:	edit true/false result
//*	Purpose:	Given form object edit each editable field and pass result back
//*			call getValidateField for each unique edible field
//*			on last call tell routine to display result
//* Example:    getEditCheck(this)
//*****************************************************************************************
function getEditCheck(formObj) {
   if (frmSubmitCheck('S')==true) {
       document.all.strApplAdminId.value = document.all.txtLogonId.value
       return true;
   }
   else {
       return false;
  }
}
//*****************************************************************************************
function frmSubmitCheck(strPageRequest) {

  div2 = document.all.nameMessageCenter;
  div2.style.display = "none";

  setWindowDefaultMsg("Review all information and Correct any errors before proceeding...");
  if  ((!validation.validNonBlank(document.all.txtLogonId             )) 
  ||   (!validation.validNonBlank(document.all.txtLogonPassword       ))  ) { 
        return false;
  }
  return true;
}
