\n'); } function get_checked_items() { var c_value = ""; var c_text = ""; var s_email = ""; for (var i=0; i < document.subscribeform.list.length; i++) { if (document.subscribeform.list[i].checked) { c_value = c_value + document.subscribeform.list[i].value + " "; switch(document.subscribeform.list[i].value) { case "booksandculture-html": c_text = c_text + "Books & Culture (weekly) \n"; break; case "bcl": c_text = c_text + "Building Church Leaders (weekly) \n"; break; case "buildingsmallgroups-html": c_text = c_text + "Building Small Groups (monthly) \n"; break; case "biblestudies-html": c_text = c_text + "Christian Bible Studies (weekly) \n"; break; case "history-html": c_text = c_text + "Christian History & Biography Newsletter (weekly) \n"; break; case "ctlibrary-html": c_text = c_text + "Christian News and Research Newsletter -- ChristianityTodayLibrary.com (semimonthly) \n"; break; case "visionproject": c_text = c_text + "The Christian Vision Project (monthly) \n"; break; case "housenews": c_text = c_text + "Christianity.ca's Virtual House News (weekly) \n"; break; case "churchlaughs-html": c_text = c_text + "Church Laughs (weekly) \n"; break; case "churchplaza-html": c_text = c_text + "Church Plaza Newsletter (monthly) \n"; break; case "collegeguide": c_text = c_text + "College Guide (monthly) \n"; break; case "conferences": c_text = c_text + "Conferences Update (monthly) \n"; break; case "connection-html": c_text = c_text + "The Connection -- HTML (weekly) \n"; break; case "connection": c_text = c_text + "The Connection -- Text-only (weekly) \n"; break; case "ctdirect-html": c_text = c_text + "CTDirect (daily) \n"; break; case "ctweekly-html": c_text = c_text + "CTWeekly \n"; break; case "movies-html": c_text = c_text + "CT at the Movies (weekly) \n"; break; case "dnaofrelationships-html": c_text = c_text + "Smalley Relationship Center Newsletter (weekly) \n"; break; case "e-cards-html": c_text = c_text + "E-Cards (Holiday Reminder) \n"; break; case "workplace-html": c_text = c_text + "Faith in the Workplace Newsletter (biweekly) \n"; break; case "faithvisuals": c_text = c_text + "Faith Visuals Newsletter (monthly) \n"; break; case "hottopics": c_text = c_text + "Hot Topics Newsletter (monthly) \n"; break; case "campuslife-html": c_text = c_text + "Ignite Your Faith Connection (weekly) \n"; break; case "ctcourses-html": c_text = c_text + "Interactive Training Courses \n"; break; case "leadership-html": c_text = c_text + "Leadership Essentials for Women \n"; break; case "marriage-html": c_text = c_text + "Marriage Connection (biweekly) \n"; break; case "men-html": c_text = c_text + "Men in the Word (weekly) \n"; break; case "parenting-html": c_text = c_text + "MOMSense Newsletter (biweekly) \n"; break; case "music-html": c_text = c_text + "Music Connection (weekly) \n"; break; case "outreach-html": c_text = c_text + "Outreach & Evangelism Newsletter (biweekly) \n"; break; case "ptaudio-html": c_text = c_text + "Preaching Today Audio (monthly) \n"; break; case "ptsermons": c_text = c_text + "Preaching Today Sermons (weekly) \n"; break; case "wiu-html": c_text = c_text + "Preaching Connection (weekly) \n"; break; case "singles-html": c_text = c_text + "The Singles Channel Newsletter (weekly) \n"; break; case "childrensministry-html": c_text = c_text + "Today's Children's Ministry (monthly) \n"; break; case "tctoolbox-html": c_text = c_text + "Today's Christian Toolbox (bimonthly) \n"; break; case "todayschristian-html": c_text = c_text + "Today's Christian Weekly \n"; break; case "women-html": c_text = c_text + "Women's Connection (weekly) \n"; break; case "yourchurch-html": c_text = c_text + "Your Church (biweekly) \n"; break; case "churchsafety-html": c_text = c_text + "Your Church Safety Newsletter (monthly) \n"; break; } } } if (c_text != "") { s_email = document.subscribeform.email.value; subscribeform.checkedboxes.value = c_value; c_text = "The email address " + s_email + " has been subscribed to the following Newsletters:\n" + c_text; alert(c_text); return true; } else { c_text = "Please select at least one Newsletter"; alert(c_text); return false; } } emailre = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/ function check_email(theForm){ if (emailre.test(theForm.email.value)) { return true; } alert("Please enter a valid Email address"); theForm.email.focus(); theForm.email.select(); return false; } //-->
| |||
|