// location=yes/no : affiche ou non la barre d'adresse, 
// toolbar=yes/no : affiche ou non la barre de boutons, 
// directories=yes/no : affiche ou non la barre de boutons 'Nouveautes'..., 
// menubar=yes/no : affiche ou non la barre des menus (Fichier, Edition...), 
// resizable=yes/no : permet ou non le redimensionnement de la fenetre, 
// screenX= : placement de la fenetre en abcisse, 
// screenY= : placement de la fenetre en ordonnee, 
// scrollbars=yes/no : affiche ou non les ascenceurs, 
// status=yes/no : affiche ou non la barre d'etat, 
// width : donne la largeur de la fenetre en pixels, 
// height : donne la hauteur de la fenetre en pixels.

// fonction utilisable pour plusieurs fichiers dans la meme fenetre 'popup'
function popup(adresse){
	window.open(adresse,'nom_de_la_fenetre','location=no,toolbar=no,directories=no,menubar=no,resizable=yes,scrollbars=yes,status=no,width=300,height=400,screenY=800,screenX=600');
}

// fonction utilisable pour plusieurs fichiers dans des fenetres differentes, de tailles et positions differentes
function popupmodulo(adresse, name, x, y, top, left){
	window.open(adresse,name,'location=no,toolbar=no,directories=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,width='+x+',height='+y+'screenY='+top+',screenX='+left);
}

function poptech(arg) {
     window.open('popup.htm','','toolbar=no,menubar=no,location=no,width=295,height=325');
}

function concours2(arg) {
     window.open('http://www.obispoonline.com/concours/concours.html','','toolbar=no,menubar=no,scrollbars=yes,location=no,width=600');
}

function livre(arg) {
     window.open('http://www.obispoonline.com/livre/livre.html','','toolbar=no,menubar=no,location=no,scrollbars=0,width=570,height=550');
}

function mail(arg) {
     window.open('http://www.obispoonline.com/maillist/maillist.htm','','toolbar=yes,menubar=no,location=no,scrollbars=0,width=300,height=300');
}

function message(arg) {
     window.open('./fantournee/message.htm','','toolbar=no,menubar=no,scrollbars=yes,location=no,width=600');
}

function goomradio(arg) {
     window.open('./goom/index.html','','toolbar=no,menubar=no,scrollbars=no,location=no,height=330,width=330');
}

function recherche(arg) {
     window.open('../recherche/index.htm','','toolbar=yes,menubar=no,scrollbars=yes,location=no,width=700');
}

function pochette(arg) {
     window.open('../pub/pochette.htm','','toolbar=no,menubar=no,scrollbars=no,location=no,height=500,width=400');
}

function itwlionel(arg) {
     window.open('../interview/itwlionel.htm','','toolbar=yes,menubar=no,scrollbars=yes,location=no,height=500,width=500');
}

function cgenix(arg) {
     window.open('../interview/cgenix.htm','','toolbar=yes,menubar=no,scrollbars=yes,location=no,height=500,width=500');
}

function itwfred(arg) {
     window.open('../interview/itwfred.htm','','toolbar=yes,menubar=no,scrollbars=yes,location=no,height=500,width=500');
}

function contact(arg) {
     window.open('mcontact.htm','','toolbar=no,menubar=no,location=no,scrollbars=0,width=400,height=300');
}

function vote(arg) {
     window.open('../vote/vote.html','','toolbar=no,menubar=no,scrollbars=yes,location=no,height=500,width=600');
}

function video(name) {
     window.open('../membres/popvideo.php?vid='+name,'','toolbar=no,menubar=no,scrollbars=no,location=no,height=240,width=300');
}

function videofree1(name) {
     window.open('popvideo1.php?vid='+name,'','toolbar=no,menubar=no,scrollbars=no,location=no,height=180,width=320');
}

function videofree2(name) {
     window.open('popvideo2.php?vid='+name,'','toolbar=no,menubar=no,scrollbars=no,location=no,height=240,width=300');
}

function videofree3(name) {
     window.open('popvideo3.php?vid='+name,'','toolbar=no,menubar=no,scrollbars=no,location=no,height=240,width=300');
}

function flash(name) {
     window.open('popupflash.htm','','toolbar=no,menubar=no,scrollbars=no,location=no,height=240,width=320');
}

function post(name) {
     window.open('../membres/post.php?ref='+name,'','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,height=480,width=741');
}

function postconcert(name) {
     window.open('postconcert.php?ref='+name,'','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,height=480,width=741');
}


// Gestion des cookies

function ecrire_cookie(nom, valeur, expires) {
  document.cookie=nom+"="+escape(valeur)+
  ((expires==null) ? "" : ("; expires="+expires.toGMTString()));
}
 
function arguments_cookie(offset){
  var endstr=document.cookie.indexOf (";", offset);
  if (endstr==-1) endstr=document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr)); 
}
 
function lire_cookie(nom) {
  var arg=nom+"=";
  var alen=arg.length;
  var clen=document.cookie.length;
  var i=0;
  while (i<clen){
    var j=i+alen;
    if (document.cookie.substring(i, j)==arg)
       return arguments_cookie(j);
    i=document.cookie.indexOf(" ",i)+1;
    if (i==0) break;
  }
  return null; 
}


