// ==UserScript==
// @name           ourASA Login
// @namespace      http://www.flywithsteve.com/projects/scripts
// @description    A script to automatically log you into the Atlantic Southeast Airlines intranet (OurASA).
// @include        https://www.ourasa.com/ASA/Home/Login.aspx
// ==/UserScript==

// Set your username and password
var myEmpID, myEmpPass;
myEmpID = " --- USERNAME HERE --- ";
myEmpPass = " --- PASSWORD HERE --- ";

//add event listener to call my anonymous function after the page loads
window.addEventListener('load',
function() {
	//////////////////////////////////////////////////////////////////
	document.getElementsByName("txtEmpNo")[0].value = myEmpID;		// Username
	document.getElementsByName("txtPassword")[0].value = myEmpPass; // Password

	//And finally submit the form
	document.getElementsByName("btnLogin")[0].click();
}, true);