I have been able to make a few changes and added a couple of global variables here to use in the other pages. Here is the code.
<!--
File Version Start - Do not remove this if you are modifying the file
Build: 8.5.2
File Version End
-->
<%
// globals.csp
//
// This file contains global functions and constants that are used in a number of different
// files.
//
// returns a string for writing out the event handlers for a menu button
function GenerateButtonEvents(name, style)
{
return " onmouseover='javascript:linkOver(\""+name+"\",\""+style+"\"return true' onmouseout='javascript:linkNormal(\""+name+"\",\""+style+"\"' onmousedown='javascript:linkDown(\""+name+"\",\""+style+"\"return true'";
}
// returns the stylesheet name based on the value stored in the preference cookie
function GetStyleSheetName(csn)
{
var ret;
var csn = Number(GetSubCookie("ePortfolio_prefs", "csn");
switch(csn)
{
case 0: ret = "default"; break;
case 1: ret = "red"; break;
case 2: ret = "green"; break;
case 3: ret = "purple"; break;
case 4: ret = "gold"; break;
default: ret = "default"; break;
}
return ret;
}
// Constants
var MENU_BUTTONS_AND_TEXT = 0;
var MENU_BUTTONS_ONLY = 1;
var MENU_TEXT_ONLY = 2;
// Default settings
var DEF_VIEW = 0; // initial folder 0-Top level folder , -1(default)favorites
var DEF_CSN = 0; // style sheet
var DEF_VWM = 0; // report view mode (single browser vs. multiple browser)
var DEF_DV = 1; // data view (details to show, e.g., thumbnail, author, etc.)
var DEF_CBR = 0; // top level category bar
var DEF_VWR = 3; // viewer 0-actX 2-DHTML 3-Java
var DEF_LIST = 1; // report listing type (detailed vs. list)
var DEF_RPP = 39; // number of reports per page
var DEF_MENU = MENU_BUTTONS_AND_TEXT; // menu style
var DEF_ZONE = 0; // time zone
// CJ LaRue
var Exit_Page = "
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.