
 //_____________________________________________________________________
//
 function Recherche_Rapide ()
//_____________________________________________________________________
{ 

  if (document.Formulaire_Ecotrajet.Recherche_Covoiturage.selectedIndex=='0')
  {  alert ('Sélectionnez votre recherche (Passagers, véhicule, les deux)');
     document.Formulaire_Ecotrajet.Recherche_Covoiturage.focus();
     return(0);
  }

  if ( (document.Formulaire_Ecotrajet.Dpt_Depart.value.toUpperCase()!='RP')&&(document.Formulaire_Ecotrajet.Dpt_Arrivee.value.toUpperCase()!='RP') )
  if ( (isNaN(parseInt(document.Formulaire_Ecotrajet.Dpt_Depart.value)))&&(isNaN(parseInt(document.Formulaire_Ecotrajet.Dpt_Arrivee.value))) )
  {  alert ('Vous devez indiquer au moins un département, celui de votre lieu de départ ou celui de votre arrivée');
     document.Formulaire_Ecotrajet.Dpt_Depart.focus();
     return(0);
  }

    document.Formulaire_Ecotrajet.action='http://127.0.0.1/www.ecotrajet_v2.5.com/recherche_liste.php';
    document.Formulaire_Ecotrajet.target='_blank';
    document.Formulaire_Ecotrajet.method='POST';
    document.Formulaire_Ecotrajet.submit();

}

var Texte="<form name='Formulaire_Ecotrajet'><table width='574'  border='1' align='center' cellspacing='1' bordercolor='#666666'><tr><td><table width='573'  border='0' align='center' style='font-family: Verdana; font-size: 12px; ' cellpadding='0' cellspacing='0' background='http://www.ecotrajet.com/images_2.5/fond_2.png'><tr><td height='29' align='center' valign='middle'  colspan='4'><b>Economique, Ecologique, utilisez le covoiturage avec</b> <a href='http://www.ecotrajet.com'>ECOTRAJET.COM</a> </td></tr><tr><td width='271' height='29' align='center' valign='middle' ><select name='Recherche_Covoiturage' style='font-family: Verdana; font-size: 12px;' id='Recherche'>          <option selected>Vous recherchez :</option><option value='P'>Des passagers</option><option value='A'>Un v&eacute;hicule</option> <option value='AP'>Des passagers ou un V&eacute;hicule</option></select><input type='hidden' name='NEW' value='1'> <input type='hidden' name='ORIGINE' value='ECOTRAJET'></td> <td width='113' align='center' valign='middle' > d&eacute;part <input name='Dpt_Depart2' type='text' style='font-family: Verdana; font-size: 12px; ' id='Dpt_Depart' size='5' maxlength='2'></td>     <td width='117' align='center' valign='middle' >Arriv&eacute;e <input name='Dpt_Arrivee' type='text' style='font-family: Verdana; font-size: 12px;' id='Dpt_Arrivee' size='5' maxlength='2'> </td><td width='72' align='center' valign='middle' ><img src='http://www.ecotrajet.com/images_2.5/Logo_chercher.png' border='0' alt='Cliquez ici pour rechercher des covoitureurs sur les départements indiqués' onClick='Recherche_Rapide();' onMouseOver=\"this.style.cursor='hand' \"></a></td></tr></table></td></tr></table></form>";

document.write (Texte);
