Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 467
  • Last Modified:

Javascript Alert Formatting/Design HELP!!! 500 points

I have received help with this before on EE and I am just looking for a little formatting help with the alerts of this form validation. The form works great, I am just looking for formatting help.

 If you look at the image provided  you will see that when a user forgets to fill out a part of the form, the form field will turn red.  That's fine, but if the user doesn't click on that exact field it will not turn back to normal.  I am either looking to have the field turn back to normal no matter which choice for that question is touched or i am looking to change the way the alert is given.   I was hoping that maybe the BLUE Question Number can turn red or something like that.  

If someone knows of a way to turn the question number red or have the alert go back to normal mode on the form field when any choice is chosen for that question, i would be greatful.

Here is the image:
http://www.jhasim.net/webshot2.jpg


Here is my code for the page.
Thank you

----------------------------------------------------------
<cfquery name="getArticles" datasource="#DataTables#">
SELECT Articles.*, [Zone].ZoneName
FROM Articles INNER JOIN [Zone] ON Articles.ArticleZone = [Zone].ZoneID
WHERE ArticleID =#URL.ID#
</cfquery>

<CFIF IsDefined("SESSION.Auth.UserID") is TRUE>
<CFQUERY name="getCompletedEvals" datasource="#DataTables#">
SELECT Articles.*, ArticleEvaluations.*
FROM ArticleEvaluations INNER JOIN Articles ON ArticleEvaluations.ArticleID = Articles.ArticleID
WHERE ArticleEvaluations.ArticleReviewerID = #SESSION.Auth.UserID#
</CFQUERY>
</CFIF>


<cfset  myVariable = #getArticles.ArticleCMECredit#>
<CFOUTPUT>
<script type="text/javascript">
 formSubmit=1;
function chkCredits(formName){
     var maxCredits = #myVariable#;
     if (formName.credithours.value > maxCredits){
          throwError(formName.credithours,'That it is over the maximum allowed credits.')
          formSubmit=0;
     }
}

var formAlertMessage='There were Errors!';
function throwError (theField,theMessage) {
     formAlertMessage=formAlertMessage + "\n - " + theMessage;
     formSubmit=0;
     switchStyle(theField);
}
function switchStyle (theField) {
     theSwitch=new Function("this.style.backgroundColor='FFFFFF';this.style.color='000000';if(this.type=='text') this.select();")
     theField.style.backgroundColor='FF0000';
     theField.style.color='White';
     theField.onfocus=theSwitch;
}
function formAlert() {
     alert(formAlertMessage);
     formAlertMessage='There were Errors!';
     formSubmit=1;
}

function checkForm(formName) {
     if (formName.Q11[0].checked) {
          if  (formName.Q11C.value=="")
               {
                                 throwError(formName.Q11C,"Please explain why you said yes for question 11!");
                                         formSubmit=0;
               }
     }

     if (formName.Q12[1].checked) {
          if  (formName.Q12C.value=="")
               {
                                 throwError(formName.Q12C,"Please explain your answer for question 12!");
                                         formSubmit=0;

               }
     }
     
     if (formName.Q13[0].checked) {
          if  (formName.Q13C.value=="")
               {
                                 throwError(formName.Q13C,"What are your comments for question 13!");
                                         formSubmit=0;

               }
     }
       if  (formName.q1_text.value=="")
               {
                                 throwError(formName.q1_text,"What are your comments for Part II Question 1!");
                                         formSubmit=0;

               }
     if  (formName.q2_text.value=="")
               {
                                 throwError(formName.q2_text,"What are your comments for Part II Question 2!");
                                         formSubmit=0;

               }
       if  (formName.q3_text.value=="")
               {
                                 throwError(formName.q3_text,"What are your recommendations for Part II Question 3!");
                                         formSubmit=0;

               }
      if  (formName.credithours.value=="")
               {
                                 throwError(formName.credithours,"Please enter your credit hours!");
                                         formSubmit=0;

               }  
}

       function submitForm(theForm) {
           chkCredits(theForm);
        checkForm(theForm);
          if(!theForm.Q1[0].checked && !theForm.Q1[1].checked && !theForm.Q1[2].checked && !theForm.Q1[3].checked){
               throwError(theForm.Q1[0],'Question one is required.')
          }
          if(!theForm.Q2[0].checked && !theForm.Q2[1].checked){
               throwError(theForm.Q2[0],'Question two is required.')
          }
          if(!theForm.Q3[0].checked && !theForm.Q3[1].checked ){
               throwError(theForm.Q3[0],'Question three is required.')
          }
          if(!theForm.Q4[0].checked && !theForm.Q4[1].checked){
               throwError(theForm.Q4[0],'Question four is required.')
          }
          if(!theForm.Q5[0].checked && !theForm.Q5[1].checked){
               throwError(theForm.Q5[0],'Question five is required.')
          }
          if(!theForm.Q6[0].checked && !theForm.Q6[1].checked){
               throwError(theForm.Q6[0],'Question six is required.')
          }
          if(!theForm.Q7[0].checked && !theForm.Q7[1].checked ){
               throwError(theForm.Q7[0],'Question seven is required.')
          }
          if(!theForm.Q8[0].checked && !theForm.Q8[1].checked){
               throwError(theForm.Q8[0],'Question eight is required.')
          }
              if(!theForm.Q9[0].checked && !theForm.Q9[1].checked){
               throwError(theForm.Q9[0],'Question nine is required.')
          }
              if(!theForm.Q10[0].checked && !theForm.Q10[1].checked && !theForm.Q10[2].checked && !theForm.Q10[3].checked){
               throwError(theForm.Q10[0],'Question ten is required.')
          }
              if(!theForm.Q11[0].checked && !theForm.Q11[1].checked){
               throwError(theForm.Q11[0],'Question nine is required.')
          }
              if(!theForm.Q12[0].checked && !theForm.Q12[1].checked){
               throwError(theForm.Q12[0],'Question nine is required.')
          }
              if(!theForm.Q13[0].checked && !theForm.Q13[1].checked){
               throwError(theForm.Q13[0],'Question nine is required.')
          }
         
         

                   
          if(formSubmit) {
               return true;
          } else {
               formAlert()
               formSubmit=1;
               return false;
          }
     }


</script>

</CFOUTPUT>

<TABLE width="100%" border="0">
      <TR>
        <TD class="TDtitle">CME CLINICAL EVALUATION</TD>
      </TR>
      <TR>
        <TD>
<CFOUTPUT query="getArticles">
<TABLE width="100%" border="0">
 <TR valign="top">
    <td colspan="2"><SPAN class="issueCategoryText">#ZoneName# - (#decimalFormat(ArticleCMECredit)# Credit Hours Maximum)</SPAN><br><SPAN class="issueHeaderText">#ArticleName#</SPAN><br><SPAN class="secondary"><STRONG>#ArticleAuthor#</STRONG> (#ArticleAuthorInfo#)</SPAN></TD>
  </TR>

  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <CFIF IsDefined("SESSION.Auth.UserID") AND LISTFIND(valuelist(getCompletedEvals.ArticleID),getArticles.ArticleID)>
  <TR>
    <TD class="TDdashed" align="center"><br>&nbsp;&nbsp;&nbsp;You have already completed this article evaluation, please <a href="javascript:history.go(-1)">GO BACK</a> and complete the remaining evaluations or view one of our other issues to review other articles.&nbsp;&nbsp;&nbsp;<br><br></TD>
  </TR>
  <cfelse>
 
  <TR>
    <TD class="issueHeaderText">To earn credit, please respond to each statement by checking the appropriate box and by filling out a detailed response to the appropriate questions.</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD>

<TABLE width="100%" border="0">
<form name="form1" action="template.cfm?TEMPLATE=include_clinicaleval_insert.cfm" onSubmit="return submitForm(this);">
<INPUT type="hidden" name="ID" value="#URL.ID#">
  <TR>
    <TD colspan="7"><TABLE width="100%" border="0">
      <TR>
        <TD width="351">&nbsp;</TD>
        <TD width="59" align="center" class="title"><b><FONT color="##000000">Strongly Agree</FONT></b></TD>
        <TD width="54" align="center" class="title"><b><FONT color="##000000">Strongly Disagree</FONT></b></TD>
      </TR>
    </TABLE></TD>
    </TR>
  <TR>
    <TD colspan="2">&nbsp;</TD>
    <TD width="28" align="center" class="title">5</TD>
    <TD width="28" align="center" class="title">4</TD>
    <TD width="28" align="center" class="title">3</TD>
    <TD width="28" align="center" class="title">2</TD>
    <TD width="32" align="center" class="title">1</TD>
  </TR>
  <TR>
    <TD colspan="7" align="left" class="title">PART I<BR><font color="##000000">Educational value</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">1</TD>
    <TD width="683" align="left" class="normaltextreg">I learned something new that was important.</TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="5" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="4" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="3" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="2" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="1" tabindex="1"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">2</TD>
    <TD class="normaltextreg">I verified some important information.</TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="5" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="4" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="3" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="2" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="1" tabindex="2"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">3</TD>
    <TD class="normaltextreg">I plan to discuss this information with colleagues.</TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="5" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="4" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="3" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="2" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="1" tabindex="3"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">4</TD>
    <TD class="normaltextreg">I plan to seek more information on this topic.</TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="5" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="4" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="3" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="2" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="1" tabindex="4"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">5</TD>
    <TD class="normaltextreg">My attitude about this topic changed in some way.</TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="5" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="4" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="3" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="2" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="1" tabindex="5"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">6</TD>
    <TD class="normaltextreg">This information is likely to have an impact on my practice.</TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="5" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="4" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="3" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="2" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="1" tabindex="6"></TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><BR><font color="##000000">Readability feedback</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD align="center" valign="top" class="TDtitle">7</TD>
    <TD class="normaltextreg">I understood what the authors were trying to say.</TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="5" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="4" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="3" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="2" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="1"></TD>
  </TR>
  <TR>
    <TD align="center" valign="top" class="TDtitle">8</TD>
    <TD class="normaltextreg">I was able to interpret the tables and figures (if there were no tables
      or figures, leave blank).</TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="5" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="4" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="3" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="2" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="1" tabindex="8"></TD>
  </TR>
  <TR>
    <TD align="center" valign="top" class="TDtitle">9</TD>
    <TD class="normaltextreg">Overall, the presentation of the article enhanced my ability to read
      and understand it.</TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="5" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="4" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="3" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="2" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="1" tabindex="9"></TD>
  </TR>
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><font color="##000000">Activity Evaluation</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD rowspan="2" class="TDtitle" align="center" valign="top">Q10</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>On the whole, how do you rate the value
      of this article?</STRONG></TD>
    </TR>
  <TR>
    <TD colspan="6" class="normaltextreg">
         Excellent <INPUT type="radio" name="Q10" value="Excellent" tabindex="2">
       Good <INPUT type="radio" name="Q10" value="Good" tabindex="2">
       Fair <INPUT type="radio" name="Q10" value="Fair" tabindex="2">
       Poor <INPUT type="radio" name="Q10" value="Poor" tabindex="2">
      
      </TD>
    </TR>
      
<TR>
    <TD align="center" valign="top" class="TDtitle">Q11</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Were any portions of this activity unsatisfactory or inappropriate?</STRONG><BR>
            Yes <INPUT type="radio" name="Q11" value="Yes" tabindex="5">
            No <INPUT type="radio" name="Q11" value="No" tabindex="5">
      <P>If &quot;Yes,&quot; explain?<BR>
              <TEXTAREA name="Q11C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
      </P>
    </TD>
</TR>

<TR>
    <TD align="center" valign="top" class="TDtitle">Q12</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Was the information presented
        in this activity fair, objective, and balanced?</STRONG><BR>
            Yes <INPUT type="radio" name="Q12" value="Yes" tabindex="5">
            No <INPUT type="radio" name="Q12" value="No" tabindex="5">
      <P>If &quot;No,&quot; explain?<BR>
              <TEXTAREA name="Q12C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
      </P>
    </TD>
</TR>

<TR>
    <TD height="149" align="center" valign="top" class="TDtitle">Q13</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Is there subject matter you would like addressed in the future?</STRONG><BR>
            Yes <INPUT type="radio" name="Q13" value="Yes" tabindex="5">
            No <INPUT type="radio" name="Q13" value="No" tabindex="5">
      <P>If &quot;Yes,&quot; explain?<BR>
              <TEXTAREA name="Q13C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
      </P>
    </TD>
