function CheckMultiple(name) { theFrm = document.frmSS; for (var i=0; i < theFrm.length; i++) { fldObj = theFrm.elements[i]; var fieldnamecheck=fldObj.name.indexOf(name); if (fieldnamecheck != -1) { if (fldObj.checked) { return true; } } } return false; } function CheckSS() { theFrm = document.frmSS; hasDot = theFrm.Email.value.indexOf("."); hasAt = theFrm.Email.value.indexOf("@"); if (hasDot == -1 || hasAt == -1) { alert("Please enter a valid email address."); theFrm.Email.focus(); theFrm.Email.select(); return false; } return true; }