// JavaScript Document

function login_initialise()
{
	// Set the initial focus to the first field:
	// note that to get it to work in firefox, there needs to be a bit of a delay 
	setTimeout(function(){document.login_form.email_address.focus()}, 10);
	
	// Capture enter on the login screen and direct it to submit the login
	document.onkeypress = function (event) {

		var keycode;
		if (window.event)
			keycode = window.event.keyCode;
		else if (event)
			keycode = event.which;

		
		if (keycode == 13) {

			//ABsetAndSubmit('submit_login', 1);
			//return false;
		}
		return true;
	}
	
	// Initialise Eloqua GUID tracking value (comes from cookie)
	if (typeof GetElqCustomerGUID != 'undefined') {
		$('#elqCustomerGUID').val(GetElqCustomerGUID());
	}
	
}

$(document).ready(login_initialise);

