function isit(field, expectedval) 
{
	
var copy = "";
if (expectedval == 1) { copy = " copie"; } else { copy = " copies"; }

if ((field.value != "") && (field.value > expectedval))
  {
	alert('Vous ne pouvez pas commander plus de ' + expectedval + copy + ' de cette publication.');
	field.select();
  }
else if ((field.value != "") && (!Number(field.value)))
  {
	alert('Veuillez entrer un chiffre.');
	field.select();
  }
}


function Form_Validator(theForm)
{
  if (theForm.clname.value == "")
  {    
    alert("Veuillez entrer votre nom.");
    theForm.clname.focus();	
    return (false);
  }

  if (theForm.street.value == "")
  {  
    alert("Veuillez entrer votre nom de rue.");
	theForm.street.focus();
	return(false);
  }
  
  if (theForm.city.value == "")
  {  
    alert("Veuillez entrer votre ville.");
	theForm.city.focus();
	return(false);
  }
  
  if (theForm.prov.value == "")
  {  
    alert("Veuillez entrer votre province.");
	theForm.prov.focus();
	return(false);
  }
  
  if (theForm.ponum.value == "")
  {  
    alert("Veuillez entrer votre code postal.");
	theForm.ponum.focus();
	return(false);
  }
  
  if (theForm.tel.value == "")
  {  
    alert("Veuillez entrer votre numero de t&eacute;l&eacute;phone.");
	theForm.tel.focus();
	return(false);
  }
}