</TR>
      
      
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title">Part II<BR><font color="##000000">Commitment to Change</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q1</TD>
    <TD colspan="6" class="normaltextreg">How do you plan to change your practice
      as a result of this article?<EM> Explanation Required</EM>.</TD>
    </TR>
  <TR>
    <TD colspan="6"><TEXTAREA name="q1_text" cols="70" rows="3" class="formtextarea" tabindex="10"></TEXTAREA></TD>
    </TR>
<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q2</TD>
    <TD colspan="6" class="normaltextreg">Indicate why you agree or disagree
      with any of the conclusions in this article based on your practice experience?
      <EM>Explanation Required</EM>.</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q2_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q3</TD>
    <TD colspan="6" class="normaltextreg">What recommendations do you have which would improve the value of this activity to your practice?</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q3_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
  <TD colspan="7">&nbsp;</TD>
</TR>

  <TR>
    <TD colspan="7">
      <TABLE width="100%" border="0">

      <TR>
        <TD class="normaltextreg"><STRONG>CME CREDITS CLAIMED</STRONG> -
          This activity is eligible for a maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>
          credits. Each physician should claim only those hours
          of credit(s) that he/she actually spent on this educational activity.
          Please fill in only those hours of credit(s) spent on this educational
          activity (maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>). Hours spent should be entered in 15 minute
          increments (e.g., 1 hour 30 minutes equals 1.5):</TD>
        </TR>
      <TR>
        <TD class="TDdashed">&nbsp;&nbsp;Enter your hours:
          <INPUT name="credithours" type="text" class="forminput"></TD>
      </TR>
      <TR>
        <TD class="normaltextreg">&nbsp;</TD>
      </TR></table>
        </td></tr>



  <TR>
    <TD colspan="7" align="center"><INPUT name="submit" value="Submit Evaluation" type="submit"></TD>
    </TR>
</form>
</cfif>
</TABLE>
</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
</TABLE>

</CFOUTPUT>
0
jeffmace
Asked:
jeffmace
  • 9
  • 7
  • 2
1 Solution
 
James RodgersWeb Applications DeveloperCommented:
add this function to your javascript

 function resetColour(obj){
       if(document.forms[0].elements[obj].type=='radio' || document.forms[0].elements[obj].type=='checkbox'){
             document.forms[0].elements[obj][0].style.backgroundColor='white';
       }else{
             document.forms[0].elements[obj].style.backgroundColor='white';
       }
 }

and in each table row with a question add this

 <TR onclick="resetColour('QID')"> where QID is the name os the question that nees to be reset
0
 
James RodgersWeb Applications DeveloperCommented:
sorry this function

function resetColour(obj){
      if(document.forms[0].elements[obj].type=='radio'){
           document.forms[0].elements[obj][0].style.backgroundColor='white';
      }else{
           document.forms[0].elements[obj].style.backgroundColor='white';
      }
 }
0
 
jeffmaceAuthor Commented:
Here take a look at what I did for the first 4 questions to see if I did it right becuase I am not seeing any change when i click on any of the first 4 questions when they are highlighted in red.  They are not turning back to white.

Here is my current code:

<LINK href="includes/main2.css" rel="STYLESHEET" type="text/css">

<!--- If user is not logged in, force them to now --->  
<CFIF NOT IsDefined("SESSION.Auth.IsLoggedIn")>
  <!--- If the user is now submitting "Login" form, --->
  <!--- Include "Login Check" code to validate user --->
  <CFIF IsDefined("Form.UserLogin")>
    <CFINCLUDE TEMPLATE="LoginCheck.cfm">
  </CFIF>

  <CFINCLUDE TEMPLATE="login.cfm">
  <CFABORT>
</CFIF>

<cfquery name="getArticles" datasource="#DataTables#">
SELECT Articles.*, [Zone].ZoneName
FROM Articles INNER JOIN [Zone] ON Articles.ArticleZone = [Zone].ZoneID
WHERE ArticleID =#URL.ID#
</cfquery>

<CFIF IsDefined("SESSION.Auth.UserID") is TRUE>
<CFQUERY name="getCompletedEvals" datasource="#DataTables#">
SELECT Articles.*, ArticleEvaluations.*
FROM ArticleEvaluations INNER JOIN Articles ON ArticleEvaluations.ArticleID = Articles.ArticleID
WHERE ArticleEvaluations.ArticleReviewerID = #SESSION.Auth.UserID#
</CFQUERY>
</CFIF>


<cfset  myVariable = #getArticles.ArticleCMECredit#>
<CFOUTPUT>
<script type="text/javascript">
 formSubmit=1;
function chkCredits(formName){
     var maxCredits = #myVariable#;
     if (formName.credithours.value > maxCredits){
          throwError(formName.credithours,'That it is over the maximum allowed credits.')
          formSubmit=0;
     }
}

var formAlertMessage='There were Errors!';
function throwError (theField,theMessage) {
     formAlertMessage=formAlertMessage + "\n - " + theMessage;
     formSubmit=0;
     switchStyle(theField);
}

function switchStyle (theField) {
     theSwitch=new Function("this.style.backgroundColor='FFFFFF';this.style.color='000000';if(this.type=='text') this.select();")
     theField.style.backgroundColor='FF0000';
     theField.style.color='White';
     theField.onfocus=theSwitch;
}
function formAlert() {
     alert(formAlertMessage);
     formAlertMessage='There were Errors!';
     formSubmit=1;
}

function checkForm(formName) {
     if (formName.Q11[0].checked) {
          if  (formName.Q11C.value=="")
               {
                                 throwError(formName.Q11C,"Please explain why you said yes for question 11!");
                                         formSubmit=0;
               }
     }

     if (formName.Q12[1].checked) {
          if  (formName.Q12C.value=="")
               {
                                 throwError(formName.Q12C,"Please explain your answer for question 12!");
                                         formSubmit=0;

               }
     }
     
     if (formName.Q13[0].checked) {
          if  (formName.Q13C.value=="")
               {
                                 throwError(formName.Q13C,"What are your comments for question 13!");
                                         formSubmit=0;

               }
     }
       if  (formName.q1_text.value=="")
               {
                                 throwError(formName.q1_text,"What are your comments for Part II Question 1!");
                                         formSubmit=0;

               }
     if  (formName.q2_text.value=="")
               {
                                 throwError(formName.q2_text,"What are your comments for Part II Question 2!");
                                         formSubmit=0;

               }
       if  (formName.q3_text.value=="")
               {
                                 throwError(formName.q3_text,"What are your recommendations for Part II Question 3!");
                                         formSubmit=0;

               }
      if  (formName.credithours.value=="")
               {
                                 throwError(formName.credithours,"Please enter your credit hours!");
                                         formSubmit=0;

               }  
}

       function submitForm(theForm) {
           chkCredits(theForm);
        checkForm(theForm);
          if(!theForm.Q1[0].checked && !theForm.Q1[1].checked && !theForm.Q1[2].checked && !theForm.Q1[3].checked){
               throwError(theForm.Q1[0],'Question one is required.')
          }
          if(!theForm.Q2[0].checked && !theForm.Q2[1].checked && !theForm.Q2[2].checked && !theForm.Q2[3].checked){
               throwError(theForm.Q2[0],'Question two is required.')
          }
          if(!theForm.Q3[0].checked && !theForm.Q3[1].checked && !theForm.Q3[2].checked && !theForm.Q3[3].checked){
               throwError(theForm.Q3[0],'Question three is required.')
          }
          if(!theForm.Q4[0].checked && !theForm.Q4[1].checked && !theForm.Q4[2].checked && !theForm.Q4[3].checked){
               throwError(theForm.Q4[0],'Question four is required.')
          }
          if(!theForm.Q5[0].checked && !theForm.Q5[1].checked && !theForm.Q5[2].checked && !theForm.Q5[3].checked){
               throwError(theForm.Q5[0],'Question five is required.')
          }
          if(!theForm.Q6[0].checked && !theForm.Q6[1].checked && !theForm.Q6[2].checked && !theForm.Q6[3].checked){
               throwError(theForm.Q6[0],'Question six is required.')
          }
          if(!theForm.Q7[0].checked && !theForm.Q7[1].checked && !theForm.Q7[2].checked && !theForm.Q7[3].checked){
               throwError(theForm.Q7[0],'Question seven is required.')
          }
          if(!theForm.Q8[0].checked && !theForm.Q8[1].checked && !theForm.Q8[2].checked && !theForm.Q8[3].checked){
               throwError(theForm.Q8[0],'Question eight is required.')
          }
              if(!theForm.Q9[0].checked && !theForm.Q9[1].checked && !theForm.Q9[2].checked && !theForm.Q9[3].checked){
               throwError(theForm.Q9[0],'Question nine is required.')
          }
              if(!theForm.Q10[0].checked && !theForm.Q10[1].checked && !theForm.Q10[2].checked && !theForm.Q10[3].checked){
               throwError(theForm.Q10[0],'Question ten is required.')
          }
              if(!theForm.Q11[0].checked && !theForm.Q11[1].checked){
               throwError(theForm.Q11[0],'Question eleven is required.')
          }
              if(!theForm.Q12[0].checked && !theForm.Q12[1].checked){
               throwError(theForm.Q12[0],'Question twelve is required.')
          }
              if(!theForm.Q13[0].checked && !theForm.Q13[1].checked){
               throwError(theForm.Q13[0],'Question thirteen is required.')
          }
         
function resetColour(obj){
      if(document.forms[0].elements[obj].type=='radio'){
           document.forms[0].elements[obj][0].style.backgroundColor='white';
      }else{
           document.forms[0].elements[obj].style.backgroundColor='white';
      }
 }      

                   
          if(formSubmit) {
               return true;
          } else {
               formAlert()
               formSubmit=1;
               return false;
          }
     }


</script>

</CFOUTPUT>

<TABLE width="100%" border="0">
      <TR>
        <TD class="TDtitle">CME CLINICAL EVALUATION</TD>
      </TR>
      <TR>
        <TD>
<CFOUTPUT query="getArticles">
<TABLE width="100%" border="0">
 <TR valign="top">
    <td colspan="2"><SPAN class="issueCategoryText">#ZoneName# - (#decimalFormat(ArticleCMECredit)# Credit Hours Maximum)</SPAN><br><SPAN class="issueHeaderText">#ArticleName#</SPAN><br><SPAN class="secondary"><STRONG>#ArticleAuthor#</STRONG> (#ArticleAuthorInfo#)</SPAN></TD>
  </TR>

  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <CFIF IsDefined("SESSION.Auth.UserID") AND LISTFIND(valuelist(getCompletedEvals.ArticleID),getArticles.ArticleID)>
  <TR>
    <TD class="TDdashed" align="center"><br>&nbsp;&nbsp;&nbsp;You have already completed this article evaluation, please <a href="javascript:history.go(-1)">GO BACK</a> and complete the remaining evaluations or view one of our other issues to review other articles.&nbsp;&nbsp;&nbsp;<br><br></TD>
  </TR>
  <cfelse>
 
  <TR>
    <TD class="issueHeaderText">To earn credit, please respond to each statement by checking the appropriate box and by filling out a detailed response to the appropriate questions.</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD>

