/**

	For ThoughtLab's Web Page implementation we only need this on Contact Us at this point in time.
	* Utitlities.js
	* XBElem.js
	* InputSanitizer.js
	
	*Note.  This file has to be loaded after the files it depends on in order to execute properly.

**/
addEventHandler("load", LogIn_load, window);

function LogIn_load(e)
{
    //hook up our enter key to stop it from submiting the email forms.
    //addEventHandler("onkeypress", buttonTieFunction, this.DOMNode);
    var pwordTB=document.getElementById("ctl00_ContentPlaceHolder1_Login1_Password");
   
    if(pwordTB)
    {
        var xbSubmit = new XBElem(pwordTB);
        var submitBTN=document.getElementById("ctl00_ContentPlaceHolder1_Login1_LoginImageButton");
        
		xbSubmit.tieToButton(submitBTN);
        
    }
    var answerTB=document.getElementById("ctl00_ContentPlaceHolder1_CreateUserWizard1_CreateUserStepContainer_Answer");
    if(answerTB)
    {
        var xbSubmit = new XBElem(answerTB);
        var submitBTN=document.getElementById("ctl00_ContentPlaceHolder1_CreateUserWizard1___CustomNav0_StepNextButtonImageButton");
        
		xbSubmit.tieToButton(submitBTN);
    }
    var userNameTB=document.getElementById("ctl00_ContentPlaceHolder1_PasswordRecovery1_UserNameContainerID_UserName");
    if(userNameTB)
    {
        var xbSubmit = new XBElem(userNameTB);
        var submitBTN=document.getElementById("ctl00_ContentPlaceHolder1_PasswordRecovery1_UserNameContainerID_SubmitImageButton");
        
		xbSubmit.tieToButton(submitBTN);
    }
    var recoverAnswerTB=document.getElementById("ctl00_ContentPlaceHolder1_PasswordRecovery1_QuestionContainerID_Answer");
    if(recoverAnswerTB)
    {
        var xbSubmit = new XBElem(recoverAnswerTB);
        var submitBTN=document.getElementById("ctl00_ContentPlaceHolder1_PasswordRecovery1_QuestionContainerID_SubmitImageButton");
		xbSubmit.tieToButton(submitBTN);
    }
    
   
	
}//window_load

