function checkform(form) {
  
  if (addjob.compname.value == "") {
    alert( "Please enter the company name" );
    addjob.compname.focus();
    return false ;
  }

  if (addjob.compaddress.value == "") {
    alert( "Please enter the company address" );
    addjob.compaddress.focus();
    return false ;
  }

   if (addjob.compzip.value == "") {
    alert( "Please enter the company zip code" );
    addjob.compzip.focus();
    return false ;
  }

  if (addjob.comptown.value == "") {
    alert( "Please enter the company city" );
    addjob.comptown.focus();
    return false ;
  }
   if (addjob.compatt.value == "") {
    alert( "Please enter the company contact person" );
    addjob.compatt.focus();
    return false ;
  }

   if (addjob.compphone.value == "") {
    alert( "Please enter the phone number of the contact person " );
    addjob.compphone.focus();
    return false ;
  }

  if (addjob.compemail.value == "") {
    alert( "Please enter the company contact person email" );
    addjob.compemail.focus();
    return false ;
  }


  if (addjob.invname.value == "") {
    alert( "Please enter the company name" );
    addjob.invname.focus();
    return false ;
  }

  if (addjob.invaddress.value == "") {
    alert( "Please enter the company address" );
    addjob.invaddress.focus();
    return false ;
  }

   if (addjob.invzip.value == "") {
    alert( "Please enter the company zip code" );
    addjob.invzip.focus();
    return false ;
  }

  if (addjob.invtown.value == "") {
    alert( "Please enter the company city" );
    addjob.invtown.focus();
    return false ;
  }
   if (addjob.invatt.value == "") {
    alert( "Please enter the company contact person" );
    addjob.invatt.focus();
    return false ;
  }

  if (addjob.login.value == "") {
    alert( "Please choose a login" );
    addjob.login.focus();
    return false ;
  }

  if (addjob.password1.value > addjob.password2.value || addjob.password1.value < addjob.password2.value) {
    alert( "The two passwords are not identical. Please retype" );
    addjob.password1.focus();
    return false ;
  }

  if (addjob.terms.checked == false) {
    alert( "Please accept the terms & conditions" );
    addjob.terms.focus();
    return false ;
  }
   // ** END **

  return true ;
}
