function getCurrDate()	
{
  var currDate = new Date();
	return currDate;
}

function validateForm()
{
  trimFields();
    
  if(obj.lstDistrict.selectedIndex == 0)
  {
    alert("Please select a District.");
    obj.lstDistrict.focus();
    return false;
  }
  if(obj.txtFirstName.value == "")
  {
    alert("Please enter your First Name.");
    obj.txtFirstName.focus();
    return false;
  }
  if(obj.txtLastName.value == "")
  {
    alert("Please enter your Last Name.");
    obj.txtLastName.focus();
    return false;
  }
  if(obj.txtLastName.value.length < 2)
  {
    alert("Please enter a Last Name.");
    obj.txtLastName.focus();
    return false;
  }
  if(obj.txtPhone.value == "")
  {
    alert("Please enter your Phone Number.");
    obj.txtPhone.focus();
    return false;
  }
  if(obj.txtPhone.value.length < 7)
  {
    alert("Please enter a valid Phone Number.");
    obj.txtPhone.focus();
    return false;
  }
  if(obj.txtDate.value == "")
  {
    alert("Please enter the Date in which the accident happened.");
    obj.txtDate.focus();
    return false;
  }
  if(!chkDate(obj.txtDate.value))
  {
    alert("Please enter a valid Date in which the accident happened.");
    obj.txtDate.focus();
    obj.txtDate.select();
    return false;
  }  
  if(Date.parse(getCurrDate()) <= Date.parse(obj.txtDate.value))
  {
	  alert("The Accident date should be a past or present Date.");
	  obj.txtDate.focus();
	  obj.txtDate.select();
	  return false;
  }
  if(obj.txtAccidentDescription.value == "")
  {
    alert("Please enter your Accident Description.");
    obj.txtAccidentDescription.focus();
    return false;
  }
  if(obj.txtAccidentDescription.value.length < 8)
  {
    alert("Please enter a longer Accident Description.");
    obj.txtAccidentDescription.focus();
    return false;
  }
  if(obj.selAuthorityContacted.selectedIndex == 0)
        obj.txtAuthority.value = '';
}

	function showAuthority() {   
//        Index is 0  -- No
//        Index is 1  -- Yes

        if(obj.selAuthorityContacted.selectedIndex == 1)
        {
            alert('Please indicate which emergency services you reported the accident to and their report number.');
//            obj.txtAuthority.focus();            
        }
	}


