//Checks if the user put everything and sets a cookie.
function checkInput(form)
{
  if (checkName(form) && checkDOB(form) && checkTextAreas('question','answerOption'))
  {
    var firstNameCookie = getCookie('firstName');
  	if (firstNameCookie == null)
  	{
	  setCookie('firstName',form.firstNameBox.value,365);
	}
	
	var lastNameCookie = getCookie('lastName');
  	if (lastNameCookie == null)
  	{
	  setCookie('lastName',form.lastNameBox.value,365);
	}
	
	setCookie('dOB',form.dOBBox.value,365);
	return true;
  }
  else
  {
    return false;
  }
}