CALPIRG shows support
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: Michael Sugarman | Daily Trojan
|
|
Anne
Chatprapachai, a freshman majoring in international relations-global
business, helps CalPIRG show its support for a proposed high speed rail
line at an event on University Parkway. The rail would connect the
Central Valley to San Jose and the Peninsula to San Francisco. In
November 2008, California voters will be able to vote for a bond
measure to start laying the tracks and get the train moving.