function CheckWay (form) {
  if ((form.city1.value.length < 3) || (form.city2.value.length < 3) || (form.adv.checked == true)) {
    form.action = "http://www.1bis.com/1bis/way/way_input.asp";
  } else  {
    form.action = "http://www.1bis.com/1bis/way/way.asp";
  }
  return true;
}
document.write('<FORM NAME="wayForm" METHOD="POST" onSubmit="return CheckWay(this)" TARGET="_blank">')
document.write('<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="0" BORDERCOLOR="#000000">')
document.write('<TR ALIGN="CENTER" BORDERCOLOR="#000000">')
document.write('<TD NOWRAP BGCOLOR="#006699" BORDERCOLOR="#000000"><FONT COLOR="#FFFFFF" FACE="Arial, Helvetica, sans-serif" SIZE="2"><B>')
document.write('&nbsp;Itin&eacute;raire en France avec&nbsp;&nbsp;</B></FONT>')
document.write('<A HREF="HTTP://www.1bis.com" TARGET="_blank"><IMG SRC="http://www.1bis.com/1bis/affiliate/1bis_logo.gif" WIDTH="46" HEIGHT="28" ALIGN="ABSMIDDLE" BORDER="0"></A></TD></TR>')
document.write('<TR><TD BGCOLOR="#FFFFFF">') 
document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BGCOLOR="#FFFFFF" ALIGN="CENTER">')
document.write('<TR><TD NOWRAP ALIGN="RIGHT">&nbsp;<FONT FACE="Arial" SIZE="1" COLOR="#000000">Ville de d&eacute;part :</FONT></TD>')
document.write('<TD><INPUT TYPE="text" NAME="city1" SIZE="13" MAXLENGTH="30"></TD></TR>')
document.write("<TR><TD NOWRAP ALIGN=RIGHT><FONT FACE=Arial SIZE=1 COLOR=#000000>Ville d'arriv&eacute;e :</FONT></TD>")
document.write('<TD><INPUT TYPE="text" NAME="city2" SIZE="13" MAXLENGTH="30"></TD></TR>')
document.write('<TR ALIGN="RIGHT"><TD COLSPAN="2" NOWRAP ALIGN="RIGHT"><INPUT TYPE="checkbox" NAME="adv">')
document.write('<FONT FACE="Arial" SIZE="1" COLOR="#000000"><B>Options avancées (rue à rue, ...)</B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;') 
document.write('<INPUT TYPE="submit" NAME="Submit" VALUE="OK"></TD></TR></TABLE></TD></TR></TABLE></FORM>')
