rem: var RRDLeftDiff  = 50; var RRDRightDiff = 30; var RRDImgWidth  = 697; var RRDImgUsable = 596; 
context: function changeRRDImage(coords,dimensions){    var RRDLeftDiff  = 50;        // difference between left border of RRD image and content    var RRDRightDiff = 30;        // difference between right border of RRD image and content    var RRDImgWidth  = 697;       // Width of the Smokeping RRD Graphik    var RRDImgUsable = 596;       // 598 = 697 - 68 - 33;    var mySelectLeft = coords.x1;    var mySelectRight = coords.x2;        if (mySelectLeft == mySelectRight) return; // abort if nothing is selected.         myURLObj = new urlObj(document.URL);          // parse start and stop parameter from URL           var myURL = myURLObj.getUrlBase();          var myRawStartDate = (StartDateString != 0) ? StartDateString : myURLObj.getUrlParameterValue("start");         var myRawStopDate  = (EndDateString != 0) ? EndDateString : myURLObj.getUrlParameterValue("end");            var myRawTarget    = myURLObj.getUrlParameterValue("target");          var myParsedStartDate = ISODateToJS(myRawStartDate);         var myParsedStartEpoch = Math.floor(myParsedStartDate.getTime()/1000.0);          var myParsedStopDate  = ISODateToJS(myRawStopDate);         var myParsedStopEpoch = Math.floor(myParsedStopDate.getTime()/1000.0);             var myParsedDivEpoch = myParsedStopEpoch - myParsedStartEpoch;          var mySerialDate = new Date();         var mySerial = mySerialDate.getTime();         // Generate Selected Range in Unix Timestamps         var genStart = myParsedStartEpoch + (((mySelectLeft  - RRDLeftDiff) / RRDImgUsable ) * myParsedDivEpoch);         var genStop  = myParsedStartEpoch + (((mySelectRight - RRDLeftDiff) / RRDImgUsable ) * myParsedDivEpoch);         var floorGenStart = Math.floor(genStart);         var floorGenStop  = Math.floor(genStop);         var StartDate = new Date(floorGenStart*1000);          var StopDate  = new Date(floorGenStop*1000);         // floor to last full minute         var MinuteGenStart = ( Math.floor(floorGenStart / 60) * 60 );         var MinuteGenStop  = ( Math.floor(floorGenStop  / 60) * 60 );         StartDateString = JSToISODate(StartDate);         EndDateString   = JSToISODate(StopDate);         // construct Image URL         $('zoom').src = myURL + "?displaymode=a;start=" + StartDateString+ ";end=" + EndDateString + ";target=" + myRawTarget + ";serial=" + mySerial;         myCropper.setParams();};
meta: 4026	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4026/371043ac25913355a7239ccbe35f341ab65d800a/smokeping-zoom.js/clean/htdocs/cropper/smokeping-zoom.js