// Pop Up
function openPopup(theURL, winName, features) { //v2.0
  window.open(theURL, winName, features);
}

function openDoublePopup(theURL1, theURL2, winName, features) { //v2.0
  window.open(theURL1, winName, features);
  window.open(theURL2, winName, features);
}

function printDoc() {
	window.print();
}

function openNewWindow(url){
	// ouvre une nouvelle fenêtre en plein écran
	largeur = screen.width;
    hauteur = screen.height;
    //si l'url que l'on reçoit est relative, alors on complète par le hostname (sinon ça ne fonctionne pas sous firefox)
    if (url.length != 0){
    	if (url.charAt(0) == "/"){
    		port = window.location.port;
    		if (port.length != 0){
    			port= ':' + port;
    		}else{
    			port='';
    		}
    		url = 'http://' + window.location.hostname + port + url;
    	 }
		window.open(url,'','height='+hauteur+',width='+largeur+',toolbar=yes,directories=yes,menubar=yes,status=yes,location=yes,scrollbars=yes,resizable=yes')
	}
}