<TABLE width="100%" border="0">
<form name="form1" action="include_clinicaleval_insert.cfm" onSubmit="return submitForm(this);" method="post">
<INPUT type="hidden" name="ID" value="#URL.ID#">
<INPUT type="hidden" name="IssueID" value="#IssueID#">
  <TR>
    <TD colspan="7"><TABLE width="100%" border="0">
      <TR>
        <TD width="351">&nbsp;</TD>
        <TD width="59" align="center" class="title"><b><FONT color="##000000">Strongly Agree</FONT></b></TD>
        <TD width="54" align="center" class="title"><b><FONT color="##000000">Strongly Disagree</FONT></b></TD>
      </TR>
    </TABLE></TD>
    </TR>
  <TR>
    <TD colspan="2">&nbsp;</TD>
    <TD width="28" align="center" class="title">5</TD>
    <TD width="28" align="center" class="title">4</TD>
    <TD width="28" align="center" class="title">3</TD>
    <TD width="28" align="center" class="title">2</TD>
    <TD width="32" align="center" class="title">1</TD>
  </TR>
  <TR>
    <TD colspan="7" align="left" class="title">PART I<BR><font color="##000000">Educational value</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR onclick="resetColour('Q1')">
    <TD width="34" align="center" valign="top" class="TDtitle">1</TD>
    <TD width="683" align="left" class="normaltextreg">I learned something new that was important.</TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="5" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="4" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="3" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="2" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="1" tabindex="1"></TD>
  </TR>
  <TR onclick="resetColour('Q1')">
    <TD width="34" align="center" valign="top" class="TDtitle">2</TD>
    <TD class="normaltextreg">I verified some important information.</TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="5" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="4" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="3" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="2" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="1" tabindex="2"></TD>
  </TR>
  <TR onclick="resetColour('Q3')">
    <TD width="34" align="center" valign="top" class="TDtitle">3</TD>
    <TD class="normaltextreg">I plan to discuss this information with colleagues.</TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="5" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="4" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="3" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="2" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="1" tabindex="3"></TD>
  </TR>
  <TR onclick="resetColour('Q4')">
    <TD width="34" align="center" valign="top" class="TDtitle">4</TD>
    <TD class="normaltextreg">I plan to seek more information on this topic.</TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="5" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="4" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="3" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="2" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="1" tabindex="4"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">5</TD>
    <TD class="normaltextreg">My attitude about this topic changed in some way.</TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="5" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="4" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="3" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="2" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="1" tabindex="5"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">6</TD>
    <TD class="normaltextreg">This information is likely to have an impact on my practice.</TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="5" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="4" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="3" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="2" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="1" tabindex="6"></TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><BR><font color="##000000">Readability feedback</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD align="center" valign="top" class="TDtitle">7</TD>
    <TD class="normaltextreg">I understood what the authors were trying to say.</TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="5" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="4" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="3" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="2" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="1"></TD>
  </TR>
  <TR>
    <TD align="center" valign="top" class="TDtitle">8</TD>
    <TD class="normaltextreg">I was able to interpret the tables and figures (if there were no tables
      or figures, leave blank).</TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="5" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="4" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="3" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="2" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="1" tabindex="8"></TD>
  </TR>
  <TR>
    <TD align="center" valign="top" class="TDtitle">9</TD>
    <TD class="normaltextreg">Overall, the presentation of the article enhanced my ability to read
      and understand it.</TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="5" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="4" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="3" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="2" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="1" tabindex="9"></TD>
  </TR>
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><font color="##000000">Activity Evaluation</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD rowspan="2" class="TDtitle" align="center" valign="top">Q10</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>On the whole, how do you rate the value
      of this article?</STRONG></TD>
    </TR>
  <TR>
    <TD colspan="6" class="normaltextreg">
         Excellent <INPUT type="radio" name="Q10" value="Excellent" tabindex="2">
       Good <INPUT type="radio" name="Q10" value="Good" tabindex="2">
       Fair <INPUT type="radio" name="Q10" value="Fair" tabindex="2">
       Poor <INPUT type="radio" name="Q10" value="Poor" tabindex="2">
      
      </TD>
    </TR>
      
<TR>
    <TD align="center" valign="top" class="TDtitle">Q11</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Were any portions of this activity unsatisfactory or inappropriate?</STRONG><BR>
            Yes <INPUT type="radio" name="Q11" value="Yes" tabindex="5">
            No <INPUT type="radio" name="Q11" value="No" tabindex="5">
      <P>If &quot;Yes,&quot; explain?<BR>
              <TEXTAREA name="Q11C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
      </P>
    </TD>
</TR>

<TR>
    <TD align="center" valign="top" class="TDtitle">Q12</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Was the information presented
        in this activity fair, objective, and balanced?</STRONG><BR>
            Yes <INPUT type="radio" name="Q12" value="Yes" tabindex="5">
            No <INPUT type="radio" name="Q12" value="No" tabindex="5">
      <P>If &quot;No,&quot; explain?<BR>
              <TEXTAREA name="Q12C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
      </P>
    </TD>
</TR>

<TR>
    <TD height="149" align="center" valign="top" class="TDtitle">Q13</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Is there subject matter you would like addressed in the future?</STRONG><BR>
            Yes <INPUT type="radio" name="Q13" value="Yes" tabindex="5">
            No <INPUT type="radio" name="Q13" value="No" tabindex="5">
      <P>If &quot;Yes,&quot; explain?<BR>
              <TEXTAREA name="Q13C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
      </P>
    </TD>
</TR>
      
      
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title">Part II<BR><font color="##000000">Commitment to Change</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q1</TD>
    <TD colspan="6" class="normaltextreg">How do you plan to change your practice
      as a result of this article?<EM> Explanation Required</EM>.</TD>
    </TR>
  <TR>
    <TD colspan="6"><TEXTAREA name="q1_text" cols="70" rows="3" class="formtextarea" tabindex="10"></TEXTAREA></TD>
    </TR>
<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q2</TD>
    <TD colspan="6" class="normaltextreg">Indicate why you agree or disagree
      with any of the conclusions in this article based on your practice experience?
      <EM>Explanation Required</EM>.</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q2_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q3</TD>
    <TD colspan="6" class="normaltextreg">What recommendations do you have which would improve the value of this activity to your practice?</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q3_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
  <TD colspan="7">&nbsp;</TD>
</TR>

  <TR>
    <TD colspan="7">
      <TABLE width="100%" border="0">

      <TR>
        <TD class="normaltextreg"><STRONG>CME CREDITS CLAIMED</STRONG> -
          This activity is eligible for a maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>
          credits. Each physician should claim only those hours
          of credit(s) that he/she actually spent on this educational activity.
          Please fill in only those hours of credit(s) spent on this educational
          activity (maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>). Hours spent should be entered in 15 minute
          increments (e.g., 1 hour 30 minutes equals 1.5):</TD>
        </TR>
      <TR>
        <TD class="TDdashed">&nbsp;&nbsp;Enter your hours:
          <INPUT name="credithours" type="text" class="forminput"></TD>
      </TR>
      <TR>
        <TD class="normaltextreg">&nbsp;</TD>
      </TR></table>
        </td></tr>



  <TR>
    <TD colspan="7" align="center"><INPUT name="submit" value="Submit Evaluation" type="submit"></TD>
    </TR>
</form>
</cfif>
</TABLE>
</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
</TABLE>

</CFOUTPUT>
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
hartCommented:
try this out

change ur switchStyle() to

function switchStyle (theField) {
    theSwitch=new Function("this.style.backgroundColor='FFFFFF';this.style.color='000000';if(this.type=='text') this.select();")
    theField.style.backgroundColor='FF0000';
    theField.style.color='White';
    theField.onfocus=theSwitch;
    theField.focus();
}

Regards
Hart
0
 
hartCommented:
i mean in ur original post... change the function switchStyle () to the given one by me.
what i am doing is explicitly putting the focus on the field, this way it will turn into white..

Regards
Hart
0
 
James RodgersWeb Applications DeveloperCommented:
you hade the function inside another function move teh test function outside of the validation and change it to this

function resetColour(strObj){
           document.forms[0].elements[strObj][0].style.background='white';
 }  

and you only need to do it for radio buttons, at least from your form layout as it is now
0
 
jeffmaceAuthor Commented:
Jester_48 unfortunately yours is still not doing anything.  I moved it out the of the other function, tried it on its own, used your new code, and nothing has changed


Hart.  I tried yours and it seems like it wants to work, but what its doing is when i hit the submit button, i see the empty fields turn red for 1/2 second and then go instantly to white, so it looks like it is automatically going to focus.
0
 
James RodgersWeb Applications DeveloperCommented:
ok try this... complete page code


<LINK href="includes/main2.css" rel="STYLESHEET" type="text/css">

<!--- If user is not logged in, force them to now --->  
<CFIF NOT IsDefined("SESSION.Auth.IsLoggedIn")>
  <!--- If the user is now submitting "Login" form, --->
  <!--- Include "Login Check" code to validate user --->
  <CFIF IsDefined("Form.UserLogin")>
    <CFINCLUDE TEMPLATE="LoginCheck.cfm">
  </CFIF>

  <CFINCLUDE TEMPLATE="login.cfm">
  <CFABORT>
</CFIF>

<cfquery name="getArticles" datasource="#DataTables#">
SELECT Articles.*, [Zone].ZoneName
FROM Articles INNER JOIN [Zone] ON Articles.ArticleZone = [Zone].ZoneID
WHERE ArticleID =#URL.ID#
</cfquery>

<CFIF IsDefined("SESSION.Auth.UserID") is TRUE>
<CFQUERY name="getCompletedEvals" datasource="#DataTables#">
SELECT Articles.*, ArticleEvaluations.*
FROM ArticleEvaluations INNER JOIN Articles ON ArticleEvaluations.ArticleID = Articles.ArticleID
WHERE ArticleEvaluations.ArticleReviewerID = #SESSION.Auth.UserID#
</CFQUERY>
</CFIF>


<cfset  myVariable = #getArticles.ArticleCMECredit#>
<CFOUTPUT>
<script type="text/javascript">
 formSubmit=1;
function chkCredits(formName){
     var maxCredits = #myVariable#;
     if (formName.credithours.value > maxCredits){
          throwError(formName.credithours,'That it is over the maximum allowed credits.')
          formSubmit=0;
     }
}

var formAlertMessage='There were Errors!';
function throwError (theField,theMessage) {
     formAlertMessage=formAlertMessage + "\n - " + theMessage;
     formSubmit=0;
     switchStyle(theField);
}

function switchStyle (theField) {
     theSwitch=new Function("this.style.backgroundColor='FFFFFF';this.style.color='000000';if(this.type=='text') this.select();")
     theField.style.backgroundColor='FF0000';
     theField.style.color='White';
     theField.onfocus=theSwitch;
}
function formAlert() {
     alert(formAlertMessage);
     formAlertMessage='There were Errors!';
     formSubmit=1;
}

function checkForm(formName) {
     if (formName.Q11[0].checked) {
          if  (formName.Q11C.value=="")
               {
                                 throwError(formName.Q11C,"Please explain why you said yes for question 11!");
                                         formSubmit=0;
               }
     }

     if (formName.Q12[1].checked) {
          if  (formName.Q12C.value=="")
               {
                                 throwError(formName.Q12C,"Please explain your answer for question 12!");
                                         formSubmit=0;

               }
     }
     
     if (formName.Q13[0].checked) {
          if  (formName.Q13C.value=="")
               {
                                 throwError(formName.Q13C,"What are your comments for question 13!");
                                         formSubmit=0;

               }
     }
      if  (formName.q1_text.value=="")
               {
                                 throwError(formName.q1_text,"What are your comments for Part II Question 1!");
                                         formSubmit=0;

               }
     if  (formName.q2_text.value=="")
               {
                                 throwError(formName.q2_text,"What are your comments for Part II Question 2!");
                                         formSubmit=0;

               }
      if  (formName.q3_text.value=="")
               {
                                 throwError(formName.q3_text,"What are your recommendations for Part II Question 3!");
                                         formSubmit=0;

               }
     if  (formName.credithours.value=="")
               {
                                 throwError(formName.credithours,"Please enter your credit hours!");
                                         formSubmit=0;

               }  
}

       function submitForm(theForm) {
           chkCredits(theForm);
        checkForm(theForm);
          if(!theForm.Q1[0].checked && !theForm.Q1[1].checked && !theForm.Q1[2].checked && !theForm.Q1[3].checked){
               throwError(theForm.Q1[0],'Question one is required.')
          }
          if(!theForm.Q2[0].checked && !theForm.Q2[1].checked && !theForm.Q2[2].checked && !theForm.Q2[3].checked){
               throwError(theForm.Q2[0],'Question two is required.')
          }
          if(!theForm.Q3[0].checked && !theForm.Q3[1].checked && !theForm.Q3[2].checked && !theForm.Q3[3].checked){
               throwError(theForm.Q3[0],'Question three is required.')
          }
          if(!theForm.Q4[0].checked && !theForm.Q4[1].checked && !theForm.Q4[2].checked && !theForm.Q4[3].checked){
               throwError(theForm.Q4[0],'Question four is required.')
          }
          if(!theForm.Q5[0].checked && !theForm.Q5[1].checked && !theForm.Q5[2].checked && !theForm.Q5[3].checked){
               throwError(theForm.Q5[0],'Question five is required.')
          }
          if(!theForm.Q6[0].checked && !theForm.Q6[1].checked && !theForm.Q6[2].checked && !theForm.Q6[3].checked){
               throwError(theForm.Q6[0],'Question six is required.')
          }
          if(!theForm.Q7[0].checked && !theForm.Q7[1].checked && !theForm.Q7[2].checked && !theForm.Q7[3].checked){
               throwError(theForm.Q7[0],'Question seven is required.')
          }
          if(!theForm.Q8[0].checked && !theForm.Q8[1].checked && !theForm.Q8[2].checked && !theForm.Q8[3].checked){
               throwError(theForm.Q8[0],'Question eight is required.')
          }
            if(!theForm.Q9[0].checked && !theForm.Q9[1].checked && !theForm.Q9[2].checked && !theForm.Q9[3].checked){
               throwError(theForm.Q9[0],'Question nine is required.')
          }
            if(!theForm.Q10[0].checked && !theForm.Q10[1].checked && !theForm.Q10[2].checked && !theForm.Q10[3].checked){
               throwError(theForm.Q10[0],'Question ten is required.')
          }
            if(!theForm.Q11[0].checked && !theForm.Q11[1].checked){
               throwError(theForm.Q11[0],'Question eleven is required.')
          }
            if(!theForm.Q12[0].checked && !theForm.Q12[1].checked){
               throwError(theForm.Q12[0],'Question twelve is required.')
          }
            if(!theForm.Q13[0].checked && !theForm.Q13[1].checked){
               throwError(theForm.Q13[0],'Question thirteen is required.')
          }
         
   

                   
          if(formSubmit) {
               return true;
          } else {
               formAlert()
               formSubmit=1;
               return false;
          }
     }

