<!doctypehtml PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><meta content="text/html; charset=utf-8"http-equiv=Content-Type><title>
   FMCSA Login
  </title><link href=resources/stylesheet.css rel=stylesheet><link href=resources/portal.css rel=stylesheet><link href=resources/login.css rel=stylesheet><script djconfig="parseOnLoad: false"src=/CompassThemes/themes/html/common/dojo/dojo/dojo.js></script><script src=/CompassThemes/themes/html/common/dojo/compass/compassdojo.js></script><script src=resources/js/login.js></script><script>dojo.require('dojo.fx');
	var loading_fadeout_short = null;
	var message_areafadeout = null;
	var loading_fadein = null;
	var loading_fadeout = null;
	var form_wipeout = null;
	var form_wipein = null;
	var message_areafadein = null;
var mymsg = null;
	dojo.addOnLoad(function()
 	{
		loading_fadeout_short = dojo.fadeOut({ node: 'loading', duration: 1});
	        message_areafadeout = dojo.fadeOut({ node: 'message_area'});
	        loading_fadein = dojo.fadeIn({ node: 'loading'});
		loading_fadeout = dojo.fadeOut({ node: 'loading'});
		form_wipeout = dojo.fx.wipeOut({ node: 'wrap'});
		form_wipein = dojo.fx.wipeIn({ node: 'wrap'});
		message_areafadein = dojo.fadeIn({ node: 'message_area'});
		loading_fadeout_short.play();
// 		writeError();
//		dojo.style('loading', 'visibility', 'hidden');
		message_areafadeout.play();
		//dojo.fadeOut({ node: 'message_area'}).play();
//		if( dojo.query.style.isShowing('wrap'))
//		{
			//$('#username').focus();
			dojo.byId('username').focus();
//		}
		if (mymsg != null)
		{
			message_areafadeout.stop();
			dojo.byId('message_area').innerHTML = '<span style="color: red;">' + mymsg + '</span>';
			message_areafadein.play();
		}
 	});
	function login_user()
	{
		// Transition
		loading_fadein.play();
		form_wipeout.play();
		message_areafadeout.play();

		// Clear message
		dojo.byId('message_area').innerHTML = '';
		
		// Login
		dojo.xhrPost({
			url: '../real_login',
			form: 'login_form_data',
			load: function(data)
			{
				var msg = '';
				var is_success = false;
			
				// Parse login status code
                                var login_status = parseInt(data);
	
				// Assess login status
				switch(login_status)
				{
					case 0:
					case 30:
						is_success = true;
						window.location = '/chooser';
						break;
					case 2:
						msg = 'Authentication store is not responding. Please alert your administrator.';
						break;
					case 3:
					case 4:
						msg = 'Either the username or password supplied is incorrect.';
						break;
					case 5:
					case 6:
						msg = 'Unspecified authentication error. Please alert your administrator.';
						break;
					default:
						break;
				}

				// Show message only if not successful
				if (is_success) return;
					
				// Update message
				dojo.byId('message_area').innerHTML = '<span style="color: red;">' + msg + '</span>';
                                
				// Transition effort
				message_areafadeout.stop();
                                loading_fadein.stop();
                                form_wipeout.stop();
                            	message_areafadein.play();
                                loading_fadeout_short.play();
                               	form_wipein.play();
                                
				// Set focus on username
				dojo.byId('username').focus();

				// Clear password
                               	dojo.byId('password').value = '';
			}
		});
	}</script><body class=soria><div class=header id=header><span id=bannerId> <img alt="FMCSA banner"src=resources/FMCSA_Portal_banner.gif> </span></div><div id=message_area></div><div id=loading><span> Loading... </span><span> <img alt=loading src=/CompassThemes/themes/html/common/images/context_loading.gif> </span></div><div id=wrap><div class=page-title id=title>Login to Access the FMCSA Portal</div><div style="margin-top: 20px;"id=login_form><form action=javascript:login_user(); autocomplete=off id=login_form_data method=post><div><label for=username>User ID:</label><input id=username name=username style=width:200px;></div><div><label for=password>Password:</label><input id=password name=password style=width:200px; type=password></div><div><input id=submit name=Login type=submit value=Login></div></form></div><div class=links id=links><a href=forgot_password.php> Forgot your Password? </a>   <a href=forgot_user_id.php> Forgot your User ID? </a>   <a href=unlock_account.php> Unlock your Account? </a></div><div><p style="font-style: italic;">To register for a portal account, please click <a href=/AccountRequest/AccountRequestForm1.jsp> here </a> .</div><div><p style="font-style: italic;">To access portal training, please click <a href=/training/index.htm> here </a> .</div></div><div id=notice>You are accessing a U.S. Government information system. This information system, including all related equipment, networks, and network devices, is provided for U.S. Government-authorized use only. Unauthorized or improper use of this system is prohibited, and may result in civil and criminal penalties, or administrative disciplinary action. The communications and data stored or transiting this system may be, for any lawful Government purpose, monitored, recorded, and subject to audit or investigation. By using this system, you understand and consent to such terms. <div id=privacy_policy>For details on how we use your information, please see our <a href=http://www.dot.gov/privacy.html> Privacy Policy </a> .</div></div><div class=footer id=footer><div class=footer_logo><img alt="FMCSA logo"src=resources/fmcsa_logo_footer_transparent.gif></div><div class=footerbox2><a href=http://www.fmcsa.dot.gov/feedback.htm> Feedback </a><span class=footer_white_text> | </span><a href=http://www.fmcsa.dot.gov/Online-Privacy-Policy.aspx> Privacy Policy </a><span class=footer_white_text> | </span><a href=http://www.usa.gov/> USA.gov </a><span class=footer_white_text> | </span><a href=http://www.fmcsa.dot.gov/foia/foia.htm> Freedom of Information Act (FOIA) </a><span class=footer_white_text> | </span><a href=http://www.fmcsa.dot.gov/508disclaimer.htm> Accessibility </a><span class=footer_white_text> | </span><a href=http://www.oig.dot.gov/Hotline> OIG Hotline </a><span class=footer_white_text> | </span><a href=http://www.fmcsa.dot.gov/about/WebPoliciesAndImportantLinks.htm> Web Policies and Important Links </a><span class=footer_white_text> | </span><a href=http://www.fmcsa.dot.gov/sitemap.aspx> Site Map </a><span class=footer_white_text> | </span><a href=http://www.fmcsa.dot.gov/plugins.htm> Plug-ins </a><div><div><span class=footer_title_text> Federal Motor Carrier Safety Administration </span></div><div><span class=footer_white_text> 1200 New Jersey Avenue SE, Washington, DC 20590 • 1-800-832-5660 • TTY: 1-800-877-8339 • </span><a href=http://www.fmcsa.dot.gov/about/contact/offices/displayfieldroster.asp> Field Office Contacts </a></div></div></div></div>