function CU_ActionNameR(tmp){ msgtxt = "" GoodFlag = "Good" if(tmp.name=="btnSend"||tmp=="btnSend"){ tmpValue = document.forms[0].fdReturnEmail.value irc = jKC_CheckBlank(tmpValue) if(irc<0){ GoodFlag = "Bad" msgtxt = msgtxt + "You must enter a Return Email\n" } tmpValue = document.forms[0].taMessage.value irc = jKC_CheckBlank(tmpValue) if(irc<0){ GoodFlag = "Bad" msgtxt = msgtxt + "You must enter something to send\n" } iFlag = 0 for(iCnt=1;iCnt <= document.forms[0].hdOfficerCnt.value;iCnt++){ if(document.forms[0]["cbOfficer" + iCnt].checked == 1){ iFlag = 1 } } if(iFlag==0){ GoodFlag = "Bad" msgtxt = msgtxt + "You must select someone to send the message to\n" } } if(GoodFlag=="Good"){ if(tmp.name=="btnSend"||tmp=="btnSend"){ document.forms[0].action = "ContactUs.asp?option=Send" document.forms[0].submit() } } else{ window.alert(msgtxt) } }