function FocusText(BoxName)
{
if (BoxName.value == BoxName.defaultValue)
{
BoxName.value = '';
}
}
function BlurText(BoxName)
{
if (BoxName.value == '')
{
BoxName.value = BoxName.defaultValue;
}
}

function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Concorde.fr","http://www.concorde.fr/acces_index.asp",""); }
else { window.external.AddFavorite("http://www.concorde.fr/acces_index.asp","Concorde.fr"); } }

function verifformrecherche(theForm)
{

  if (theForm.recherche.value == "")
  {
    alert("Tapez une valeur pour le champ \"recherche\".");
    theForm.recherche.focus();
    return (false);
  }

  if (theForm.recherche.value.length < 2)
  {
    alert("Veuillez saisir au moins 2 caractères dans le champ \"recherche\".");
    theForm.recherche.focus();
    return (false);
  }

  if (theForm.recherche.value.length > 30)
  {
    alert("Veuillez saisir moins de 30 caractères dans le champ \"recherche\".");
    theForm.recherche.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789- \t\r\n\f";
  var checkStr = theForm.recherche.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Ne tapez que  des lettres, des chiffres ou des espaces dans le champ \"recherche\".");
    theForm.recherche.focus();
    return (false);
  }

  return (true);
}


function changerurl(_url,_cadre,_target) {
  if (_cadre) {
    parent._cadre.location.href = _url;
  } else if (_target) {
    _target = window.open(_url,_target);
  } else {
    window.location.href = _url;
  }
}

function openwin(theurl, thename, thescroll, theresize, thex, they) {
  if (thescroll==1) thescroll='yes'
     else thescroll='no'
  if (theresize==1) theresize='yes'
     else theresize='no'
  window.open(theurl, thename, 'location=no,toolbar=no,menubar=no,scrollbars='+thescroll+',status=no,resizable='+theresize+',width='+thex+',height='+they);
}

function testemail() {

var email=document.forms['form_newsletter'].elements['email'].value
if(email=='Votre adresse e-mail'){
// l'adresse entrée est incorrecte
alert("Veuillez saisir votre adresse e-mail.")
return false;

}
else
{

if ((email.indexOf('@',0)==-1) || (email.indexOf('.',0)==-1)) {
// l'adresse entrée est incorrecte
alert("L'adresse email est incorrecte.")
return false;

}
else
{
// l'adresse est correcte
// on soumet le formulaire
document.forms['form_newsletter'].submit()

}
}
}

