function VerifEmail(email) {
var place = email.indexOf("@",1);
var point = email.indexOf(".",place+1);
if ((place > -1)&&(email.length >2)&&(point > 1)) { return(true);}
else {return(false);}
}

function verifform() {
if(document.forms[0].email.value!="") {
  if(!VerifEmail(document.forms[0].email.value)) {alert("L'adresse email saisie n'est pas valide");}
    else {document.forms[0].submit();}
} else {alert("Veuillez saisir votre adresse email SVP");}

}





var NS4 = (document.layers);    // Which browser?
var IE4 = (document.all);
var win = window;    // window to search.
var n   = 0;

function findInPage(str) {
var txt, i, found;
if (str == "") return false;
if (NS4) {
  if (!win.find(str)) while(win.find(str, false, true)) n++; else n++; 
  if (n == 0) alert("La chaine \""+str+"\r n'a pas été trouvée");
}

if (IE4) {
  txt = win.document.body.createTextRange();
  for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
  txt.moveStart("character", 1);
  txt.moveEnd("textedit");
}

if (found) {
  txt.moveStart("character", -1);
  txt.findText(str);
  txt.select();
  txt.scrollIntoView();
  n++;
}

else {
  if (n > 0) {
    n = 0;
    findInPage(str);
  }
  else alert("La chaine \""+str+"\" n'a pas été trouvée.");
}

}
return false;
}

function viewphotoactu(im) {
  window.open("actusphoto.php?im="+im,"_blank","toolbar=no");
}