function resetColour(obj){
           document.forms[0].elements[obj][0].style.backgroundColor='white';
 }    
</script>

</CFOUTPUT>

<TABLE width="100%" border="0">
      <TR>
        <TD class="TDtitle">CME CLINICAL EVALUATION</TD>
      </TR>
      <TR>
        <TD>
<CFOUTPUT query="getArticles">
<TABLE width="100%" border="0">
 <TR valign="top">
    <td colspan="2"><SPAN class="issueCategoryText">#ZoneName# - (#decimalFormat(ArticleCMECredit)# Credit Hours Maximum)</SPAN><br><SPAN class="issueHeaderText">#ArticleName#</SPAN><br><SPAN class="secondary"><STRONG>#ArticleAuthor#</STRONG> (#ArticleAuthorInfo#)</SPAN></TD>
  </TR>

  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <CFIF IsDefined("SESSION.Auth.UserID") AND LISTFIND(valuelist(getCompletedEvals.ArticleID),getArticles.ArticleID)>
  <TR>
    <TD class="TDdashed" align="center"><br>&nbsp;&nbsp;&nbsp;You have already completed this article evaluation, please <a href="javascript:history.go(-1)">GO BACK</a> and complete the remaining evaluations or view one of our other issues to review other articles.&nbsp;&nbsp;&nbsp;<br><br></TD>
  </TR>
  <cfelse>
 
  <TR>
    <TD class="issueHeaderText">To earn credit, please respond to each statement by checking the appropriate box and by filling out a detailed response to the appropriate questions.</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD>

<TABLE width="100%" border="0">
<form name="form1" action="include_clinicaleval_insert.cfm" onSubmit="return submitForm(this);" method="post">
<INPUT type="hidden" name="ID" value="#URL.ID#">
<INPUT type="hidden" name="IssueID" value="#IssueID#">
  <TR>
    <TD colspan="7"><TABLE width="100%" border="0">
      <TR>
        <TD width="351">&nbsp;</TD>
        <TD width="59" align="center" class="title"><b><FONT color="##000000">Strongly Agree</FONT></b></TD>
        <TD width="54" align="center" class="title"><b><FONT color="##000000">Strongly Disagree</FONT></b></TD>
      </TR>
    </TABLE></TD>
    </TR>
  <TR>
    <TD colspan="2">&nbsp;</TD>
    <TD width="28" align="center" class="title">5</TD>
    <TD width="28" align="center" class="title">4</TD>
    <TD width="28" align="center" class="title">3</TD>
    <TD width="28" align="center" class="title">2</TD>
    <TD width="32" align="center" class="title">1</TD>
  </TR>
  <TR>
    <TD colspan="7" align="left" class="title">PART I<BR><font color="##000000">Educational value</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR onclick="resetColour('Q1')">
    <TD width="34" align="center" valign="top" class="TDtitle">1</TD>
    <TD width="683" align="left" class="normaltextreg">I learned something new that was important.</TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="5" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="4" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="3" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="2" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="1" tabindex="1"></TD>
  </TR>
  <TR onclick="resetColour('Q1')">
    <TD width="34" align="center" valign="top" class="TDtitle">2</TD>
    <TD class="normaltextreg">I verified some important information.</TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="5" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="4" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="3" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="2" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="1" tabindex="2"></TD>
  </TR>
  <TR onclick="resetColour('Q3')">
    <TD width="34" align="center" valign="top" class="TDtitle">3</TD>
    <TD class="normaltextreg">I plan to discuss this information with colleagues.</TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="5" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="4" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="3" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="2" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="1" tabindex="3"></TD>
  </TR>
  <TR onclick="resetColour('Q4')">
    <TD width="34" align="center" valign="top" class="TDtitle">4</TD>
    <TD class="normaltextreg">I plan to seek more information on this topic.</TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="5" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="4" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="3" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="2" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="1" tabindex="4"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">5</TD>
    <TD class="normaltextreg">My attitude about this topic changed in some way.</TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="5" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="4" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="3" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="2" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="1" tabindex="5"></TD>
  </TR>
  <TR>
    <TD width="34" align="center" valign="top" class="TDtitle">6</TD>
    <TD class="normaltextreg">This information is likely to have an impact on my practice.</TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="5" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="4" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="3" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="2" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="1" tabindex="6"></TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><BR><font color="##000000">Readability feedback</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD align="center" valign="top" class="TDtitle">7</TD>
    <TD class="normaltextreg">I understood what the authors were trying to say.</TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="5" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="4" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="3" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="2" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="1"></TD>
  </TR>
  <TR>
    <TD align="center" valign="top" class="TDtitle">8</TD>
    <TD class="normaltextreg">I was able to interpret the tables and figures (if there were no tables
      or figures, leave blank).</TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="5" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="4" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="3" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="2" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="1" tabindex="8"></TD>
  </TR>
  <TR>
    <TD align="center" valign="top" class="TDtitle">9</TD>
    <TD class="normaltextreg">Overall, the presentation of the article enhanced my ability to read
      and understand it.</TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="5" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="4" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="3" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="2" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="1" tabindex="9"></TD>
  </TR>
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><font color="##000000">Activity Evaluation</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD rowspan="2" class="TDtitle" align="center" valign="top">Q10</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>On the whole, how do you rate the value
      of this article?</STRONG></TD>
    </TR>
  <TR>
    <TD colspan="6" class="normaltextreg">
        Excellent <INPUT type="radio" name="Q10" value="Excellent" tabindex="2">
       Good <INPUT type="radio" name="Q10" value="Good" tabindex="2">
       Fair <INPUT type="radio" name="Q10" value="Fair" tabindex="2">
       Poor <INPUT type="radio" name="Q10" value="Poor" tabindex="2">
     
     </TD>
    </TR>
     
<TR>
    <TD align="center" valign="top" class="TDtitle">Q11</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Were any portions of this activity unsatisfactory or inappropriate?</STRONG><BR>
          Yes <INPUT type="radio" name="Q11" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q11" value="No" tabindex="5">
     <P>If &quot;Yes,&quot; explain?<BR>
            <TEXTAREA name="Q11C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>

<TR>
    <TD align="center" valign="top" class="TDtitle">Q12</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Was the information presented
        in this activity fair, objective, and balanced?</STRONG><BR>
          Yes <INPUT type="radio" name="Q12" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q12" value="No" tabindex="5">
     <P>If &quot;No,&quot; explain?<BR>
            <TEXTAREA name="Q12C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>

<TR>
    <TD height="149" align="center" valign="top" class="TDtitle">Q13</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Is there subject matter you would like addressed in the future?</STRONG><BR>
          Yes <INPUT type="radio" name="Q13" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q13" value="No" tabindex="5">
     <P>If &quot;Yes,&quot; explain?<BR>
            <TEXTAREA name="Q13C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>
     
     
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title">Part II<BR><font color="##000000">Commitment to Change</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q1</TD>
    <TD colspan="6" class="normaltextreg">How do you plan to change your practice
      as a result of this article?<EM> Explanation Required</EM>.</TD>
    </TR>
  <TR>
    <TD colspan="6"><TEXTAREA name="q1_text" cols="70" rows="3" class="formtextarea" tabindex="10"></TEXTAREA></TD>
    </TR>
<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q2</TD>
    <TD colspan="6" class="normaltextreg">Indicate why you agree or disagree
      with any of the conclusions in this article based on your practice experience?
      <EM>Explanation Required</EM>.</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q2_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q3</TD>
    <TD colspan="6" class="normaltextreg">What recommendations do you have which would improve the value of this activity to your practice?</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q3_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
  <TD colspan="7">&nbsp;</TD>
</TR>

  <TR>
    <TD colspan="7">
     <TABLE width="100%" border="0">

      <TR>
        <TD class="normaltextreg"><STRONG>CME CREDITS CLAIMED</STRONG> -
          This activity is eligible for a maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>
          credits. Each physician should claim only those hours
          of credit(s) that he/she actually spent on this educational activity.
          Please fill in only those hours of credit(s) spent on this educational
          activity (maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>). Hours spent should be entered in 15 minute
          increments (e.g., 1 hour 30 minutes equals 1.5):</TD>
        </TR>
      <TR>
        <TD class="TDdashed">&nbsp;&nbsp;Enter your hours:
          <INPUT name="credithours" type="text" class="forminput"></TD>
      </TR>
      <TR>
        <TD class="normaltextreg">&nbsp;</TD>
      </TR></table>
       </td></tr>



  <TR>
    <TD colspan="7" align="center"><INPUT name="submit" value="Submit Evaluation" type="submit"></TD>
    </TR>
</form>
</cfif>
</TABLE>
</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
</TABLE>

</CFOUTPUT>
0
 
jeffmaceAuthor Commented:
Still not getting it, please watch this movie i made and maybe this will clear up something or maybe I am not getting it.

Thank you for you continuing help.

http://www.jhasim.net/output/output.html

0
 
James RodgersWeb Applications DeveloperCommented:
i have added in the function call for all the radio arrays and it works fine on my system, what browseers are you testing with and what versions?


here's the code

<LINK href="includes/main2.css" rel="STYLESHEET" type="text/css">

<!--- If user is not logged in, force them to now --->  
<CFIF NOT IsDefined("SESSION.Auth.IsLoggedIn")>
  <!--- If the user is now submitting "Login" form, --->
  <!--- Include "Login Check" code to validate user --->
  <CFIF IsDefined("Form.UserLogin")>
    <CFINCLUDE TEMPLATE="LoginCheck.cfm">
  </CFIF>

  <CFINCLUDE TEMPLATE="login.cfm">
  <CFABORT>
</CFIF>

<cfquery name="getArticles" datasource="#DataTables#">
SELECT Articles.*, [Zone].ZoneName
FROM Articles INNER JOIN [Zone] ON Articles.ArticleZone = [Zone].ZoneID
WHERE ArticleID =#URL.ID#
</cfquery>

<CFIF IsDefined("SESSION.Auth.UserID") is TRUE>
<CFQUERY name="getCompletedEvals" datasource="#DataTables#">
SELECT Articles.*, ArticleEvaluations.*
FROM ArticleEvaluations INNER JOIN Articles ON ArticleEvaluations.ArticleID = Articles.ArticleID
WHERE ArticleEvaluations.ArticleReviewerID = #SESSION.Auth.UserID#
</CFQUERY>
</CFIF>


<cfset  myVariable = #getArticles.ArticleCMECredit#>
<CFOUTPUT>
<script type="text/javascript">
 formSubmit=1;
function chkCredits(formName){
     var maxCredits = #myVariable#;
     if (formName.credithours.value > maxCredits){
          throwError(formName.credithours,'That it is over the maximum allowed credits.')
          formSubmit=0;
     }
}

