function checkformNCCit (form)
{
  if (form.nome.value == "") {
    alert( "Nome necessario." );
    form.nome.focus();
    return false ;
  }
  
  if (form.cognome.value == "") {
    alert( "Cognome necessario." );
    form.cognome.focus();
    return false ;
  }
  
  if (form.email.value == "") {
    alert( "E-mail necessario.");
    form.email.focus();
    return false ;
  }
  
  if (form.via.value == "") {
    alert( "Via necessaria." );
    form.via.focus();
    return false ;
  }
  
  if (form.citta.value == "") {
    alert( "Città necessaria." );
    form.citta.focus();
    return false ;
  }
  
  if (form.cap.value == "") {
    alert( "Cap necessario." );
    form.cap.focus();
    return false ;
  }
  
  if (!form.esprimo.checked) {
    alert( "Non ha dato il consenso al trattamento dei dati personali." );
    form.esprimo.focus();
    return false ;
  }
  
  return true ;
}


function checkformNCCen (form)
{
  if (form.nome.value == "") {
    alert( "Please enter name." );
    form.nome.focus();
    return false ;
  }
  
  if (form.cognome.value == "") {
    alert( "Please enter last name." );
    form.cognome.focus();
    return false ;
  }
  
  if (form.email.value == "") {
    alert( "Please enter e-mail.");
    form.email.focus();
    return false ;
  }
  
  if (form.via.value == "") {
    alert( "Please enter street." );
    form.via.focus();
    return false ;
  }
  
  if (form.citta.value == "") {
    alert( "Please enter town." );
    form.citta.focus();
    return false ;
  }
  
  if (form.cap.value == "") {
    alert( "Please enter postcode." );
    form.cap.focus();
    return false ;
  }
  
  if (!form.esprimo.checked) {
    alert( "Please check the personal data consent box." );
    form.esprimo.focus();
    return false ;
  }
  
  return true ;
}

function checkformARit (form)
{
  if (form.nome.value == "") {
    alert( "Nome necessario." );
    form.nome.focus();
    return false ;
  }
  
  if (form.cognome.value == "") {
    alert( "Cognome necessario." );
    form.cognome.focus();
    return false ;
  }
  
  if (form.via.value == "") {
    alert( "Via necessaria." );
    form.via.focus();
    return false ;
  }
  
  if (form.citta.value == "") {
    alert( "Città necessaria." );
    form.citta.focus();
    return false ;
  }
  
  if (form.provincia.value == "") {
    alert( "Provincia necessaria.");
    form.provincia.focus();
    return false ;
  }  
  
  if (form.cap.value == "") {
    alert( "Cap necessario.");
    form.cap.focus();
    return false ;
  }  
  
  if (form.email.value == "") {
    alert( "E-mail necessario.");
    form.email.focus();
    return false ;
  }
  
  if (form.telefono.value == "") {
    alert( "Telefono necessario.");
    form.telefono.focus();
    return false ;
  }
  
  var btn = valButton(form.profilo);
  if (btn == null) {
    alert( "Profilo necessario." );
    return false ;
  }
  
  btn = valButton(form.worker);
  if (btn == null) {
    alert( "Turni necessari." );
    return false ;
  }
  
  if (form.linguistiche1.selectedIndex == 0) {
    alert( "Conoscenze linguistiche necessarie.");
    form.linguistiche1.focus();
    return false ;
  }
  
  if (form.level1.selectedIndex == 0) {
    alert( "Livello conoscenze linguistiche necessario.");
    form.level1.focus();
    return false ;
  }
  
  if (form.cvfile.value == "") {
    alert( "CV necessario.");
    form.telefono.focus();
    return false ;
  }
  
  if (!form.autorizzo.checked) {
    alert( "Non ha dato il consenso al trattamento dei dati personali." );
    form.autorizzo.focus();
    return false ;
  }
  
  return true ;
}

function checkformARen (form)
{
  if (form.nome.value == "") {
    alert( "Please enter name." );
    form.nome.focus();
    return false ;
  }
  
  if (form.cognome.value == "") {
    alert( "Please enter last name." );
    form.cognome.focus();
    return false ;
  }
  
  if (form.via.value == "") {
    alert( "Please enter street." );
    form.via.focus();
    return false ;
  }
  
  if (form.citta.value == "") {
    alert( "Please enter town." );
    form.citta.focus();
    return false ;
  }
  
  if (form.provincia.value == "") {
    alert( "Please enter province.");
    form.provincia.focus();
    return false ;
  }  
  
  if (form.cap.value == "") {
    alert( "Please enter postcode.");
    form.cap.focus();
    return false ;
  }  
  
  if (form.email.value == "") {
    alert( "Please enter name e-mail.");
    form.email.focus();
    return false ;
  }
  
  if (form.telefono.value == "") {
    alert( "Please enter telephone.");
    form.telefono.focus();
    return false ;
  }
  
  var btn = valButton(form.profilo);
  if (btn == null) {
    alert( "Please enter profile." );
    return false ;
  }
  
  btn = valButton(form.worker);
  if (btn == null) {
    alert( "Please enter shift." );
    return false ;
  }
  
  if (form.linguistiche1.selectedIndex == 0) {
    alert( "Please enter linguistic knowledge.");
    form.linguistiche1.focus();
    return false ;
  }
  
  if (form.level1.selectedIndex == 0) {
    alert( "Please enter linguistic level.");
    form.level1.focus();
    return false ;
  }
  
  if (form.cvfile.value == "") {
    alert( "Please choose cv file.");
    form.telefono.focus();
    return false ;
  }
  
  if (!form.autorizzo.checked) {
    alert( "Please check the I authorise box." );
    form.autorizzo.focus();
    return false ;
  }
  
  return true ;
}

// Radio Button Validation
// copyright Stephen Chapman, 15th Nov 2004,14th Sep 2005
// you may copy this function but please keep the copyright notice with it
function valButton(btn) {
    var cnt = -1;
    for (var i=btn.length-1; i > -1; i--) {
        if (btn[i].checked) {cnt = i; i = -1;}
    }
    if (cnt > -1) return btn[cnt].value;
    else return null;
}

