title: Javascript function not being called properly
body: <p>I have a JavaScript function </p>
  
  <pre><code>function createHyperLinkDraft(){ 
      var xWin = window.opener;
      var hyperLink = document.addHyperLinkForm.hyperLinkNameDraft.value;
  
      if(hyperLink){
  
          var urlList = "openDraftFilesAction.action?draftID="+ document.addHyperLinkForm.DraftNo.value ;
          hyperLinkName = "&amp;nbsp;&lt;a style='text-decoration:underline;cursor:pointer' onclick=javascript:window.open('"+urlList+"','subWindow','HEIGHT=600,WIDTH=600,screenX=100,left=100,screenY=100,top=100')&gt;"+ hyperLink +"&lt;/a&gt;&amp;nbsp;";
  
          xWin.Xinha._currentlyActiveEditor.insertHTML(hyperLinkName);
  
          document.addHyperLinkForm.reset();
          window.close();
      }
  }
  </code></pre>
  
  <p>This is getting stored in the noting editor. but when I see in my action class its getting stored as</p>
  
  <pre><code>&lt;p&gt;l&amp;nbsp;&lt;a onclick="javascript:window.open('openDraftFilesAction.action? draftID=9/1021/2015-FT-COORD-new" 3?,?subwindow?,?height="600,WIDTH=600,screenX=100,left=100,screenY=100,top=100')" style="cursor: pointer; text-decoration: underline"&gt;link&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
  </code></pre>
  
  <p>Where say actual draft id was 9/1021/2015-FT-COORD-new file 12oct/3.</p>
  
  <p>Hence, this draft is not being opened. I can't understand why is this happening.</p>