var formAlertMessage='There were Errors!';
function throwError (theField,theMessage) {
     formAlertMessage=formAlertMessage + "\n - " + theMessage;
     formSubmit=0;
     switchStyle(theField);
}

function switchStyle (theField) {
     theSwitch=new Function("this.style.backgroundColor='FFFFFF';this.style.color='000000';if(this.type=='text') this.select();")
     theField.style.backgroundColor='FF0000';
     theField.style.color='White';
     theField.onfocus=theSwitch;
}
function formAlert() {
     alert(formAlertMessage);
     formAlertMessage='There were Errors!';
     formSubmit=1;
}

function checkForm(formName) {
     if (formName.Q11[0].checked) {
          if  (formName.Q11C.value=="")
               {
                                 throwError(formName.Q11C,"Please explain why you said yes for question 11!");
                                         formSubmit=0;
               }
     }

     if (formName.Q12[1].checked) {
          if  (formName.Q12C.value=="")
               {
                                 throwError(formName.Q12C,"Please explain your answer for question 12!");
                                         formSubmit=0;

               }
     }
     
     if (formName.Q13[0].checked) {
          if  (formName.Q13C.value=="")
               {
                                 throwError(formName.Q13C,"What are your comments for question 13!");
                                         formSubmit=0;

               }
     }
      if  (formName.q1_text.value=="")
               {
                                 throwError(formName.q1_text,"What are your comments for Part II Question 1!");
                                         formSubmit=0;

               }
     if  (formName.q2_text.value=="")
               {
                                 throwError(formName.q2_text,"What are your comments for Part II Question 2!");
                                         formSubmit=0;

               }
      if  (formName.q3_text.value=="")
               {
                                 throwError(formName.q3_text,"What are your recommendations for Part II Question 3!");
                                         formSubmit=0;

               }
     if  (formName.credithours.value=="")
               {
                                 throwError(formName.credithours,"Please enter your credit hours!");
                                         formSubmit=0;

               }  
}

       function submitForm(theForm) {
           chkCredits(theForm);
        checkForm(theForm);
          if(!theForm.Q1[0].checked && !theForm.Q1[1].checked && !theForm.Q1[2].checked && !theForm.Q1[3].checked){
               throwError(theForm.Q1[0],'Question one is required.')
          }
          if(!theForm.Q2[0].checked && !theForm.Q2[1].checked && !theForm.Q2[2].checked && !theForm.Q2[3].checked){
               throwError(theForm.Q2[0],'Question two is required.')
          }
          if(!theForm.Q3[0].checked && !theForm.Q3[1].checked && !theForm.Q3[2].checked && !theForm.Q3[3].checked){
               throwError(theForm.Q3[0],'Question three is required.')
          }
          if(!theForm.Q4[0].checked && !theForm.Q4[1].checked && !theForm.Q4[2].checked && !theForm.Q4[3].checked){
               throwError(theForm.Q4[0],'Question four is required.')
          }
          if(!theForm.Q5[0].checked && !theForm.Q5[1].checked && !theForm.Q5[2].checked && !theForm.Q5[3].checked){
               throwError(theForm.Q5[0],'Question five is required.')
          }
          if(!theForm.Q6[0].checked && !theForm.Q6[1].checked && !theForm.Q6[2].checked && !theForm.Q6[3].checked){
               throwError(theForm.Q6[0],'Question six is required.')
          }
          if(!theForm.Q7[0].checked && !theForm.Q7[1].checked && !theForm.Q7[2].checked && !theForm.Q7[3].checked){
               throwError(theForm.Q7[0],'Question seven is required.')
          }
          if(!theForm.Q8[0].checked && !theForm.Q8[1].checked && !theForm.Q8[2].checked && !theForm.Q8[3].checked){
               throwError(theForm.Q8[0],'Question eight is required.')
          }
            if(!theForm.Q9[0].checked && !theForm.Q9[1].checked && !theForm.Q9[2].checked && !theForm.Q9[3].checked){
               throwError(theForm.Q9[0],'Question nine is required.')
          }
            if(!theForm.Q10[0].checked && !theForm.Q10[1].checked && !theForm.Q10[2].checked && !theForm.Q10[3].checked){
               throwError(theForm.Q10[0],'Question ten is required.')
          }
            if(!theForm.Q11[0].checked && !theForm.Q11[1].checked){
               throwError(theForm.Q11[0],'Question eleven is required.')
          }
            if(!theForm.Q12[0].checked && !theForm.Q12[1].checked){
               throwError(theForm.Q12[0],'Question twelve is required.')
          }
            if(!theForm.Q13[0].checked && !theForm.Q13[1].checked){
               throwError(theForm.Q13[0],'Question thirteen is required.')
          }
         
   

                   
          if(formSubmit) {
               return true;
          } else {
               formAlert()
               formSubmit=1;
               return false;
          }
     }

function resetColour(obj){
           document.forms[0].elements[obj][0].style.backgroundColor='white';
 }    
</script>

</CFOUTPUT>

<TABLE width="100%" border="0">
      <TR>
        <TD class="TDtitle">CME CLINICAL EVALUATION</TD>
      </TR>
      <TR>
        <TD>
<CFOUTPUT query="getArticles">
<TABLE width="100%" border="0">
 <TR valign="top">
    <td colspan="2"><SPAN class="issueCategoryText">#ZoneName# - (#decimalFormat(ArticleCMECredit)# Credit Hours Maximum)</SPAN><br><SPAN class="issueHeaderText">#ArticleName#</SPAN><br><SPAN class="secondary"><STRONG>#ArticleAuthor#</STRONG> (#ArticleAuthorInfo#)</SPAN></TD>
  </TR>

  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <CFIF IsDefined("SESSION.Auth.UserID") AND LISTFIND(valuelist(getCompletedEvals.ArticleID),getArticles.ArticleID)>
  <TR>
    <TD class="TDdashed" align="center"><br>&nbsp;&nbsp;&nbsp;You have already completed this article evaluation, please <a href="javascript:history.go(-1)">GO BACK</a> and complete the remaining evaluations or view one of our other issues to review other articles.&nbsp;&nbsp;&nbsp;<br><br></TD>
  </TR>
  <cfelse>
 
  <TR>
    <TD class="issueHeaderText">To earn credit, please respond to each statement by checking the appropriate box and by filling out a detailed response to the appropriate questions.</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD>

<TABLE width="100%" border="0">
<form name="form1" action="include_clinicaleval_insert.cfm" onSubmit="return submitForm(this);" method="post">
<INPUT type="hidden" name="ID" value="#URL.ID#">
<INPUT type="hidden" name="IssueID" value="#IssueID#">
  <TR>
    <TD colspan="7"><TABLE width="100%" border="0">
      <TR>
        <TD width="351">&nbsp;</TD>
        <TD width="59" align="center" class="title"><b><FONT color="##000000">Strongly Agree</FONT></b></TD>
        <TD width="54" align="center" class="title"><b><FONT color="##000000">Strongly Disagree</FONT></b></TD>
      </TR>
    </TABLE></TD>
    </TR>
  <TR>
    <TD colspan="2">&nbsp;</TD>
    <TD width="28" align="center" class="title">5</TD>
    <TD width="28" align="center" class="title">4</TD>
    <TD width="28" align="center" class="title">3</TD>
    <TD width="28" align="center" class="title">2</TD>
    <TD width="32" align="center" class="title">1</TD>
  </TR>
  <TR>
    <TD colspan="7" align="left" class="title">PART I<BR><font color="##000000">Educational value</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR onclick="resetColour('Q1')">
    <TD width="34" align="center" valign="top" class="TDtitle">1</TD>
    <TD width="683" align="left" class="normaltextreg">I learned something new that was important.</TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="5" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="4" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="3" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="2" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="1" tabindex="1"></TD>
  </TR>
  <TR onclick="resetColour('Q2')">
    <TD width="34" align="center" valign="top" class="TDtitle">2</TD>
    <TD class="normaltextreg">I verified some important information.</TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="5" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="4" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="3" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="2" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="1" tabindex="2"></TD>
  </TR>
  <TR onclick="resetColour('Q3')">
    <TD width="34" align="center" valign="top" class="TDtitle">3</TD>
    <TD class="normaltextreg">I plan to discuss this information with colleagues.</TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="5" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="4" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="3" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="2" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="1" tabindex="3"></TD>
  </TR>
  <TR onclick="resetColour('Q4')">
    <TD width="34" align="center" valign="top" class="TDtitle">4</TD>
    <TD class="normaltextreg">I plan to seek more information on this topic.</TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="5" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="4" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="3" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="2" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="1" tabindex="4"></TD>
  </TR>
    <TR onclick="resetColour('Q5')">
    <TD width="34" align="center" valign="top" class="TDtitle">5</TD>
    <TD class="normaltextreg">My attitude about this topic changed in some way.</TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="5" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="4" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="3" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="2" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="1" tabindex="5"></TD>
  </TR>
    <TR onclick="resetColour('Q6')">
    <TD width="34" align="center" valign="top" class="TDtitle">6</TD>
    <TD class="normaltextreg">This information is likely to have an impact on my practice.</TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="5" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="4" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="3" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="2" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="1" tabindex="6"></TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><BR><font color="##000000">Readability feedback</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
    <TR onclick="resetColour('Q7')">
    <TD align="center" valign="top" class="TDtitle">7</TD>
    <TD class="normaltextreg">I understood what the authors were trying to say.</TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="5" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="4" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="3" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="2" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="1"></TD>
  </TR>
  <TR onclick="resetColour('Q8')">
    <TD align="center" valign="top" class="TDtitle">8</TD>
    <TD class="normaltextreg">I was able to interpret the tables and figures (if there were no tables
      or figures, leave blank).</TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="5" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="4" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="3" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="2" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="1" tabindex="8"></TD>
  </TR>
    <TR onclick="resetColour('Q9')">
    <TD align="center" valign="top" class="TDtitle">9</TD>
    <TD class="normaltextreg">Overall, the presentation of the article enhanced my ability to read
      and understand it.</TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="5" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="4" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="3" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="2" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="1" tabindex="9"></TD>
  </TR>
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><font color="##000000">Activity Evaluation</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD rowspan="2" class="TDtitle" align="center" valign="top">Q10</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>On the whole, how do you rate the value
      of this article?</STRONG></TD>
    </TR>
    <TR onclick="resetColour('Q10')">
    <TD colspan="6" class="normaltextreg">
        Excellent <INPUT type="radio" name="Q10" value="Excellent" tabindex="2">
       Good <INPUT type="radio" name="Q10" value="Good" tabindex="2">
       Fair <INPUT type="radio" name="Q10" value="Fair" tabindex="2">
       Poor <INPUT type="radio" name="Q10" value="Poor" tabindex="2">
     
     </TD>
    </TR>
     
  <TR onclick="resetColour('Q11')">
    <TD align="center" valign="top" class="TDtitle">Q11</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Were any portions of this activity unsatisfactory or inappropriate?</STRONG><BR>
          Yes <INPUT type="radio" name="Q11" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q11" value="No" tabindex="5">
     <P>If &quot;Yes,&quot; explain?<BR>
            <TEXTAREA name="Q11C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>

  <TR onclick="resetColour('Q12')">
    <TD align="center" valign="top" class="TDtitle">Q12</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Was the information presented
        in this activity fair, objective, and balanced?</STRONG><BR>
          Yes <INPUT type="radio" name="Q12" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q12" value="No" tabindex="5">
     <P>If &quot;No,&quot; explain?<BR>
            <TEXTAREA name="Q12C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>

  <TR onclick="resetColour('Q13')">
    <TD height="149" align="center" valign="top" class="TDtitle">Q13</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Is there subject matter you would like addressed in the future?</STRONG><BR>
          Yes <INPUT type="radio" name="Q13" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q13" value="No" tabindex="5">
     <P>If &quot;Yes,&quot; explain?<BR>
            <TEXTAREA name="Q13C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>
     
     
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title">Part II<BR><font color="##000000">Commitment to Change</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q1</TD>
    <TD colspan="6" class="normaltextreg">How do you plan to change your practice
      as a result of this article?<EM> Explanation Required</EM>.</TD>
    </TR>
  <TR>
    <TD colspan="6"><TEXTAREA name="q1_text" cols="70" rows="3" class="formtextarea" tabindex="10"></TEXTAREA></TD>
    </TR>
