// Read a page's GET URL variables and return them as an associative array. function getProps() { var searchIndex = window.location.href.indexOf('/Absacoza/'); var urlPath; if (searchIndex > -1) { urlPath = window.location.href.substring(searchIndex + 10); if (urlPath.length > 0) { return urlPath.slice(urlPath).split('/'); } } return ["Home"]; } function getAllProps() { var props = getProps(); var prop, retPageName; for(var i = 0; i < props.length; i++) { prop = props[i]; if (i == 0) { // first retPageName = prop; } else { retPageName = retPageName + ":" + prop; } } return retPageName; } function getFirstProp() { var props = getProps(); var retPageName; if (props.length > 0) { retPageName = props[0]; } return retPageName; } function getAllPropsLessLast() { var props = getProps(); var prop, retPageName; if (props.length > 1) { props.pop(); } for(var i = 0; i < props.length; i++) { prop = props[i]; if (i == 0) { // first retPageName = prop; } else { retPageName = retPageName + ":" + prop; } } return retPageName; }