Taking it to the man
Issue date: 2/28/08
Section: News
function goPage(newindex) {
currentLocation = getThisPage();
cleanedLocation = '';
// If this is an SHTML request.
if (currentLocation.indexOf(".shtml") > -1) {
// Detect if this is a request that already has a page specification.
if (currentLocation.indexOf("-page") > -1) {
cleanedLocation = currentLocation.substring(0, currentLocation.indexOf("-page")) + '.shtml';
} else {
cleanedLocation = currentLocation;
}
// Only add the "-pageX" suffix when the page index is higher than 1.
if (newindex != 1) {
cleanedLocation = cleanedLocation.substring(0, cleanedLocation.indexOf(".shtml")) + '-page' + newindex + '.shtml';
}
} else {
// Only add the "-pageX" suffix when the page index is higher than 1.
if (newindex != 1) {
cleanedLocation = currentLocation + '&page=' + newindex;
} else {
cleanedLocation = currentLocation;
}
}
document.location = cleanedLocation;
}
function getThisPage() {
currentURL = '' + window.document.location;
thispageresult = '';
if (currentURL.indexOf("?page=") > -1) {
currentURL = currentURL.substring(0, currentURL.indexOf('?page='));
thispageresult = currentURL;
} else if (currentURL.indexOf("&page=") > -1) {
currentURL = currentURL.substring(0, currentURL.indexOf('&page='));
thispageresult = currentURL;
} else {
thispageresult = currentURL;
}
// Make sure the URL generated by this fuctnion is compatible with mirror image.
thispageresult = thispageresult.substring(7, thispageresult.length);
thispageresult = thispageresult.substring(thispageresult.indexOf('/')+1, thispageresult.length);
thispageresult = basehref + thispageresult;
if (thispageresult.indexOf('sourcedomain') > -1) {
thispageresult = thispageresult.substring(0, thispageresult.indexOf('?'));
}
return thispageresult;
}
 Media Credit: Olivia Lerner
| |
Coordinator
for LCC OSPIRG's health care campaign, Neil McLeod, takes questions in
Salem. On Tuesday, Feb. 19, students rallied at the state capitol to
testify about health coverage in Oregon. The campaign is in response to
potential changes to the Oregon Health Plan.