<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q2</TD>
    <TD colspan="6" class="normaltextreg">Indicate why you agree or disagree
      with any of the conclusions in this article based on your practice experience?
      <EM>Explanation Required</EM>.</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q2_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q3</TD>
    <TD colspan="6" class="normaltextreg">What recommendations do you have which would improve the value of this activity to your practice?</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q3_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
  <TD colspan="7">&nbsp;</TD>
</TR>

  <TR>
    <TD colspan="7">
     <TABLE width="100%" border="0">

      <TR>
        <TD class="normaltextreg"><STRONG>CME CREDITS CLAIMED</STRONG> -
          This activity is eligible for a maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>
          credits. Each physician should claim only those hours
          of credit(s) that he/she actually spent on this educational activity.
          Please fill in only those hours of credit(s) spent on this educational
          activity (maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>). Hours spent should be entered in 15 minute
          increments (e.g., 1 hour 30 minutes equals 1.5):</TD>
        </TR>
      <TR>
        <TD class="TDdashed">&nbsp;&nbsp;Enter your hours:
          <INPUT name="credithours" type="text" class="forminput"></TD>
      </TR>
      <TR>
        <TD class="normaltextreg">&nbsp;</TD>
      </TR></table>
       </td></tr>



  <TR>
    <TD colspan="7" align="center"><INPUT name="submit" value="Submit Evaluation" type="submit"></TD>
    </TR>
</form>
</cfif>
</TABLE>
</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
</TABLE>

</CFOUTPUT>
0
 
jeffmaceAuthor Commented:
Still doesn't do anything unless i actually click on the first radio button and it turns that back to a white background.


I am using a PC with IE 6.02

Do you know if there might be a way to highlight the whole row or swap the blue question number cell to red instead of highlighting the radio button.  Or possilby add the text 'required' somewhere to show that question as to needing assistance.

Thanks a million times over
0
 
James RodgersWeb Applications DeveloperCommented:
i am on win2k with 6.0 and it works fine, do you have problems with other javascripts?
0
 
James RodgersWeb Applications DeveloperCommented:
try this...


<LINK href="includes/main2.css" rel="STYLESHEET" type="text/css">

<!--- If user is not logged in, force them to now --->  
<CFIF NOT IsDefined("SESSION.Auth.IsLoggedIn")>
  <!--- If the user is now submitting "Login" form, --->
  <!--- Include "Login Check" code to validate user --->
  <CFIF IsDefined("Form.UserLogin")>
    <CFINCLUDE TEMPLATE="LoginCheck.cfm">
  </CFIF>

  <CFINCLUDE TEMPLATE="login.cfm">
  <CFABORT>
</CFIF>

<cfquery name="getArticles" datasource="#DataTables#">
SELECT Articles.*, [Zone].ZoneName
FROM Articles INNER JOIN [Zone] ON Articles.ArticleZone = [Zone].ZoneID
WHERE ArticleID =#URL.ID#
</cfquery>

<CFIF IsDefined("SESSION.Auth.UserID") is TRUE>
<CFQUERY name="getCompletedEvals" datasource="#DataTables#">
SELECT Articles.*, ArticleEvaluations.*
FROM ArticleEvaluations INNER JOIN Articles ON ArticleEvaluations.ArticleID = Articles.ArticleID
WHERE ArticleEvaluations.ArticleReviewerID = #SESSION.Auth.UserID#
</CFQUERY>
</CFIF>


<cfset  myVariable = #getArticles.ArticleCMECredit#>
<CFOUTPUT>
<script type="text/javascript">
 formSubmit=1;
function chkCredits(formName){
     var maxCredits = #myVariable#;
     if (formName.credithours.value > maxCredits){
          throwError(formName.credithours,'That it is over the maximum allowed credits.')
          formSubmit=0;
     }
}

var formAlertMessage='There were Errors!';
function throwError (theField,theMessage) {
     formAlertMessage=formAlertMessage + "\n - " + theMessage;
     formSubmit=0;
     switchStyle(theField);
}

function switchStyle (theField) {
      if(theField.type=='radio'){
       strRow="TR" + theField.name;
       document.getElementById(strRow).style.backgroundColor='D8DFF3';
      }
     //theSwitch=new Function("this.style.backgroundColor='FFFFFF';this.style.color='000000';if(this.type=='text') this.select();")
     //theField.style.backgroundColor='FF0000';
     //theField.style.color='White';
     //theField.onfocus=theSwitch;
}
function formAlert() {
     alert(formAlertMessage);
     formAlertMessage='There were Errors!';
     formSubmit=1;
}

function checkForm(formName) {
     if (formName.Q11[0].checked) {
          if  (formName.Q11C.value=="")
               {
                                 throwError(formName.Q11C,"Please explain why you said yes for question 11!");
                                         formSubmit=0;
               }
     }

     if (formName.Q12[1].checked) {
          if  (formName.Q12C.value=="")
               {
                                 throwError(formName.Q12C,"Please explain your answer for question 12!");
                                         formSubmit=0;

               }
     }
     
     if (formName.Q13[0].checked) {
          if  (formName.Q13C.value=="")
               {
                                 throwError(formName.Q13C,"What are your comments for question 13!");
                                         formSubmit=0;

               }
     }
      if  (formName.q1_text.value=="")
               {
                                 throwError(formName.q1_text,"What are your comments for Part II Question 1!");
                                         formSubmit=0;

               }
     if  (formName.q2_text.value=="")
               {
                                 throwError(formName.q2_text,"What are your comments for Part II Question 2!");
                                         formSubmit=0;

               }
      if  (formName.q3_text.value=="")
               {
                                 throwError(formName.q3_text,"What are your recommendations for Part II Question 3!");
                                         formSubmit=0;

               }
     if  (formName.credithours.value=="")
               {
                                 throwError(formName.credithours,"Please enter your credit hours!");
                                         formSubmit=0;

               }  
}

       function submitForm(theForm) {
           chkCredits(theForm);
        checkForm(theForm);
          if(!theForm.Q1[0].checked && !theForm.Q1[1].checked && !theForm.Q1[2].checked && !theForm.Q1[3].checked){
               throwError(theForm.Q1[0],'Question one is required.')
          }
          if(!theForm.Q2[0].checked && !theForm.Q2[1].checked && !theForm.Q2[2].checked && !theForm.Q2[3].checked){
               throwError(theForm.Q2[0],'Question two is required.')
          }
          if(!theForm.Q3[0].checked && !theForm.Q3[1].checked && !theForm.Q3[2].checked && !theForm.Q3[3].checked){
               throwError(theForm.Q3[0],'Question three is required.')
          }
          if(!theForm.Q4[0].checked && !theForm.Q4[1].checked && !theForm.Q4[2].checked && !theForm.Q4[3].checked){
               throwError(theForm.Q4[0],'Question four is required.')
          }
          if(!theForm.Q5[0].checked && !theForm.Q5[1].checked && !theForm.Q5[2].checked && !theForm.Q5[3].checked){
               throwError(theForm.Q5[0],'Question five is required.')
          }
          if(!theForm.Q6[0].checked && !theForm.Q6[1].checked && !theForm.Q6[2].checked && !theForm.Q6[3].checked){
               throwError(theForm.Q6[0],'Question six is required.')
          }
          if(!theForm.Q7[0].checked && !theForm.Q7[1].checked && !theForm.Q7[2].checked && !theForm.Q7[3].checked){
               throwError(theForm.Q7[0],'Question seven is required.')
          }
          if(!theForm.Q8[0].checked && !theForm.Q8[1].checked && !theForm.Q8[2].checked && !theForm.Q8[3].checked){
               throwError(theForm.Q8[0],'Question eight is required.')
          }
            if(!theForm.Q9[0].checked && !theForm.Q9[1].checked && !theForm.Q9[2].checked && !theForm.Q9[3].checked){
               throwError(theForm.Q9[0],'Question nine is required.')
          }
            if(!theForm.Q10[0].checked && !theForm.Q10[1].checked && !theForm.Q10[2].checked && !theForm.Q10[3].checked){
               throwError(theForm.Q10[0],'Question ten is required.')
          }
            if(!theForm.Q11[0].checked && !theForm.Q11[1].checked){
               throwError(theForm.Q11[0],'Question eleven is required.')
          }
            if(!theForm.Q12[0].checked && !theForm.Q12[1].checked){
               throwError(theForm.Q12[0],'Question twelve is required.')
          }
            if(!theForm.Q13[0].checked && !theForm.Q13[1].checked){
               throwError(theForm.Q13[0],'Question thirteen is required.')
          }
         
   

                   
          if(formSubmit) {
               return true;
          } else {
               formAlert()
               formSubmit=1;
               return false;
          }
     }

function resetColour(obj){
     strRow="TR" + obj;
       document.getElementById(strRow).style.backgroundColor='ffffff';
 }    
</script>

</CFOUTPUT>

<TABLE width="100%" border="0">
      <TR>
        <TD class="TDtitle">CME CLINICAL EVALUATION</TD>
      </TR>
      <TR>
        <TD>
<CFOUTPUT query="getArticles">
<TABLE width="100%" border="0">
 <TR valign="top">
    <td colspan="2"><SPAN class="issueCategoryText">#ZoneName# - (#decimalFormat(ArticleCMECredit)# Credit Hours Maximum)</SPAN><br><SPAN class="issueHeaderText">#ArticleName#</SPAN><br><SPAN class="secondary"><STRONG>#ArticleAuthor#</STRONG> (#ArticleAuthorInfo#)</SPAN></TD>
  </TR>

  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <CFIF IsDefined("SESSION.Auth.UserID") AND LISTFIND(valuelist(getCompletedEvals.ArticleID),getArticles.ArticleID)>
  <TR>
    <TD class="TDdashed" align="center"><br>&nbsp;&nbsp;&nbsp;You have already completed this article evaluation, please <a href="javascript:history.go(-1)">GO BACK</a> and complete the remaining evaluations or view one of our other issues to review other articles.&nbsp;&nbsp;&nbsp;<br><br></TD>
  </TR>
  <cfelse>
 
  <TR>
    <TD class="issueHeaderText">To earn credit, please respond to each statement by checking the appropriate box and by filling out a detailed response to the appropriate questions.</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD>

