function doLogin(userNameId, passwordId, dbPath){
	dojo.xhrPost({
		url: "/names.nsf?login",
		content: {
			username: dojo.byId(userNameId).value, 
			password: dojo.byId(passwordId).value
		},
		load: function(data) {
			window.location.href = window.location.href;
		},
		error: function(data) {
			window.location.href = window.location.href;
		} 
	});
	return false;
}

var nn=(document.layers)?true:false;
var ie=(document.all)?true:false;
function getKeyPressed(e) {
	var evt = window.event? event : e;
	var iKey = (evt.charCode)?evt.charCode: ((evt.keyCode)?evt.keyCode:((evt.which)?evt.which:0));
	return iKey;
}
