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 = "/jcmg.nsf";
		},
		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;
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=550,left = 540,top = 312');");
}

function openWindow() 
	{
		popupWin = window.open('/jcmg.nsf/str?OpenView', 'Images', 'scrollbars=yes, location=yes, toolbar=yes')
	}

		
	
