var resEcran ;
resEcran = window.screen.width ;
function openNewWindow(urlStr){
  var w = 720;
  var h = 480;
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winProps = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable,scrollbars'
  newWin = open(urlStr,'_blank',winProps);
  if (newWin.opener == null){
    newWin.opener = self;
  }
  newWin.focus();
}
<!--	fonction d'ouverture d'un cadre (fenêtre)	-->
function ouvrirCadre(destination){
  if(resEcran <= "800"){
    window.open(destination,'unCadre','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=432px,height=285px,left=200px,top=220px'); 
  }
  else{
    window.open(destination,'unCadre','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=640px,height=450px,left=190px,top=212px'); 
  }
}
<!--	fonction d'ouverture d'une fenêtre avec menus		-->
function ouvrirFenetre(destination){
  if(resEcran <= "800"){
    window.open(destination,'uneFenetre','location=no,menubar=no,width=580,height=370px,left=150px,top=50px,resizable=yes,scrollbars=yes,toolbar=yes'); 
  }
  else{
    window.open(destination,'uneFenetre','location=no,menubar=no,width=760,height=540,left=210px,top=60px,resizable=yes,scrollbars=yes,toolbar=yes');
  }
}
<!-- choix de la feuille de style suivant la résolution d'écran	-->
function choixCSS(){
  /*
  if (navigator.platform.toString().toLowerCase().indexOf("mac")!= -1){
    if (resEcran <= "800"){ 
      feuilleCSS = 'styleMac800.css'	; 
    }
    else{ 
      feuilleCSS = 'styleMac1024.css'	; 
    }
  }
  else{	
    if (resEcran <= "800"){ 
      feuilleCSS = 'style800.css';
    }
    else{ 
      feuilleCSS = 'style1024.css';
    }
  }
  */
  feuilleCSS = 'style_main.css';
  return feuilleCSS ;
}
<!-- fonctions de similation de "a:over" en javascript	-->
var maCouleur="" ;
function changeBg(monObjet){
  maCouleur = monObjet.style.backgroundColor;
  monObjet.style.backgroundColor = "#e4e9f0";
}
function changeBack(monObjet){
  monObjet.style.backgroundColor = maCouleur;
}
