function isIE () {
	var name = navigator.appName;
	if (name.indexOf("Microsoft",0) > -1)
		return true;
	else
		return false;
}


// Function to allow one JavaScript file to be included by another.
// Copyright (C) 2006-08 www.cryer.co.uk
function IncludeJavaScript(jsFile) {
	document.write('<script type="text/javascript" src="'+jsFile  +'"></scr' + 'ipt>'); 
}


function in_array(needle, haystack) {
	for (var i=0; i<haystack.length; i++) {
		if (haystack[i]==needle) return i;
	}
	return -1;
}


function openPopup(url, titre, wid, hei) {
   window.open(url,titre,"menubar=yes, status=no, scrollbars=yes, width="+wid+", height="+hei);
}
   
   
function loadPage(url) {
   document.location.href=url;
}
   
   
function addToFavorites(titre) {
	if ( navigator.appName != 'Microsoft Internet Explorer' ) { 
		window.sidebar.addPanel(titre,"http://www.tonsite.com",""); 
	} else { 
		window.external.AddFavorite("http://www.tonsite.com",titre); 
	} 
}


function testerNavigateur() {   
	objetXHR = creationXHR();
	if(objetXHR==null) {
		var erreurNavigateur="Erreur Navigateur : Création d'objet XHR impossible";
		remplacerContenu("search_results_nb", erreurNavigateur);
	}
}


function anticache () {
	var temps = new Date().getTime();//création d'une variable temps pour l'anti-cache
	return "anticache="+temps;
}
   
   
