

$(document).ready(function() {
// set the _target attribute to blank for PDFs or DOCs
	$("a[href$='.pdf'], a[href$='.doc']").attr("target", "_blank");
	
// set the _target attribute to blank for external links
	$("a").filter(function() {
		//Compare the anchor tags host name with location's host name
	    return this.hostname && this.hostname !== location.hostname;
	  }).attr("target", "_blank");
});
