nsinject.js
authorAlan Knowles <alan@roojs.com>
Thu, 12 Jul 2012 07:23:05 +0000 (15:23 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 Jul 2012 07:23:05 +0000 (15:23 +0800)
nsinject.js

index e9eeb23..df7d854 100644 (file)
@@ -2,8 +2,9 @@ NS = {
     
     rungrab : function(id)
     {
-        //this.id = 282;
+        //id = 282;
         this.id = id;
+        
         var frameload = function()
         {
             var ifd = ifr.contentWindow.document;
@@ -21,7 +22,7 @@ NS = {
             
             if (chk.value !='T') {
                 chk.value= 'T';
-                ifd.getElementById('hddn_daterange1').value = 'CUSTOM';
+                ifd.forms[0].daterange.value = 'CUSTOM';
 
                 ifd.getElementById('date1').value = '1/1/2008';
                 ifd.getElementById('date2').value = '1/1/2013';