
/**
 *	For general logout (Admin Module only)
 *	Form name should be "loginBean" <-- refer to the struts-config.xml
 */
function doLogout ()
{
	var aFrm=document.forms ["loginBean"];
	aFrm.submit ();
}

/**
 *	For general module switching usage (admin module only)
 *	Form name is "moduleForm" <-- hardcode
 */
function doSwitchModule (pModule, pSubModule)
{
	var aFrm=document.forms ["moduleForm"];

	aFrm.adminCurModule.value=pModule;
	if (pSubModule)
	{
		aFrm.adminCurSubModule.value=pSubModule;
	}
	
	aFrm.submit ();
}

