function incompleteform(formname, sm)
{
boxcount = 0;

if (formname.fldOFFICERS.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldOUTREACH.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldGRANTS.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldFUNDRAISING.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldLIBRARY.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldEDUCATION.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldCONVENTION.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldENMASSE.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldCONTEST.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldNOMINATING.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldMEMBERSHIP.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldJOURNAL.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldWEBSITE.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldGROUPS.checked)
	{
	boxcount = boxcount + 1;
	}

if (formname.fldMYSELF.checked)
	{
	boxcount = boxcount + 1;
	}

if (boxcount < 1)
	{
	formname.fldSTATEMACHINE.value = sm;
	alert('You MUST check at least ONE email destination box!');
	return false;
	}

if (clip(formname.fldEMAIL.value) == '')
	{
	formname.fldSTATEMACHINE.value = sm;
	alert('You MUST provide an email address in the FROM: field!');
	return false;
	}

}

function clip(s) 
{

while (s.substring(0,1) == ' ')
  {
  s = s.substring(1, s.length);
  }

while (s.substring(s.length-1,s.length) == ' ')
  {
  s = s.substring(0,s.length-1);
  }

return s;
}



function warning()
{
	alert("WARNING!\n\r\n\rIf your return email domain is HOTMAIL, GMAIL, MSN or YAHOO, this email application won't work for you!\n\r\n\rThis is because our GoDaddy mail server filters these email domains in an overzealous attempt to prevent spam.\n\r\n\rPlease click on the CONTACT CMSA! link at the top left of this page instead.\n\r\n\rApologies for the inconvenience!\n\r\n\r- CMSA Webmaster");
}

