// <!--


  function OpenApplicationWindow( )
  {                                     
    if (document.emp_app.intStoreID.value != 0 || document.emp_app.CorpPosID.value != 0)
    { 
      var posID      = document.emp_app.posID.value;
      var countyID   = document.emp_app.strCounty.value;
      var intStoreID = document.emp_app.intStoreID.value;
      var CorpPosID  = document.emp_app.CorpPosID.value; 
      var scpaID     = document.emp_app.scpaID.value;        
      var sURL       = "./application-body.asp?posID=" + posID + "&strCounty=" + countyID + "&intStoreID=" + intStoreID + "&CorpPosID=" + CorpPosID + "&scpaID=" + scpaID;
      openWindow(sURL, 620, 650); 
    }
    else return false;
  }  


  function CheckApplication( )
  {
    if( document.forms[0].strFirst.value == "" )
    {
      alert("You must enter your first name.");
      return false;
    }
/*    if( document.forms[0].strMiddle.value == "" )
    {
      alert("You must enter your middle name.");
      return false;
    }  */
    if( document.forms[0].strLast.value == "" )
    {
      alert("You must enter your last name.");
      return false;
    }
    if( document.forms[0].strAddress.value == "" )
    {
      alert("You must enter your address.");
      return false;
    }
    if( document.forms[0].strCity.value == "" )
    {
      alert("You must enter your city.");
      return false;
    }
    if( document.forms[0].strState.value == "" )
    {
      alert("You must enter your state.");
      return false;
    }
    if( document.forms[0].strZIP.value == "" )
    {
      alert("You must enter your ZIP code.");
      return false;
    }
    if( document.forms[0].strDphone.value == "" )
    {
      alert("You must enter your daytime phone number.");
      return false;
    }
    if( document.forms[0].strNphone.value == "" )
    {
      alert("You must enter your evening phone number.");
      return false;
    }
/*    if( document.forms[0].strSSN.value == "" )
    {
      alert("You must enter your social security number.");
      return false;
    } */
    if( getRadioValue( document.forms[0].bValidLic ) == -1 )
    {
      alert("You must indicate whether or not you have a valid drivers license.");
      return false;
    }
    if( document.forms[0].strPosDesired.value == "" )
    {
      alert("You must specify your desired position.");
      return false;
    }
/*    if( document.forms[0].strDateStart.value == "" )
    {
      alert("You must specify the date when you can start work.");
      return false;
    } */
/*    if( document.forms[0].strHoursPerWk.value == "" )
    {
      alert("You must specify the date when you can start work.");
      return false;
    } */
    if( getRadioValue( document.forms[0].bFullTime ) == -1 )
    {
      alert("You must indicate if you will work full time.");
      return false;
    }
    if( getRadioValue( document.forms[0].bPartTime ) == -1 )
    {
      alert("You must indicate if you will work part time.");
      return false;
    }
/*    if( getRadioValue( document.forms[0].b34Hrs ) == -1 )
    {
      alert("You must indicate if you will work 3-4 hour shifts.");
      return false;
    } */
    if( getRadioValue( document.forms[0].bSaturday ) == -1 )
    {
      alert("You must indicate if you will work on Saturday.");
      return false;
    }
    if( getRadioValue( document.forms[0].bSunday ) == -1 )
    {
      alert("You must indicate if you will work on Sunday.");
      return false;
    }
    if( getRadioValue( document.forms[0].bHolidays ) == -1 )
    {
      alert("You must indicate if you will work on Holidays.");
      return false;
    }
/*    if( document.forms[0].strHrsAvail.value == "" )
    {
      alert("You must indicate what hours you are available.");
      return false;
    }   */
/*    if( getRadioValue( document.forms[0].bOvertime ) == -1 )
    {
      alert("You must indicate if you are available to work overtime when necessary.");
      return false;
    } */
    if( getRadioValue( document.forms[0].bPastEmp ) == -1 )
    {
      alert("You must indicate if you have ever worked for Tom Thumb.");
      return false;
    }    
/*    if( getRadioValue( document.forms[0].bPastEmp ) == 1 )
    {
      if( document.forms[0].strPastWhen.value == "" )
      {
        alert("You must indicate when you have worked for Tom Thumb.");
        return false;
      }
      if( document.forms[0].strPastWhere.value == "" )
      {
        alert("You must indicate where you have worked for Tom Thumb.");
        return false;
      }
      if( document.forms[0].strPastPos.value == "" )
      {
        alert("You must indicate the posistion you worked for Tom Thumb.");
        return false;
      }
    }   */ 
    if( getRadioValue( document.forms[0].bFamily ) == -1 )
    {
      alert("You must indicate if you have friends/relatives working for Tom Thumb.");
      return false;
    } 
/*    if( getRadioValue( document.forms[0].bFamily ) == 1 )
    {
      if( document.forms[0].strFamilyWhere.value == "" )
      {
        alert("You must list friends/relatives working for Tom Thumb.");
        return false;
      }
    } */

    if( getRadioValue( document.forms[0].bTransport ) == -1 )
    {
      if( document.forms[0].txtTransport.value == "" ) 
      {
        alert("You must indicate if you have transportation.");
        return false;
      }
    }
/*    if( getRadioValue( document.forms[0].bTransport ) == 0 )
    {
      if( document.forms[0].txtTransport.value == "" ) 
      {
        alert("Please explain your transportation situation.");
        return false;
      }
    } */
    if( getRadioValue( document.forms[0].bEmpRef ) == -1 )
    {
      alert("You must indicate if we may contact your present employer for a reference.");
      return false;
    }

    if( getRadioValue( document.forms[0].bConvict ) == -1 )
    {
      alert("You must indicate if you have criminal offense convictions.");
      return false;
    }
    if( document.forms[0].bTobacco )
    {
      if( getRadioValue( document.forms[0].bTobacco ) == -1 )
      {
        alert("You must indicate if you have tobacco related violations.");
        return false;
      }
    }
    if( document.forms[0].bAlcohol )
    {
      if( getRadioValue( document.forms[0].bAlcohol ) == -1 )
      {
        alert("You must indicate if you have alcohol related violations.");
        return false;
      }
    }
    if( document.forms[0].bDUIDWI )
    {
      if( getRadioValue( document.forms[0].bDUIDWI ) == -1 )
      {
        alert("You must indicate if you have D.U.I./D.W.I. convictions.");
        return false;
      }
    }     
    

      if( document.forms[0].strTitleDuties1.value == "" ) 
      {
        alert("You must list your position held and provide a description of your duties.");
        return false;
      }
      if( document.forms[0].strReasonLeave1.value == "" ) 
      {
        alert("You must provide a reason for leaving your position.");
        return false;
      }
      if( document.forms[0].strDateStart1.value == "" ) 
      {
        alert("You must provide the date you were hired.");
        return false;
      }
      if( document.forms[0].strDateEnd1.value == "" ) 
      {
        alert("You must provide the date you were seperated.");
        return false;
      }
      if( document.forms[0].strPayStart1.value == "" ) 
      {
        alert("You must provide your starting base pay.");
        return false;
      }
      if( document.forms[0].strPayEnd1.value == "" ) 
      {
        alert("You must provide your ending base pay.");
        return false;
      }
      if( document.forms[0].strEmpPhone1.value == "" ) 
      {
        alert("You must provide the employer's phone number.");
        return false;
      }
      if( document.forms[0].strEmpSuper1.value == "" ) 
      {
        alert("You must provide the supervisor's name.");
        return false;
      }

    if( getRadioValue( document.forms[0].bResign) == -1 )
    {
      alert("You must indicate if you have ever been asked to resign a job or been terminated.");
      return false;
    }

    if( !document.forms[0].bReadACA.checked )
    {
      alert("You must mark the checkbox indicating that you have read the Applicant's Certification and Agreement. ");
      return false;
    }
    if( !document.forms[0].bReadDAR.checked )
    {
      alert("You must mark the checkbox indicating that you have read the Disclosure and Release. ");
      return false;
    }
    return true; 
  }// -->