		/* 
		   FUNCTION: addPopUpLink
		   DESCRIPTION: Opens the linked document of all links with a certain class in a pop-up window and adds a message to the link that there will be a new pop-up window.
		*/
		function addPopUpLink() {
		  // check that the client supports DOM scripting
		  if(!document.getElementById || !document.createTextNode){return;}
		  
		  // assets of the link -- the class that indicates which link should get the functionality and the message to add the link text
		  var popupClass = 'popup';
		  var popupMessage = '';
		  
		  // temporary variables to use in a loop
		  var pop,t;
		  
		  // get all links in the document
		  var as=document.getElementsByTagName('a');
		  // loop over all links
		  for (var i=0; i<as.length; i++) {
		    t=as[i].className;
		    
		    // check to see if the link has a class and the class is the right one
		    if (t && t.toString().indexOf(popupClass)!=-1) {
		      // add the message
		      as[i].appendChild(document.createTextNode(popupMessage));
		      
		      // assign a function when the link is clicked
		      as[i].onclick=function() {
		        // open a new window with
		        pop=window.open(this.href, 'popup', 'width=600', 'height=600');
		        // don't follow the link, otherwise the linked doc would be opened in a new window AND in the parent
		        return false;
		      }
		    }
		  }
		}
		window.onload=addPopUpLink;