var currentVoie = "";

function SubmitNumero(theForm)
{
if(theForm.elements['NINTERFILTER'].value==2)
{
currentVoie = theForm.elements['Voie'].value;
//theForm.elements['NINTERFILTER'].value = 2;
theForm.target='bufferFiltre';

theForm.submit();
}
else
{
theForm.elements['XSL'].value='recherche.xsl';
theForm.elements['ACTION'].value=theForm.elements['ACTIONVOTE'].value;
theForm.NINTERFILTER.value = 100;
theForm.elements['Adresse Libre'].value= currentVoie +' '+theForm.elements['Numéro'].value;
theForm.target='bufferResultat';
}
theForm.submit();
}
