function showPhoto(div,photo){
  xajax_displayPhoto(div,photo);
  showLoadingPhoto();
}

showLoadingPhoto = function() {
  element = document.getElementById('loadingPhoto'); 
  element.style.display='inline';
}
hideLoadingPhoto = function() {
  element = document.getElementById('loadingPhoto'); 
  element.style.display='none';
}

function visibilite(thingId){
 var targetElement;
 targetElement = document.getElementById(thingId) ;
 if (targetElement.style.display == "none"){
  targetElement.style.display = "" ;
 } else {
  targetElement.style.display = "none" ;
 }
}

function changeImage(SourceImage, NewImage) { 
  document.images[SourceImage].src = NewImage; 
}	

function LPop(url,nom,attributs){
  pass =  window.open (url,nom,attributs)
}

function LPopClose(url,nom,attributs){
  pass =  window.open (url,nom,attributs)
  self.close();
}

function blankClose(){
  self.close();
}

function changeParent(url) {
   window.opener.location=url;
   self.close();
}

function changeParentNoClose(url) {
   window.opener.location=url;
}

function changeCountry(l) {
  selInd = document.simplesearch.id_pays.selectedIndex;
  idPays = document.simplesearch.id_pays.options[selInd].value;
  window.location="?l="+l+"&id_pays="+idPays+"";
}

function changeResidence(l) {
  selInd = document.adsearch.id_pays.selectedIndex;
  idPays = document.adsearch.id_pays.options[selInd].value;
  window.location="?l="+l+"&id_pays="+idPays+"";
}

function changeLocation() {
  selInd = document.adsearch.id_pays.selectedIndex;
  idPays = document.adsearch.id_pays.options[selInd].value;
  window.location="?id_pays="+idPays+"";
}

offMessage = 'Bienvenu(e)';

function boxOn(which,message){
   if (document.all||document.getElementById){
      which.className='BorderOn'
      if (document.getElementById) {document.getElementById("Message").innerHTML = message}
         else {Message.innerHTML = message}
   }
}

function boxOff(which){
   if (document.all||document.getElementById){
      which.className='BorderOff'
      if (document.getElementById) {document.getElementById("Message").innerHTML = offMessage}
         else {Message.innerHTML = offMessage}
   }
}

function fenetreCent(url,nom,largeur,hauteur,options) {
 var haut=(screen.height-hauteur)/2;
 var Gauche=(screen.width-largeur)/2;
 fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}
<!-- Begin
function checkRadios() {
 var el = document.forms[0].elements;
 for(var i = 0 ; i < el.length ; ++i) {
  if(el[i].type == "radio") {
   var radiogroup = el[el[i].name]; // get the whole set of radio buttons.
   var itemchecked = false;
   for(var j = 0 ; j < radiogroup.length ; ++j) {
    if(radiogroup[j].checked) {
         itemchecked = true;
         break;
        }
   }
   if(!itemchecked) {
    alert("Veuilliez répondre à la toutes les questions.\nMerci.");
    if(el[i].focus)
     el[i].focus();
        return false;
   }
  }
 }
 return true;
}
//  End -->

<!-- Begin
function checkRadiosHome() {
 var el = document.forms[1].elements;
 for(var i = 0 ; i < el.length ; ++i) {
  if(el[i].type == "radio") {
   var radiogroup = el[el[i].name]; // get the whole set of radio buttons.
   var itemchecked = false;
   for(var j = 0 ; j < radiogroup.length ; ++j) {
    if(radiogroup[j].checked) {
         itemchecked = true;
         break;
        }
   }
   if(!itemchecked) {
    alert("Veuilliez répondre à la toutes les questions.\nMerci.");
    if(el[i].focus)
     el[i].focus();
        return false;
   }
  }
 }
 return true;
}
//  End -->


function show(foo) {
  document.getElementById(foo).style.display="block";
}

function hide(foo) {
  document.getElementById(foo).style.display="none";
}

function flip(foo) {
  //document.getElementById(foo).style.visibility="hidden";
  if( document.getElementById(foo).style.display == "none") {
    document.getElementById(foo).style.display="block";
  } else {
    document.getElementById(foo).style.display="none";
  }
}

function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}
function matchUpdate() {
  document.match.submit.className = "butmatchon"
}

