function chkForm(form){
  if($('#type-associate').is(':checked') && form.ssn.value == ''){
    alert('You must fill your SSN or Federal Tax ID to become an Associate.');
    form.ssn.focus();
    return false;
  }else if(form.fname.value == ''){
    alert('You must fill in your billing first name.');
    form.fname.focus();
    return false;
  }else if(form.lname.value == ''){
    alert('You must fill in your billing last name.');
    form.lname.focus();
    return false;
  }else if(form.email.value == ''){
    alert('You must fill in your email address.');
    form.email.focus();
    return false;
  }else if(form.email.value != form.email2.value){
    alert('You must type your email address twice.');
    form.email2.focus();
    return false;
  }else if(form.address.value == ''){
    alert('You must fill in your billing address.');
    form.address.focus();
    return false;
  }else if(form.zip.value == ''){
    alert('You must fill in your billing zip code.');
    form.zip.focus();
    return false;
  }else if(form.city.value == ''){
    alert('You must fill in your billing city.');
    form.city.focus();
    return false;
  }else if(form.state.value == ''){
    alert('You must fill in your billing state.');
    form.state.focus();
    return false;
  }else if(!$('#sameasbilling').is(':checked') && form.shipto_fname.value == ''){
    alert('You must fill in your shipping first name.');
    form.shipto_fname.focus();
    return false;
  }else if(!$('#sameasbilling').is(':checked') && form.shipto_lname.value == ''){
    alert('You must fill in your shipping last name.');
    form.shipto_lname.focus();
    return false;
  }else if(!$('#sameasbilling').is(':checked') && form.shipto_address.value == ''){
    alert('You must fill in your shipping address.');
    form.shipto_address.focus();
    return false;
  }else if(!$('#sameasbilling').is(':checked') && form.shipto_zip.value == ''){
    alert('You must fill in your shipping zip code.');
    form.shipto_zip.focus();
    return false;
  }else if(!$('#sameasbilling').is(':checked') && form.shipto_city.value == ''){
    alert('You must fill in your shipping city.');
    form.shipto_city.focus();
    return false;
  }else if(!$('#sameasbilling').is(':checked') && form.shipto_state.value == ''){
    alert('You must fill in your shipping state.');
    form.shipto_state.focus();
    return false;
  }else if(form.card_number.value == ''){
    alert('You must fill in your credit card number.');
    form.card_number.focus();
    return false;
  }else if(form.card_code.value == ''){
    alert('You must fill in your credit card CVV2 code.');
    form.card_code.focus();
    return false;
  }else if(form.card_exp_mo.value == '' || form.card_exp_yr.value == ''){
    alert('You must fill in your crdit card exp date.');
    form.card_exp_mo.focus();
    return false;
  }else {
    return true;
  }
}

