﻿// JavaScript Document
var numLists = 1;
 function doCheckCount(ccObj){
	 if(ccObj.checked)
	  numLists = numLists + 1;
	 else numLists = numLists - 1;
	}
 function CheckSS(){
	 theFrm = document.frmSS;
	 hasDot = theFrm.Email.value.indexOf(".");
	 hasAt = theFrm.Email.value.indexOf("@");
 if(hasDot + hasAt < 0){
	  alert("Please enter a valid email address.");
	  theFrm.Email.focus();
	  theFrm.Email.select();
	  return false;
	 }
 if(numLists == 0)
	 {
	  alert("Please choose a mailing list to subscribe to.");
	  return false;
	 }
	return true;
	}