<TABLE width="100%" border="0">
<form name="form1" action="include_clinicaleval_insert.cfm" onSubmit="return submitForm(this);" method="post">
<INPUT type="hidden" name="ID" value="#URL.ID#">
<INPUT type="hidden" name="IssueID" value="#IssueID#">
  <TR>
    <TD colspan="7"><TABLE width="100%" border="0">
      <TR>
        <TD width="351">&nbsp;</TD>
        <TD width="59" align="center" class="title"><b><FONT color="##000000">Strongly Agree</FONT></b></TD>
        <TD width="54" align="center" class="title"><b><FONT color="##000000">Strongly Disagree</FONT></b></TD>
      </TR>
    </TABLE></TD>
    </TR>
  <TR>
    <TD colspan="2">&nbsp;</TD>
    <TD width="28" align="center" class="title">5</TD>
    <TD width="28" align="center" class="title">4</TD>
    <TD width="28" align="center" class="title">3</TD>
    <TD width="28" align="center" class="title">2</TD>
    <TD width="32" align="center" class="title">1</TD>
  </TR>
  <TR>
    <TD colspan="7" align="left" class="title">PART I<BR><font color="##000000">Educational value</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR onclick="resetColour('Q1')" id="TRQ1">
    <TD width="34" align="center" valign="top" class="TDtitle">1</TD>
    <TD width="683" align="left" class="normaltextreg">I learned something new that was important.</TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="5" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="4" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="3" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="2" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="1" tabindex="1"></TD>
  </TR>
  <TR onclick="resetColour('Q2')"  id="TRQ2">
    <TD width="34" align="center" valign="top" class="TDtitle">2</TD>
    <TD class="normaltextreg">I verified some important information.</TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="5" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="4" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="3" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="2" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="1" tabindex="2"></TD>
  </TR>
  <TR onclick="resetColour('Q3')"  id="TRQ3">
    <TD width="34" align="center" valign="top" class="TDtitle">3</TD>
    <TD class="normaltextreg">I plan to discuss this information with colleagues.</TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="5" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="4" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="3" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="2" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="1" tabindex="3"></TD>
  </TR>
  <TR onclick="resetColour('Q4')"  id="TRQ4">
    <TD width="34" align="center" valign="top" class="TDtitle">4</TD>
    <TD class="normaltextreg">I plan to seek more information on this topic.</TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="5" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="4" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="3" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="2" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="1" tabindex="4"></TD>
  </TR>
    <TR onclick="resetColour('Q5')"  id="TRQ5">
    <TD width="34" align="center" valign="top" class="TDtitle">5</TD>
    <TD class="normaltextreg">My attitude about this topic changed in some way.</TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="5" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="4" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="3" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="2" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="1" tabindex="5"></TD>
  </TR>
    <TR onclick="resetColour('Q6')"  id="TRQ6">
    <TD width="34" align="center" valign="top" class="TDtitle">6</TD>
    <TD class="normaltextreg">This information is likely to have an impact on my practice.</TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="5" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="4" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="3" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="2" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="1" tabindex="6"></TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><BR><font color="##000000">Readability feedback</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
    <TR onclick="resetColour('Q7')"  id="TRQ7">
    <TD align="center" valign="top" class="TDtitle">7</TD>
    <TD class="normaltextreg">I understood what the authors were trying to say.</TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="5" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="4" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="3" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="2" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="1"></TD>
  </TR>
  <TR onclick="resetColour('Q8')"  id="TRQ8">
    <TD align="center" valign="top" class="TDtitle">8</TD>
    <TD class="normaltextreg">I was able to interpret the tables and figures (if there were no tables
      or figures, leave blank).</TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="5" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="4" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="3" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="2" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="1" tabindex="8"></TD>
  </TR>
    <TR onclick="resetColour('Q9')"  id="TRQ9">
    <TD align="center" valign="top" class="TDtitle">9</TD>
    <TD class="normaltextreg">Overall, the presentation of the article enhanced my ability to read
      and understand it.</TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="5" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="4" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="3" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="2" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="1" tabindex="9"></TD>
  </TR>
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><font color="##000000">Activity Evaluation</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD rowspan="2" class="TDtitle" align="center" valign="top">Q10</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>On the whole, how do you rate the value
      of this article?</STRONG></TD>
    </TR>
    <TR onclick="resetColour('Q10')"  id="TRQ10">
    <TD colspan="6" class="normaltextreg">
        Excellent <INPUT type="radio" name="Q10" value="Excellent" tabindex="2">
       Good <INPUT type="radio" name="Q10" value="Good" tabindex="2">
       Fair <INPUT type="radio" name="Q10" value="Fair" tabindex="2">
       Poor <INPUT type="radio" name="Q10" value="Poor" tabindex="2">
     
     </TD>
    </TR>
     
  <TR onclick="resetColour('Q11')"  id="TRQ11">
    <TD align="center" valign="top" class="TDtitle">Q11</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Were any portions of this activity unsatisfactory or inappropriate?</STRONG><BR>
          Yes <INPUT type="radio" name="Q11" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q11" value="No" tabindex="5">
     <P>If &quot;Yes,&quot; explain?<BR>
            <TEXTAREA name="Q11C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>

  <TR onclick="resetColour('Q12')"  id="TRQ12">
    <TD align="center" valign="top" class="TDtitle">Q12</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Was the information presented
        in this activity fair, objective, and balanced?</STRONG><BR>
          Yes <INPUT type="radio" name="Q12" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q12" value="No" tabindex="5">
     <P>If &quot;No,&quot; explain?<BR>
            <TEXTAREA name="Q12C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>

  <TR onclick="resetColour('Q13')"  id="TRQ13">
    <TD height="149" align="center" valign="top" class="TDtitle">Q13</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Is there subject matter you would like addressed in the future?</STRONG><BR>
          Yes <INPUT type="radio" name="Q13" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q13" value="No" tabindex="5">
     <P>If &quot;Yes,&quot; explain?<BR>
            <TEXTAREA name="Q13C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>
     
     
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title">Part II<BR><font color="##000000">Commitment to Change</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q1</TD>
    <TD colspan="6" class="normaltextreg">How do you plan to change your practice
      as a result of this article?<EM> Explanation Required</EM>.</TD>
    </TR>
  <TR>
    <TD colspan="6"><TEXTAREA name="q1_text" cols="70" rows="3" class="formtextarea" tabindex="10"></TEXTAREA></TD>
    </TR>
<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q2</TD>
    <TD colspan="6" class="normaltextreg">Indicate why you agree or disagree
      with any of the conclusions in this article based on your practice experience?
      <EM>Explanation Required</EM>.</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q2_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q3</TD>
    <TD colspan="6" class="normaltextreg">What recommendations do you have which would improve the value of this activity to your practice?</TD>
    </TR>
<TR>
    <TD colspan="6"><TEXTAREA name="q3_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
  <TD colspan="7">&nbsp;</TD>
</TR>

  <TR>
    <TD colspan="7">
     <TABLE width="100%" border="0">

      <TR>
        <TD class="normaltextreg"><STRONG>CME CREDITS CLAIMED</STRONG> -
          This activity is eligible for a maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>
          credits. Each physician should claim only those hours
          of credit(s) that he/she actually spent on this educational activity.
          Please fill in only those hours of credit(s) spent on this educational
          activity (maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>). Hours spent should be entered in 15 minute
          increments (e.g., 1 hour 30 minutes equals 1.5):</TD>
        </TR>
      <TR>
        <TD class="TDdashed">&nbsp;&nbsp;Enter your hours:
          <INPUT name="credithours" type="text" class="forminput"></TD>
      </TR>
      <TR>
        <TD class="normaltextreg">&nbsp;</TD>
      </TR></table>
       </td></tr>



  <TR>
    <TD colspan="7" align="center"><INPUT name="submit" value="Submit Evaluation" type="submit"></TD>
    </TR>
</form>
</cfif>
</TABLE>
</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
</TABLE>

</CFOUTPUT>
0
 
jeffmaceAuthor Commented:
YES! YES! YES!   That worked great.   Very nice job.   I have no idea why the other wasn't working for me.  I am on WinXP Pro and it just wouldn't work.  

Thank you so much for your time and patience.

Jeff
0
 
jeffmaceAuthor Commented:
One last question though.   I see towards the bottom that the textarea and textbox can't highlight, do you have any ideas on how to make them highlight??
0
 
James RodgersWeb Applications DeveloperCommented:
i was at lunch but here goes..



<LINK href="includes/main2.css" rel="STYLESHEET" type="text/css">

<!--- If user is not logged in, force them to now --->  
<CFIF NOT IsDefined("SESSION.Auth.IsLoggedIn")>
  <!--- If the user is now submitting "Login" form, --->
  <!--- Include "Login Check" code to validate user --->
  <CFIF IsDefined("Form.UserLogin")>
    <CFINCLUDE TEMPLATE="LoginCheck.cfm">
  </CFIF>

  <CFINCLUDE TEMPLATE="login.cfm">
  <CFABORT>
</CFIF>

<cfquery name="getArticles" datasource="#DataTables#">
SELECT Articles.*, [Zone].ZoneName
FROM Articles INNER JOIN [Zone] ON Articles.ArticleZone = [Zone].ZoneID
WHERE ArticleID =#URL.ID#
</cfquery>

<CFIF IsDefined("SESSION.Auth.UserID") is TRUE>
<CFQUERY name="getCompletedEvals" datasource="#DataTables#">
SELECT Articles.*, ArticleEvaluations.*
FROM ArticleEvaluations INNER JOIN Articles ON ArticleEvaluations.ArticleID = Articles.ArticleID
WHERE ArticleEvaluations.ArticleReviewerID = #SESSION.Auth.UserID#
</CFQUERY>
</CFIF>


<cfset  myVariable = #getArticles.ArticleCMECredit#>
<CFOUTPUT>
<script type="text/javascript">
 formSubmit=1;
function chkCredits(formName){
     var maxCredits = #myVariable#;
     if (formName.credithours.value > maxCredits){
          throwError(formName.credithours,'That it is over the maximum allowed credits.')
          formSubmit=0;
     }
}

var formAlertMessage='There were Errors!';
function throwError (theField,theMessage) {
     formAlertMessage=formAlertMessage + "\n - " + theMessage;
     formSubmit=0;
     switchStyle(theField);
}

function switchStyle (theField) {
       strRow="TR" + theField.name;
       document.getElementById(strRow).style.backgroundColor='D8DFF3';
      
     //theSwitch=new Function("this.style.backgroundColor='FFFFFF';this.style.color='000000';if(this.type=='text') this.select();")
     
     //theField.onfocus=theSwitch;
}
function formAlert() {
     alert(formAlertMessage);
     formAlertMessage='There were Errors!';
     formSubmit=1;
}

function checkForm(formName) {
     if (formName.Q11[0].checked) {
          if  (formName.Q11C.value=="")
               {
                                 throwError(formName.Q11C,"Please explain why you said yes for question 11!");
                                         formSubmit=0;
               }
     }

     if (formName.Q12[1].checked) {
          if  (formName.Q12C.value=="")
               {
                                 throwError(formName.Q12C,"Please explain your answer for question 12!");
                                         formSubmit=0;

               }
     }
     
     if (formName.Q13[0].checked) {
          if  (formName.Q13C.value=="")
               {
                                 throwError(formName.Q13C,"What are your comments for question 13!");
                                         formSubmit=0;

               }
     }
      if  (formName.q1_text.value=="")
               {
                                 throwError(formName.q1_text,"What are your comments for Part II Question 1!");
                                         formSubmit=0;

               }
     if  (formName.q2_text.value=="")
               {
                                 throwError(formName.q2_text,"What are your comments for Part II Question 2!");
                                         formSubmit=0;

               }
      if  (formName.q3_text.value=="")
               {
                                 throwError(formName.q3_text,"What are your recommendations for Part II Question 3!");
                                         formSubmit=0;

               }
     if  (formName.credithours.value=="")
               {
                                 throwError(formName.credithours,"Please enter your credit hours!");
                                         formSubmit=0;

               }  
}

       function submitForm(theForm) {
           chkCredits(theForm);
        checkForm(theForm);
          if(!theForm.Q1[0].checked && !theForm.Q1[1].checked && !theForm.Q1[2].checked && !theForm.Q1[3].checked){
               throwError(theForm.Q1[0],'Question one is required.')
          }
          if(!theForm.Q2[0].checked && !theForm.Q2[1].checked && !theForm.Q2[2].checked && !theForm.Q2[3].checked){
               throwError(theForm.Q2[0],'Question two is required.')
          }
          if(!theForm.Q3[0].checked && !theForm.Q3[1].checked && !theForm.Q3[2].checked && !theForm.Q3[3].checked){
               throwError(theForm.Q3[0],'Question three is required.')
          }
          if(!theForm.Q4[0].checked && !theForm.Q4[1].checked && !theForm.Q4[2].checked && !theForm.Q4[3].checked){
               throwError(theForm.Q4[0],'Question four is required.')
          }
          if(!theForm.Q5[0].checked && !theForm.Q5[1].checked && !theForm.Q5[2].checked && !theForm.Q5[3].checked){
               throwError(theForm.Q5[0],'Question five is required.')
          }
          if(!theForm.Q6[0].checked && !theForm.Q6[1].checked && !theForm.Q6[2].checked && !theForm.Q6[3].checked){
               throwError(theForm.Q6[0],'Question six is required.')
          }
          if(!theForm.Q7[0].checked && !theForm.Q7[1].checked && !theForm.Q7[2].checked && !theForm.Q7[3].checked){
               throwError(theForm.Q7[0],'Question seven is required.')
          }
          if(!theForm.Q8[0].checked && !theForm.Q8[1].checked && !theForm.Q8[2].checked && !theForm.Q8[3].checked){
               throwError(theForm.Q8[0],'Question eight is required.')
          }
            if(!theForm.Q9[0].checked && !theForm.Q9[1].checked && !theForm.Q9[2].checked && !theForm.Q9[3].checked){
               throwError(theForm.Q9[0],'Question nine is required.')
          }
            if(!theForm.Q10[0].checked && !theForm.Q10[1].checked && !theForm.Q10[2].checked && !theForm.Q10[3].checked){
               throwError(theForm.Q10[0],'Question ten is required.')
          }
            if(!theForm.Q11[0].checked && !theForm.Q11[1].checked){
               throwError(theForm.Q11[0],'Question eleven is required.')
          }
            if(!theForm.Q12[0].checked && !theForm.Q12[1].checked){
               throwError(theForm.Q12[0],'Question twelve is required.')
          }
            if(!theForm.Q13[0].checked && !theForm.Q13[1].checked){
               throwError(theForm.Q13[0],'Question thirteen is required.')
          }
         
   

                   
          if(formSubmit) {
               return true;
          } else {
               formAlert()
               formSubmit=1;
               return false;
          }
     }

