/* This function reads the URL and parses all the values passed as parameter */ function readParametersFromURL() { var URLParams = new Array(); var query = window.location.search.substring(1); var parms = query.split('&'); for (var i=0; i 0) { var key = parms[i].substring(0,pos); var val = parms[i].substring(pos+1); URLParams[key] = val; } } return URLParams; } /* This function returns one of the parameter values */ function getParameterValueFor(parameterName) { //Read parameters from URL address var URLParams = readParametersFromURL(); return URLParams[parameterName]; } //**************************************************************************** // OSSI CONFIGURATION //**************************************************************************** //The OSSI Version var OSSI_VERSION = '2.2.0'; // CONFIGURATION FOR OSSI LEVEL 1 REFRESH var OSSI_LEVEL1_TIME_INTERVAL = 60000; // millisecs (the interval between refreshes) var OSSI_level1_div_id = new String('ossi_level1_id'); OSSI_level1_div_id = "ajaxBlock"; var URL_OSSI_level1 = new String('/ossi/level1/ossi_level1.html'); // CONFIGURATION FOR OSSI LEVEL 2 REFRESH var OSSI_LEVEL2_TIME_INTERVAL = 60000; // millisecs (the interval between refreshes) var OSSI_level2_div_id = new String('ossi_level2_id'); var URL_OSSI_level2 = new String(getParameterValueFor('ossi_level2_filename')); //Get the html filename passed as parameter if (URL_OSSI_level2 != 'undefined') URL_OSSI_level2='/ossi/level2/' + URL_OSSI_level2; // CONFIGURATION FOR OSSI LEVEL 3 REFRESH var OSSI_LEVEL3_TIME_INTERVAL = 60000; // millisecs (the interval between refreshes) var DELAY_BEFORE_SETTING_LEVEL3_VIEW = 1000; //The time to way for the content to load before setting the table view var OSSI_level3_div_id = new String('ossi_level3_id'); var URL_OSSI_level3 = new String(getParameterValueFor('ossi_level3_filename')); //Get the html filename passed as parameter if (URL_OSSI_level3 != 'undefined') URL_OSSI_level3='/ossi/level3/' + URL_OSSI_level3; //Configuration for the OSSI PGD (Product Group Description) window size OSSI_PGD_WINDOW_WIDTH = 850; OSSI_PGD_WINDOW_HEIGHT = 600;