
theValidator.required('form_company_info','job_title','Please enter a Job Title!');
theValidator.required('form_company_info','job_type','Please select a Job Category!');
theValidator.required('form_company_info','job_description','Please enter a Job Description!');

// theValidator.required('form_company_info','start_month&start_year','Please enter a valid Start date!','CC_EXP');
// theValidator.required('form_company_info','end_month&end_year','Please enter a valid End date!','CC_EXP');
// theValidator.required('form_company_info','audition_month&audition_year','Please enter a valid Audition date!','CC_EXP');

checkboxlist = '1&postal_response&email_response&fax_response&phone_response&audition_response';
theValidator.required('form_company_info', checkboxlist,'Please select at least 1 Response Method!','MIN_CHECKED');

function on_phone_response( phone_fld, theValidator )
{
  if ( phone_fld.checked ) {
    theValidator.required('form_company_info','job_company_contact_phone','Please enter a Contact Phone!');
  }
  else {
    theValidator.unrequired('form_company_info','job_company_contact_phone' );
  }
}

function on_fax_response( fax_fld, theValidator )
{
  if ( fax_fld.checked ) {

    theValidator.required('form_company_info','job_company_contact_fax','Please enter a Contact Fax #!');
  }
  else {
    theValidator.unrequired('form_company_info','job_company_contact_fax' );
  }
}

function on_audition_response( audition_fld, theValidator )
{
  if ( audition_fld.checked ) {

    theValidator.required('form_company_info','audition_date','Please enter the Audition Date!');
    theValidator.required('form_company_info','job_audition_location','Please enter the Audition Location!');
    theValidator.required('form_company_info','job_audition_notes','Please enter the Audition Notes!');
  }
  else {
    theValidator.unrequired('form_company_info','audition_date' );
    theValidator.unrequired('form_company_info','job_audition_notes' );
    theValidator.unrequired('form_company_info','job_audition_location' );
  }
}

function set_audition( theValidator ) {

  var aud_date = document.form_company_info.audition_date.value;
  var aud_loc  = document.form_company_info.job_audition_location.value;
  var aud_note = document.form_company_info.job_audition_notes.value;

  var audition_fld = document.form_company_info.audition_response;

  if ( aud_date || aud_loc || aud_note ) {
	audition_fld.checked = true;
  }
  else {
	audition_fld.checked = false;
  }

  on_audition_response( audition_fld, theValidator );
}

