﻿// Verifie si c'est Netscape ou IEvar ns = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=4)?true:falsevar ie = (navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4)?true:falsevar ns6 = (document.getElementById&&!document.all)// Fonction pour ecrire dans la barre du bas du navigateurfunction dm(msgStr){		document.returnValue = false;		if (document.images) {			window.status = msgStr;			document.returnValue = true;	}}// Fonction pour les rolloverfunction di(image_rec,image_src){		if (document.images) {		  document.images[image_rec].src=eval(image_src+".src");		}	}	// Fonction pour la longueur des inputfunction input(name,pc,mac, nbpx){	if (navigator.appVersion.indexOf("Macintosh") != -1)		if (ie || ns6)	document.write ("<INPUT TYPE='text' NAME='"+name+"' STYLE=\"width: "+nbpx+"px;\">");		else 	document.write ("<INPUT TYPE='text' NAME='"+name+"' SIZE='"+mac+"'>");	else		if (ie || ns6) document.write ("<INPUT TYPE='text' NAME='"+name+"' STYLE=\"width: "+nbpx+"px;\">");		else document.write ("<INPUT TYPE='text' NAME='"+name+"' SIZE='"+pc+"'>");}// Fonction pour calculer et placer le footerfunction bas(hauteur) {	var haut = 0;	var inner = 0;	if (ns) {		haut = document.height;		inner = window.innerHeight;	}	if (ie) {		haut = iddiv.offsetHeight;		inner = idbody.clientHeight;	}		if ((haut < inner) && (((inner - haut) - hauteur) > 0)) {		document.write('<img src="'+NbRep+'images/spacer.gif" width="1" height="' + ((inner - haut) - hauteur) + '" border="0"><br>');	}}// Fonction qui fait un reload de la page function netsReload(){	var browserVer=navigator.appVersion;	if (navigator.appName=="Netscape" && browserVer.substring(0, 3) > "4.0" && ie==false){			window.location.reload();	}	return true;}var windowToAdjust = ( window.external && window.external.menuArguments ) ? window.external.menuArguments.top : window;function resizeWin(w,h){	if( typeof( w ) != 'number' ) {		w = parseInt( w ); h = parseInt( h );		if( isNaN( w ) || isNaN( h ) || w < 100 || h < 100 ) {			window.alert( 'Please input numerical values greater than 100 for both height and width and try again.' );			return;		}	}	windowToAdjust.moveTo(-4,-4);	windowToAdjust.resizeTo(		( w + 8 ) // when maximised, a window is 8px wider than the screen		-		( windowToAdjust.screen.width - windowToAdjust.screen.availWidth ) //allow for taskbar		-		( document.layers ? window.outerWidth - window.innerWidth : 0 ) //NS4 resizes the innerWidth, not outerWidth		,		( h + 8 ) // when maximised, a window is 8px taller than the screen		-		( windowToAdjust.screen.height - windowToAdjust.screen.availHeight ) //allow for taskbar		-		( document.layers ? window.outerHeight - window.innerHeight : 0 ) //NS4 resizes the innerHeight, not outerHeight	);	if( window.external && window.external.menuArguments ) { window.close(); }}function focusNorm() { if( window.document.forms[0]['N'+windowToAdjust.screen.width+''] ) { window.document.forms[0]['N'+windowToAdjust.screen.width+''].focus(); } }function setZoom(oSelect) {	if( oSelect.selectedIndex ) {		if( windowToAdjust.document.body ) {			if( windowToAdjust.document.body.style ) {				if( parseInt( oSelect.options[oSelect.selectedIndex].value ) > 100 ) {					if( !window.confirm( 'All \'drop-down\' select inputs on the page you are adjusting will no longer operate correctly. Resize anyway?' ) ) { oSelect.options[0].selected = true; return; }				}				windowToAdjust.document.body.style.zoom = oSelect.options[oSelect.selectedIndex].value + '%';				if( window.external && window.external.menuArguments ) { window.close(); }			}		}	}}