function foff(endStuff) {
var newURL;
var gotoURL;
var oldPage;
	  
	newURL = location.href;
	
    // find the start of the page name
         
    r = newURL.search('.nb.ca');
    // add 5 to encompass .net/
    r = r + 7;
    y = newURL.search('.asp') + 4;
    // now i know where to begin the replacement.
    
    // get the first part of the new url
    startURL = newURL.substring(r,0);
    gotoURL = newURL.substring(r,y);
    gotoURL = gotoURL.substring(1,gotoURL.length);
    gotoURL = startURL + gotoURL + '?' + endStuff;
    
     
    //alert (gotoURL);
	document.location.href=gotoURL; 

}


function poip(endStuff) {
var newURL;
var gotoURL;
var oldPage;
	  
	newURL = location.href;
	
    // find the start of the page name
         
    r = newURL.search('.nb.ca');
    // count the spots from the . to the "/" before the file name + 4
    r = r + 7;
    y = newURL.search('.asp') + 4;
    // now i know where to begin the replacement.
    
    // get the first part of the new url
    startURL = newURL.substring(r,0);
    gotoURL = newURL.substring(r,y);
    gotoURL = startURL + 'f' + gotoURL + '?' + endStuff;
    
    // 
    //alert (gotoURL);
    document.location.href=gotoURL;

}