title: Multiple annotations found at this line: End tag (</script>) not closed properly, expected >
body: <p>I have written the below html code with the embedded javascript function disableReturnDate() within the script tags. But on the close tag  is  giving an error</p>
  
  <p>*<strong><em>Error</em>*</strong></p>
  
  <blockquote>
  <pre><code>Multiple annotations found at this line:
    - End tag (&lt;/script&gt;) not closed properly, expected &gt;.
    - Unknown tag (script function addReturnDate() { if (document.getElementById('RoundTrip').checked) 
     { document.write("Select Return Date:"); document.write("&lt;script&gt;DateInput('returndate',true,'DD-MON-YYYY');"); 
     document.write("&lt;input type=\"button\" onClick=\"alert(this.form.returndate.value)\" value=\"Show date value 
     passed\"&gt;"); } } &lt;/script&gt; ).
    - End tag of element &lt;script&gt;
  </code></pre>
  </blockquote>
  
  <p>*<strong><em>Code</em>*</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Enter Date-Time, Arrival and Departure Location&lt;/title&gt;
  &lt;script type="text/javascript" src="calendarDateInput.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  function disableReturnDate() {
      this.form1.returndate.disabled=true;
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="disableReturnDate()"&gt;
  &lt;form name="form1" method="post" action="retrievePossibleRoutes.jsp"&gt;
  Select Travel Date:  
  &lt;script&gt;DateInput('traveldate',true,'DD-MON-YYYY');&lt;/script&gt; 
  &lt;input type="button" onClick="alert(this.form.traveldate.value)" value="Show date value passed"&gt;
  &lt;br&gt;
  Select Return Date:  
  &lt;script&gt;DateInput('returndate',true,'DD-MON-YYYY');&lt;/script&gt; 
  &lt;input type="button" onClick="alert(this.form.returndate.value)" value="Show date value passed"&gt;
  &lt;input type="radio" name="journeyType" id="OneWay" onClick="disableReturnDate()" checked&gt;One Way&lt;br&gt;
  &lt;input type="radio" name="journeyType" id="RoundTrip" onClick="enableReturnDate()"&gt;Round Trip&lt;br&gt; 
  &lt;br&gt;
  Select Departure Location:
  &lt;select name="comboDep"&gt;
  &lt;option&gt;&lt;/option&gt;
  &lt;option&gt;&lt;/option&gt;
  &lt;/select&gt;
  &lt;input type="submit"/&gt;
  &lt;br&gt;
  Select Arrival Location:
  &lt;select name="comboArrv"&gt;
  &lt;option&gt;&lt;/option&gt;
  &lt;option&gt;&lt;/option&gt;
  &lt;/select&gt;
  &lt;input type="submit"/&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Any idea what's wrong. The code being shown in the error was written before but I have removed that now and it still shows in the error message. Look forward to replies</p>
  
  <p>P.S. The link to the calendarDateInput.js is <a href="http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm" rel="nofollow">http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm</a></p>