function newWindowLinks() {
	// If browser doesn't support getElementsByTagName then exit
	if (!document.getElementsByTagName) return;
	
	// Get all the links on the page
	var anchors = document.getElementsByTagName("a");
	
	for (var i=0; i < anchors.length; i++) {
		if (anchors[i].getAttribute("href") && anchors[i].getAttribute("class") == "pdf") {
			if (anchors[i].title == "") {
				anchors[i].title = "Opens in a new window";
			}
			else {
				anchors[i].title = anchors[i].title + " (opens in a new window)";
			}
			anchors[i].onclick = function(e) {
				if(!e)e=window.event;
				if(e.shiftKey || e.ctrlKey || e.altKey) return;
				window.open(this.href);
				return false;
			}
		}
	}
}

// Run function after apge finishes loading
window.onload = newWindowLinks;