// $Id: login.js,v 1.1.1.1 2009/07/31 20:58:34 cmanley Exp $
// This is included in the login page.
// Requires FormCtl.js and FormCtlSite.js

xAddEventListener(this, 'load', function() {
	var f = document.getElementById('FormLogin');
	new FormCtl(
		f,
		{
			email: {
				func: FormCtl.prototype.Site.validateEmail,
				re: FormCtl.prototype.Site.reEmail
			},
			password: {}
		},
		{
			errorMsgRequired: FormCtl.prototype.Site.errorMsgRequired,
			errorMsgSyntax: FormCtl.prototype.Site.errorMsgSyntax,
			useEventHandlers: true,
			validateOnInit: true
		}
	);
});

