function openwindow(url,w,h,scrollb,tools,name,center) {
	/* 
	openwindow usage : 
	url = the URL is taken from the HREF value of the Anchor tag: openwindow(this.href,[...])
	w = Width of the popup: openwindow(this.href,300,[...])
	h = Height of the popup: openwindow(this.href,300,400,[...])
	scrollb = Enable scrollbars, default is disabled: openwindow(this.href,300,400,1,[...])
	tools = Enable toolbar, default is disabled: openwindow(this.href,300,400,1,1,[...])
	name = Baptise the popup, default is "pop": openwindow(this.href,300,400,1,1,'spot-hunter',[...])
	center = Enable pop up centering, default is disabled: openwindow(this.href,300,400,1,1,'spot-hunter',1)
	
	NOTE: 
	Make sure you "return false;" right after the popup function call
	<a href="path/file.ext" onClick="openwindow(this.href,300,400,1,1,'name',1); return false;">LINK</a>
	*/
	var str = "height=" + h + ",innerHeight=" + h;
	str += ",width=" + w + ",innerWidth=" + w;
	if(!center) { center = false; }
	if(!scrollb) { scrollbars = 0; }
	if(!tools) { tools = 0; }
	if(!name) { name = "pop"; }
	if((window.screen) && (center)) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		var xc = (aw - w) / 2;
		var yc = (ah - h) / 2;
		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
		}
		window.open(url,name,'toolbar=' + tools + ',location=0,directories=0,status=0,menubar=0,scrollbars=' + scroll + ',resizable=1,' + str).focus();
}

/* jQuery */
/* Add target="_blank" to external links inside div.column2 */
jQuery(document).ready(function(){

	// elems filters out anchors with onclick events
	var elems = jQuery("div.column2 a").filter(function(e){
		var hasOnClick = (this.onclick+"" == "undefined") || (this.onclick+"" == "null");
		return hasOnClick;
		
	}).parent();
	elems.extLinks({
		PrefixObj: "",
		PreOpen: "NewTab", //What happen when user click on the prefix object
		LinkOpen: "NewTab", //What happen when user click on the link
		PostObj: "",
		PostOpen: "NewTab", //What happen when user click on the post object
		Links: "external" // external, internal, all - Which link you're target
	});

	// PDFelems filters out anchors linking to a PDF file
	var PDFelems = jQuery("div.column2 a").filter(function(e){
		var isPDF = (this.href.toLowerCase().match(".pdf") == "/pdf");
		return isPDF;
	}).parent();
	PDFelems.extLinks({
		PrefixObj: "",
		PreOpen: "NewTab", //What happen when user click on the prefix object
		LinkOpen: "NewTab", //What happen when user click on the link
		PostObj: "",
		PostOpen: "NewTab", //What happen when user click on the post object
		Links: "internal" // external, internal, all - Which link you're target
	});
});


