/* Ouverture d'une popup ordinaire */

function ouvrirPopup(page,nom,options) {

   fenetre=window.open(page,nom,options);

  fenetre.opener.name='base';

}



/* Popup centree */

function ouvrirPopupcentree(page,nom,largeur,hauteur,options){

  var top=(screen.height-hauteur)/2;

  var left=(screen.width-largeur)/2;

  window.open(page,nom,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);

}



/*Function OUvrir => pour menu deroulant direct*/

function chgpage(formulaire)

{

if (formulaire.select.selectedIndex != 0)

    {

    location.href = formulaire.select.options[formulaire.select.selectedIndex].value;

    }

}



/*Function ValidForm => Validation des menus deroulants pour la date*/

function valid_form()

{

    if ( (document.form_single.mois.value == "null") && (document.form_single.jour.value) )

    {alert ("Usage :\n 1) selection par année\n 2) selection par mois-année \n 3) selection par jour-mois-année");return  (-1); }



    else document.form_single.submit();

}


function AjoutFavo() {
  if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4)) {
    window.external.AddFavorite("http://www.uejf.org","Le site de l'UEJF" );
  } else {
    alert("Cette fonction n'est proposée que par Internet Explorer 4+")
  }
}


function OuvrePopup(page,nom,option) {
     window.open(page,nom,option);
    }