function resetColour(obj){
     strRow="TR" + obj;
       document.getElementById(strRow).style.backgroundColor='ffffff';
 }    
</script>

</CFOUTPUT>

<TABLE width="100%" border="0">
      <TR>
        <TD class="TDtitle">CME CLINICAL EVALUATION</TD>
      </TR>
      <TR>
        <TD>
<CFOUTPUT query="getArticles">
<TABLE width="100%" border="0">
 <TR valign="top">
    <td colspan="2"><SPAN class="issueCategoryText">#ZoneName# - (#decimalFormat(ArticleCMECredit)# Credit Hours Maximum)</SPAN><br><SPAN class="issueHeaderText">#ArticleName#</SPAN><br><SPAN class="secondary"><STRONG>#ArticleAuthor#</STRONG> (#ArticleAuthorInfo#)</SPAN></TD>
  </TR>

  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <CFIF IsDefined("SESSION.Auth.UserID") AND LISTFIND(valuelist(getCompletedEvals.ArticleID),getArticles.ArticleID)>
  <TR>
    <TD class="TDdashed" align="center"><br>&nbsp;&nbsp;&nbsp;You have already completed this article evaluation, please <a href="javascript:history.go(-1)">GO BACK</a> and complete the remaining evaluations or view one of our other issues to review other articles.&nbsp;&nbsp;&nbsp;<br><br></TD>
  </TR>
  <cfelse>
 
  <TR>
    <TD class="issueHeaderText">To earn credit, please respond to each statement by checking the appropriate box and by filling out a detailed response to the appropriate questions.</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD>

<TABLE width="100%" border="0">
<form name="form1" action="include_clinicaleval_insert.cfm" onSubmit="return submitForm(this);" method="post">
<INPUT type="hidden" name="ID" value="#URL.ID#">
<INPUT type="hidden" name="IssueID" value="#IssueID#">
  <TR>
    <TD colspan="7"><TABLE width="100%" border="0">
      <TR>
        <TD width="351">&nbsp;</TD>
        <TD width="59" align="center" class="title"><b><FONT color="##000000">Strongly Agree</FONT></b></TD>
        <TD width="54" align="center" class="title"><b><FONT color="##000000">Strongly Disagree</FONT></b></TD>
      </TR>
    </TABLE></TD>
    </TR>
  <TR>
    <TD colspan="2">&nbsp;</TD>
    <TD width="28" align="center" class="title">5</TD>
    <TD width="28" align="center" class="title">4</TD>
    <TD width="28" align="center" class="title">3</TD>
    <TD width="28" align="center" class="title">2</TD>
    <TD width="32" align="center" class="title">1</TD>
  </TR>
  <TR>
    <TD colspan="7" align="left" class="title">PART I<BR><font color="##000000">Educational value</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR onclick="resetColour('Q1')" id="TRQ1">
    <TD width="34" align="center" valign="top" class="TDtitle">1</TD>
    <TD width="683" align="left" class="normaltextreg">I learned something new that was important.</TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="5" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="4" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="3" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="2" tabindex="1"></TD>
    <TD align="center"><INPUT type="radio" name="Q1" value="1" tabindex="1"></TD>
  </TR>
  <TR onclick="resetColour('Q2')"  id="TRQ2">
    <TD width="34" align="center" valign="top" class="TDtitle">2</TD>
    <TD class="normaltextreg">I verified some important information.</TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="5" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="4" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="3" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="2" tabindex="2"></TD>
    <TD align="center"><INPUT type="radio" name="Q2" value="1" tabindex="2"></TD>
  </TR>
  <TR onclick="resetColour('Q3')"  id="TRQ3">
    <TD width="34" align="center" valign="top" class="TDtitle">3</TD>
    <TD class="normaltextreg">I plan to discuss this information with colleagues.</TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="5" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="4" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="3" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="2" tabindex="3"></TD>
    <TD align="center"><INPUT type="radio" name="Q3" value="1" tabindex="3"></TD>
  </TR>
  <TR onclick="resetColour('Q4')"  id="TRQ4">
    <TD width="34" align="center" valign="top" class="TDtitle">4</TD>
    <TD class="normaltextreg">I plan to seek more information on this topic.</TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="5" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="4" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="3" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="2" tabindex="4"></TD>
    <TD align="center"><INPUT type="radio" name="Q4" value="1" tabindex="4"></TD>
  </TR>
    <TR onclick="resetColour('Q5')"  id="TRQ5">
    <TD width="34" align="center" valign="top" class="TDtitle">5</TD>
    <TD class="normaltextreg">My attitude about this topic changed in some way.</TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="5" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="4" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="3" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="2" tabindex="5"></TD>
    <TD align="center"><INPUT type="radio" name="Q5" value="1" tabindex="5"></TD>
  </TR>
    <TR onclick="resetColour('Q6')"  id="TRQ6">
    <TD width="34" align="center" valign="top" class="TDtitle">6</TD>
    <TD class="normaltextreg">This information is likely to have an impact on my practice.</TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="5" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="4" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="3" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="2" tabindex="6"></TD>
    <TD align="center"><INPUT type="radio" name="Q6" value="1" tabindex="6"></TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><BR><font color="##000000">Readability feedback</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
    <TR onclick="resetColour('Q7')"  id="TRQ7">
    <TD align="center" valign="top" class="TDtitle">7</TD>
    <TD class="normaltextreg">I understood what the authors were trying to say.</TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="5" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="4" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="3" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="2" tabindex="7"></TD>
    <TD align="center"><INPUT type="radio" name="Q7" value="1"></TD>
  </TR>
  <TR onclick="resetColour('Q8')"  id="TRQ8">
    <TD align="center" valign="top" class="TDtitle">8</TD>
    <TD class="normaltextreg">I was able to interpret the tables and figures (if there were no tables
      or figures, leave blank).</TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="5" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="4" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="3" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="2" tabindex="8"></TD>
    <TD align="center"><INPUT type="radio" name="Q8" value="1" tabindex="8"></TD>
  </TR>
    <TR onclick="resetColour('Q9')"  id="TRQ9">
    <TD align="center" valign="top" class="TDtitle">9</TD>
    <TD class="normaltextreg">Overall, the presentation of the article enhanced my ability to read
      and understand it.</TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="5" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="4" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="3" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="2" tabindex="9"></TD>
    <TD align="center"><INPUT type="radio" name="Q9" value="1" tabindex="9"></TD>
  </TR>
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title"><font color="##000000">Activity Evaluation</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
  <TR>
    <TD rowspan="2" class="TDtitle" align="center" valign="top">Q10</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>On the whole, how do you rate the value
      of this article?</STRONG></TD>
    </TR>
    <TR onclick="resetColour('Q10')"  id="TRQ10">
    <TD colspan="6" class="normaltextreg">
        Excellent <INPUT type="radio" name="Q10" value="Excellent" tabindex="2">
       Good <INPUT type="radio" name="Q10" value="Good" tabindex="2">
       Fair <INPUT type="radio" name="Q10" value="Fair" tabindex="2">
       Poor <INPUT type="radio" name="Q10" value="Poor" tabindex="2">
     
     </TD>
    </TR>
     
  <TR onclick="resetColour('Q11')"  id="TRQ11">
    <TD align="center" valign="top" class="TDtitle">Q11</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Were any portions of this activity unsatisfactory or inappropriate?</STRONG><BR>
          Yes <INPUT type="radio" name="Q11" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q11" value="No" tabindex="5">
     <P>If &quot;Yes,&quot; explain?<BR>
            <TEXTAREA name="Q11C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>

  <TR onclick="resetColour('Q12')"  id="TRQ12">
    <TD align="center" valign="top" class="TDtitle">Q12</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Was the information presented
        in this activity fair, objective, and balanced?</STRONG><BR>
          Yes <INPUT type="radio" name="Q12" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q12" value="No" tabindex="5">
     <P>If &quot;No,&quot; explain?<BR>
            <TEXTAREA name="Q12C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>

  <TR onclick="resetColour('Q13')"  id="TRQ13">
    <TD height="149" align="center" valign="top" class="TDtitle">Q13</TD>
    <TD colspan="6" class="normaltextreg"><STRONG>Is there subject matter you would like addressed in the future?</STRONG><BR>
          Yes <INPUT type="radio" name="Q13" value="Yes" tabindex="5">
          No <INPUT type="radio" name="Q13" value="No" tabindex="5">
     <P>If &quot;Yes,&quot; explain?<BR>
            <TEXTAREA name="Q13C" cols="60" rows="5" class="formtextarea"></TEXTAREA>
     </P>
    </TD>
</TR>
     
     
  <TR>
    <TD colspan="7">&nbsp;</TD>
  </TR>
  <TR>
    <TD colspan="7" class="title">Part II<BR><font color="##000000">Commitment to Change</font></TD>
  </TR>
  <TR>
    <TD colspan="7" bgcolor="##cccccc"><img src="/images/spacer.gif" height="1"></TD>
  </TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q1</TD>
    <TD colspan="6" class="normaltextreg">How do you plan to change your practice
      as a result of this article?<EM> Explanation Required</EM>.</TD>
    </TR>
  <TR onclick="resetColour('q1_text')"  id="TRq1_text">
    <TD colspan="6"><TEXTAREA name="q1_text" cols="70" rows="3" class="formtextarea" tabindex="10"></TEXTAREA></TD>
    </TR>
<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q2</TD>
    <TD colspan="6" class="normaltextreg">Indicate why you agree or disagree
      with any of the conclusions in this article based on your practice experience?
      <EM>Explanation Required</EM>.</TD>
    </TR>
<TR onclick="resetColour('q2_text')"  id="TRq2_text">
    <TD colspan="6"><TEXTAREA name="q2_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
    <TD colspan="7">&nbsp;</TD>
</TR>
<TR>
    <TD rowspan="2" class="TDtitle" align="center">Q3</TD>
    <TD colspan="6" class="normaltextreg">What recommendations do you have which would improve the value of this activity to your practice?</TD>
    </TR>
<TR onclick="resetColour('q3_text')"  id="TRq3_text">
    <TD colspan="6"><TEXTAREA name="q3_text" cols="70" rows="3" class="formtextarea" tabindex="11"></TEXTAREA></TD>
</TR>

<TR>
  <TD colspan="7">&nbsp;</TD>
</TR>

  <TR>
    <TD colspan="7">
     <TABLE width="100%" border="0">

      <TR>
        <TD class="normaltextreg"><STRONG>CME CREDITS CLAIMED</STRONG> -
          This activity is eligible for a maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>
          credits. Each physician should claim only those hours
          of credit(s) that he/she actually spent on this educational activity.
          Please fill in only those hours of credit(s) spent on this educational
          activity (maximum of <SPAN class="issueCategoryText">#decimalFormat(getArticles.ArticleCMECredit)#</span>). Hours spent should be entered in 15 minute
          increments (e.g., 1 hour 30 minutes equals 1.5):</TD>
        </TR>
      <TR onclick="resetColour('credithours')"  id="TRcredithours">
        <TD class="TDdashed">&nbsp;&nbsp;Enter your hours:
          <INPUT name="credithours" type="text" class="forminput"></TD>
      </TR>
      <TR>
        <TD class="normaltextreg">&nbsp;</TD>
      </TR></table>
       </td></tr>



  <TR>
    <TD colspan="7" align="center"><INPUT name="submit" value="Submit Evaluation" type="submit"></TD>
    </TR>
</form>
</cfif>
</TABLE>
</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
</TABLE>

</CFOUTPUT>
0
 
James RodgersWeb Applications DeveloperCommented:
thanks for the points
0
 
jeffmaceAuthor Commented:
Jester go here for some extra points because it worked perfectly

http://experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_20823408.html


Also if you have time to help with my SUM function problem that would be great.

http://experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_20823401.html
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 9
  • 7
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now