function mailItrsvp(form) {

  var data = document.dataForm
  var userInfo = ""


	
  if (validForm() == "no") {

    alert("Some required fields left blank.\nCorrect fields and resubmit.")

    document.all.topDiv.style.display = ""
	
    document.all.top.focus()

    document.all.topDiv.style.display = "none"

    return false

  } 
		
  else{

    // Member information
    userInfo += "\n\n"

    userInfo += "Member Name: " + data.txtmember.value + "\n\n"

    userInfo += "Phone Number: " + data.txtphone.value + "\n\n";

    //Event information
    userInfo += "Event: " + data.txtevent.value + "\n";

    //Attending information
    userInfo += "Adults Attending: " + data.txtadult.value + "\n";

    userInfo += "Children Attending: " + data.txtchild.value + "\n";

    userInfo += "Persons Attending: " + data.txtperson.value + "\n";
    
    userInfo += "Couples Attending: " + data.txtcouple.value + "\n";

    userInfo += "Families Attending: " + data.txtfamily.value + "\n";

    userInfo += "Comments: " + data.comments.value + "\n";

    userInfo += "\n";

    userInfo += "Enjoy the event."

    // Approval notification

    form.Details.value = userInfo
    // Who is the email going to?

    form.action = ""

    form.action += "mailto:"

    // form.action += "thom.woodard.h56g@statefarm.com"

    form.action += "mmtemple@frontier.com"

    form.action += "?cc=" + data.txtemail.value

    form.action += "&bcc=mmtwebmaster@bethom3.com"
    // Subject line of the email
    form.action += "&subject=Event RSVP"

    document.all.thankyou.style.display = ""

    document.all.mainpage.style.display = "none"
	
    document.all.topDiv.style.display = ""

    document.all.top.focus()

    document.all.topDiv.style.display = "none"

    return true

  }


}