<!-- Hide the script from non-Javascript browsers

	function ShowPop(popupURL,L,H)
	{
		var popup = window.open(popupURL,"Ctk",'top=20,left=20,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,width='+L+',height='+H);
		if( navigator.appName.substring(0,8) == "Netscape" )
		{
			popup.location = popupURL;
		}
		if(popup.focus){popup.focus();}
	}
	function ShowMel(mel,titre)
	{
		var popupURL = "Ecrire/ecrire.asp?FDESTINATAIRE="+mel+"&FTITRE="+titre;
		var popup = window.open(popupURL,"Popup",'top=20,left=20,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=550,height=480');
		if( navigator.appName.substring(0,8) == "Netscape" ) {
			popup.location = popupURL;
		}
		if(popup.focus){popup.focus();}
	}
	function PopPdf(url,hauteur,largeur) {
		var winl = (screen.width - largeur) / 2;
		var wint = (screen.height - hauteur) / 2;
		winprops = 'height='+hauteur+',width='+largeur+',top='+wint+',left='+winl+',scrollbars=1,resizable=1,toolbar=0,location=0,directories=0,status=0,copyhistory=0,menuBar=0'
		win = window.open(url, 'WinPdf', winprops)
	}
	function PopCentre(url,hauteur,largeur) {
		var winl = (screen.width - largeur) / 2;
		var wint = (screen.height - hauteur) / 2;
		winprops = 'height='+hauteur+',width='+largeur+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no'
		win = window.open(url, 'win', winprops)
	}
	function PopCentre2(url,hauteur,largeur) {
		var winl = (screen.width - largeur) / 2;
		var wint = (screen.height - hauteur) / 2;
		winprops = 'height='+hauteur+',width='+largeur+',top='+wint+',left='+winl+',scrollbars=no,resizable=no'
		win = window.open(url, 'win2', winprops)
	}
	function PopCentre3(url,hauteur,largeur) {
		var winl = (screen.width - largeur) / 2;
		var wint = (screen.height - hauteur) / 2;
		winprops = 'height='+hauteur+',width='+largeur+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes'
		win = window.open(url, 'win3', winprops)
	}
	function PopCentre4(popupURL,L,H)
	{
		var popup = window.open(popupURL,"Export",'top=20,left=20,toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=yes,resizable=yes,width='+L+',height='+H);
		if( navigator.appName.substring(0,8) == "Netscape" )
		{
			popup.location = popupURL;
		}
		if(popup.focus){popup.focus();}
	}
	
// fonction plein ecran
var largeur = (screen.width - 20);
var hauteur = (screen.height - 60);
//self.moveto(0,0);
//self.resizeTo(largeur,hauteur);

var skipPage = false; bAgent = window.navigator.userAgent; bAppName = window.navigator.appName;
if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Win") >= 0)) skipPage = true;

function PleinEcran() {
    // var Page = 'v_'+Name+'.asp';
        if (skipPage) {
			//alert('Full');
        	var win = window.open('http://www.cg09.fr/webroutes/pages/Routes.asp','FullScreen', 'fullscreen=yes,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=auto');
        } else {
			//alert('NoFull');
       		var win = window.open('http://www.cg09.fr/webroutes/pages/Routes.asp','FullScreen','width=' + largeur + ',height=' + hauteur + ',resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no');
		}
}
	
// -- End Hiding Here -->
