	function changeLinks ()
	{
		// loop over the DOM links collection (all the links on this page)
			
			for (var i = 0; i < document.links.length; i++)
			{
				// don't change the link if it opens a new window
				if (document.links[i].target != "_blank") {
				
				// pull the link object out of the DOM links collection
					
					_link = document.links [i];
						
				// assign an id number to the object
					
					_link.id = "link_" + i;
						
				// take the href and make a string object from it
					
					new_string = new String (_link.href);

				// do search and replaces on the string, searching for URL patterns
					
					new_string = "javascript:checkSurvey('"+new_string+"')";
					//new_string = new_string.replace ("http://www.steelers.com/", "http://www.buffalobills.com");
					//new_string = new_string.replace ("http://www.pittsburghpenguins.com/", "http://www.buffalosabres.com");
					
				// assign the href back to the DOM (can also get _link.text)
					
					_link.href = new_string;
				} // end new window if statement
			}
	}
		
