function GoPub(pub){
	if(nums[pub] == 343){
		return;
	}
	if(nums[pub]){
		var htl = /^htl_/;
		if(pubs[pub].match(htl)){
			objectRequest = getHTTPObject(); // We create the HTTP Object
			getLink(nums[pub],redirLink);
		}else{
			var cgi = '/perl/pub/redir.pl?num=' + nums[pub];
			window.open(cgi,'PUB');
		}
	}
}
// On creé l'object Http;
function getHTTPObject(){
	var xmlhttp;
	/*@cc_on
	@if (@_jscript_version >= 5)
		try{
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) { 
			try { 
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) { 
				xmlhttp = false;
			}
		}
	@else
	xmlhttp = false;
	@end @*/ 
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp = false;
		}
	}
	return xmlhttp;
}
function getLink(num,handler){
	if(!isWorking && objectRequest){
		var url = '/perl/pub/getLink.pl?num=' + num;
		objectRequest.open("GET", url, true);
		objectRequest.onreadystatechange = handler;
		isWorking = true;
  		objectRequest.send(null);
	}else{
		return;
	}
}
function redirLink(){
	var url;
	if (objectRequest.readyState == 4) {
		if (objectRequest.responseText.indexOf('invalid') == -1){
			url = objectRequest.responseText;
			window.location = url
			isWorking = false;
		}
	}
}