
  function OpenWindow (WindowID) {
	  document.getElementById(WindowID).style.visibility = "visible" ;
//	  playSound(1);
  }

  function CloseWindow (WindowID) {
	  document.getElementById(WindowID).style.visibility = "hidden" ;
  }

  function OpenTab (WindowID) {
	  document.getElementById(WindowID).style.visibility = "visible" ;
  }

  function CloseTab (WindowID) {
	  document.getElementById(WindowID).style.visibility = "hidden" ;
  }

// -----------------------------------------------------------------------------------------

  function SurvolVignette(obj) { 
    if(obj && obj.filters[0]) {
     obj.filters[0].apply();
     obj.visibility="visible";
     obj.filters[0].play();
    }
  }

// -----------------------------------------------------------------------------------------

  if ( document.all ) {
	function blink_show() {
		blink_tags  = document.all.tags('blink');
		blink_count = blink_tags.length;
		for ( i = 0; i < blink_count; i++ ) {
			blink_tags[i].style.visibility = 'visible';
		}
		window.setTimeout( 'blink_hide()', 3000 );
	}
	
	function blink_hide() {   
		blink_tags  = document.all.tags('blink');
		blink_count = blink_tags.length;
		for ( i = 0; i < blink_count; i++ ) {
			blink_tags[i].style.visibility = 'hidden';
		}
		window.setTimeout( 'blink_show()', 200 );
	}
	window.onload = blink_show;
  }

// -----------------------------------------------------------------------------------------

  function js_urlencode(ch) {
    ch = ch.replace(/[ ]/g,"+") 
    return escape(ch) 
  }

// -----------------------------------------------------------------------------------------

function _Search(){
	sObj = document.getElementById('rubrique');
    r = sObj.options[sObj.selectedIndex].value;
	q = document.forms['_Find'].keyword.value;
	Req = "";
	if (q!="") { 
	  Req = "?q=" + js_urlencode(q);
	  switch (r) {
	    case "e":
	      window.location.href = "/fr/search.asp" + Req;
		  break;
	    case "a":
	      window.location.href = "/fr/search2.asp" + Req;
		  break;
		case "m":
		  window.location.href = "/fr/search3.asp" + Req;
		  break;
	  }
	}
  }

  function _Kp() { 
    if (window.event.keyCode == 13) { _Search(); } 
	return false; 
  }

// -----------------------------------------------------------------------------------------

	function disableselect(e){
	  return false
	}
	function reEnable(){
	  return true
	}
	document.onselectstart=new Function ("return false")
	  if (window.sidebar){
	    document.onmousedown=disableselect
	    document.onclick=reEnable
	}

// -----------------------------------------------------------------------------------------

function VerifyMemberAccountForm () {
	  var email     = document.CreateLoginForm.email.value;
	  var nom       = document.CreateLoginForm.nom.value;
	  var prenom    = document.CreateLoginForm.prenom.value;
	  var pseudo    = document.CreateLoginForm.pseudo.value;
	  var adresse   = document.CreateLoginForm.adresse.value;
	  var cp        = document.CreateLoginForm.codepostal.value;
	  var ville     = document.CreateLoginForm.ville.value;
	
	  var place     = email.indexOf("@",1);
	  var point     = email.indexOf(".",place+1);
	  var MailValid = ((place>-1)&&(email.length>2)&&(point>1)&&(point<email.length-2));
	
	  var txt = "";
	  if (email=="")   { txt=txt+"- L'adresse mail n'est pas renseignée<BR>";
	  } else {
		  if (!MailValid) { txt=txt+"- L'adresse mail n'est pas valide<BR>"; }
      }
	  if (nom=="")     { txt=txt+"- Le champ [nom] n'est pas renseigné<BR>"; }
	  if (prenom=="")  { txt=txt+"- Le champ [prénom] n'est pas renseigné<BR>"; }
	  if (pseudo=="")  { txt=txt+"- Le champ [pseudo] n'est pas renseigné<BR>"; }
	  if (adresse=="") { txt=txt+"- Le champ [adresse] n'est pas renseigné<BR>"; }
	  if (cp=="")      { txt=txt+"- Le champ [code postal] n'est pas renseigné<BR>"; }
	  if (ville=="")   { txt=txt+"- Le champ [ville] n'est pas renseigné<BR>"; }
	
      if (txt=="") {
		document.CreateLoginForm.submit();
		return(true);
	  } else {
		OpenWindow('MemberAccountFormWindow');
		document.getElementById("txtMemberAccountFormWindow").innerHTML = txt;
		return(false);
	  }
  }

// -----------------------------------------------------------------------------------------

//   var aySound = new Array();
//   aySound[0] = "/fr/sons/48.au";
//   aySound[1] = "/fr/sons/48.au";

//   document.write('<BGSOUND id="auIEContainer">')
//   IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;
//   NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;
//   ver4 = IE||NS? 1:0;
//   onload=auPreload;

//  function auPreload() {
//     if (!ver4) return;
//     if (NS) auEmb = new Layer(0,window);
//     else {
//       Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>";
//       document.body.insertAdjacentHTML("BeforeEnd",Str);
//     }
//     var Str = '';
//     for (i=0;i<aySound.length;i++)
//       Str += "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>"
//     if (IE) auEmb.innerHTML = Str;
//     else {
//       auEmb.document.open();
//       auEmb.document.write(Str);
//       auEmb.document.close();
//     }
//     auCon = IE? document.all.auIEContainer:auEmb;
//     auCon.control = auCtrl;
//   }

//   function auCtrl(whSound,play) {
//     if (IE) this.src = play? aySound[whSound]:'';
//     else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))
//   }

//   function playSound(whSound) { 
//     if (window.auCon) auCon.control(whSound,true);
//   }

//   function stopSound(whSound) { 
//    if (window.auCon) auCon.control(whSound,false);
//   }

// -----------------------------------------------------------------------------------------

