aboutsummaryrefslogtreecommitdiffstats
path: root/ecomp-sdk-app/src/main/webapp/WEB-INF/fusion/raptor/wizard_chart.jsp
blob: 959adc2308668b27f203ec70b4adc9d27d80d1a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
<%--
  ================================================================================
  eCOMP Portal SDK
  ================================================================================
  Copyright (C) 2017 AT&T Intellectual Property
  ================================================================================
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  ================================================================================
  --%>
<%--
 Name: wizard_chart.jsp
 Use : This JSP is invoked when chart tab is selected. This is used for creating chart configuration for the report. 
 
 Change Log
 ==========
 
 12-Aug-2009 : Version 8.5 (Sundar);
 				<UL> 
 				<LI> For Line Chart Category can be configured. For this UI is added.</LI>
 				<LI> Line Chart can be displayed as 3D or 2D.</LI>
 				</UL>
 29-Jun-2009 : Version 8.4 (Sundar);
 				<UL> 
 				<LI> For Bar Chart Last Series/Category can be configured as Line Chart or Bar Chart. For this UI is added.</LI>
 				<LI> UI options for compare to prev year chart has been added. </LI>
 				</UL>

 23-Jun-2009 : Version 8.4 (Sundar);
 				<UL> 
 				<LI> Hiding/ Unhiding parameters based on chart type is checked throughly and missing elements were added.</LI>
 				<LI> Table width is made 100% for special input parameters </LI>
 				</UL>
 
 22-Jun-2009 : Version 8.4 (Sundar); 
 				
 				<UL> 
 				<LI> Calendar JS and CSS were added to this page as it is used in customizable input parameters for Time Difference Chart. </LI>
 				<LI> JS method and configurable input parameters were added for Multiple Pie Chart, Bar Chart 3D, Pareto, Time Difference Chart and Multiple
 				     Time Series Chart. </LI>
 				</UL>
--%>
<%@page import="org.openecomp.portalsdk.analytics.model.runtime.FormField"%>
<%@page import="org.openecomp.portalsdk.analytics.model.runtime.ReportFormFields"%>
<%@page import="org.openecomp.portalsdk.analytics.model.runtime.ReportRuntime"%>
<%@page import="org.openecomp.portalsdk.analytics.model.base.IdNameValue"%>
<%@page import="org.openecomp.portalsdk.analytics.model.DataCache"%>
<%@page import="org.openecomp.portalsdk.analytics.model.ReportHandler"%>
<%@page import="java.util.Vector"%>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.DataColumnType" %>
<%@ page import="org.openecomp.portalsdk.analytics.model.definition.ReportDefinition" %>
<%@ page import="org.openecomp.portalsdk.analytics.controller.WizardSequence" %>
<%@ page import="org.openecomp.portalsdk.analytics.util.AppConstants" %>
<%@ page import="org.openecomp.portalsdk.analytics.system.Globals" %>
<%@ page import="org.openecomp.portalsdk.analytics.system.AppUtils" %>
<%@ page import="org.openecomp.portalsdk.analytics.xmlobj.Reports"%>

<% 	
    ReportDefinition rdef = (ReportDefinition) request.getAttribute(AppConstants.SI_REPORT_DEFINITION);
    WizardSequence ws = rdef.getWizardSequence();    
   	boolean isCrossTab = rdef.getReportType().equals(AppConstants.RT_CROSSTAB);
	boolean isSQLBased = rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED) || rdef.getReportDefType().equals(AppConstants.RD_SQL_BASED_DATAMIN);

 	String legendColId = null;
	String valueColId = null;
	
	//String firstColId = null;
	//String firstNumColId = null;
	
	List reportCols     = rdef.getAllColumns();
	List chartValueCols = rdef.getChartValueColumnsList(AppConstants.CHART_ALL_COLUMNS, null);
	
	ArrayList unusedNumCols = new ArrayList(reportCols.size());
	int  numColsCount = 0;
	for(Iterator iter=reportCols.iterator(); iter.hasNext(); ) { 
		DataColumnType dct = (DataColumnType) iter.next();
		
		if(nvl(dct.getColOnChart()).equals(AppConstants.GC_LEGEND))
			legendColId = dct.getColId();
		
		if(isSQLBased||nvl(dct.getColType()).equals(AppConstants.CT_NUMBER)) {
			numColsCount++;
			if(nvl(dct.getColOnChart()).length()==0)	//dct.getChartSeq()<0)
				unusedNumCols.add(dct);
		}	// if
		
/*		if(dct.getChartSeq()>0)
			valueColId = dct.getColId();
		
		if(firstColId==null)
			firstColId = dct.getColId();
		if(firstNumColId==null)
			if(isSQLBased)
				firstNumColId = dct.getColId();
			else
				if(nvl(dct.getColType()).equals(AppConstants.CT_NUMBER))
					firstNumColId = dct.getColId();*/
	}   // for
	
	String chartType = nvl(rdef.getChartType()); %>

<script type="text/javascript" src="<%= AppUtils.getBaseFolderURL() %>js/CalendarPopup.js"></script> 
<link rel="stylesheet" type="text/css" href="<%= AppUtils.getBaseFolderURL() %>css/calendar.css">

<script language="javascript">



function refreshWizard() {
   var selectBox = document.forma.chartType;
   var selectedString = selectBox.options[selectBox.selectedIndex].value;
   
   if(selectedString == '<%=AppConstants.GT_TIME_SERIES%>'){
   	document.getElementById("seriesDiv").style.display='block';
   	var selObj = document.getElementById('chartSeries');
   	if(selObj) {
	   	var selIndex = selObj.selectedIndex;
	   	var value = selObj.options[selIndex].value;
		var value = <%=chartValueCols.size()%>;
		if(value > 1) {
	     	document.getElementById("multiseriesDiv").style.display='block';
	     	
	    } else {
		 	document.getElementById("multiseriesDiv").style.display='none';    
			document.getElementById("multiSeries").value='N';    
		} 	
   	}
    <% 	int col1Idx = 1; %>
	   //var contentIframe = window.parent.document.getElementById("content_Iframe");
	   //contentIframe.style.height = contentIframe.clientHeight + 120; 
   	if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="block";
   	if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="block";
	if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display="block";
	if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
   	if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
	if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
   	if (document.getElementById("multiplePieChartOptions")) document.getElementById("multiplePieChartOptions").style.display="none";
	if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
   	if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
   	if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="block";
   	if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
   	if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
   	if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='block';	
	if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='none';
	if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='block';
	if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='none';
	if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';
	    
		

   } else {
   <%
   	col1Idx = 1;
    for(int i=1; i<chartValueCols.size(); i++) {
		col1Idx++;
	%>
     document.getElementById("newChartDiv<%=col1Idx%>").style.visibility='hidden';
     //document.getElementById("chartGroupDiv<%=col1Idx%>").style.visibility='hidden';
     document.getElementById("seriesDiv").style.display='none';
     document.getElementById("multiseriesDiv").style.display='none';   
   	 if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
 	 if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
	if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
	if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='none';
  	 
	 
     <%
     }
    %>
 
   if(selectedString == "<%=AppConstants.GT_PIE_MULTIPLE%>") {
   //var contentIframe = window.parent.document.getElementById("content_Iframe");
   //contentIframe.style.height = contentIframe.clientHeight + 120; 
  		if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="block";
   		if (document.getElementById("multiplePieChartOptions"))  document.getElementById("multiplePieChartOptions").style.display="block";
   		if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
   	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
   		if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
   		if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
   		if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="block";
   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='block';
   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='none';
   		if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='block';
   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='none';
   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';

   }  else if(selectedString == "<%=AppConstants.GT_SCATTER%>") {
	   //var contentIframe = window.parent.document.getElementById("content_Iframe");
	   //contentIframe.style.height = contentIframe.clientHeight + 120; 
			if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="none";
	   		if (document.getElementById("multiplePieChartOptions"))  document.getElementById("multiplePieChartOptions").style.display="none";
	   		if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
	   	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
	   		if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='block';
	   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
	   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
	   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
	   		if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
	   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
	   		if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="block";
	   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
	   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
	   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='block';
	   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='none';
	   		if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='block';
	   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='none';
	   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';


   }  else if(selectedString == "<%=AppConstants.GT_REGRESSION%>") {
	   //var contentIframe = window.parent.document.getElementById("content_Iframe");
	   //contentIframe.style.height = contentIframe.clientHeight + 120; 
			if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="none";
	   		if (document.getElementById("multiplePieChartOptions"))  document.getElementById("multiplePieChartOptions").style.display="none";
	   		if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
	   	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
	   		if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='block';
		   	if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
	   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='block';
	   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='block';
	   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
	   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
	   		if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
	   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
	   		if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="none";
	   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
	   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
	   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='block';
	   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='none';
	   		if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='block';
	   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';

	   		
   }  else if(selectedString == "<%=AppConstants.GT_STACKED_VERT_BAR%>" || selectedString == "<%=AppConstants.GT_STACKED_HORIZ_BAR%>" || selectedString == "<%=AppConstants.GT_STACKED_VERT_BAR_LINES%>"
	    || selectedString == "<%=AppConstants.GT_STACKED_HORIZ_BAR_LINES%>") {
	   //var contentIframe = window.parent.document.getElementById("content_Iframe");
	   //contentIframe.style.height = contentIframe.clientHeight + 120; 
			if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="none";
	   		if (document.getElementById("multiplePieChartOptions"))  document.getElementById("multiplePieChartOptions").style.display="none";
	   		if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
	   	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
	   		if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='block';
		   	if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
	   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
	   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='block';
	   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="block";
	   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
	   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
	   		if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
	   		if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="block";
	   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
	   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
	   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='block';
	   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='none';
	   		if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='block';
	   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='block';
	   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';

    }  else if(selectedString == "<%=AppConstants.GT_BAR_3D%>") { 
   		//var contentIframe = window.parent.document.getElementById("content_Iframe");
   		//contentIframe.style.height = contentIframe.clientHeight + 120; 
	   	if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="block";
   		if (document.getElementById("BarChartOptions"))  document.getElementById("BarChartOptions").style.display='block';
   	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display='block';
   		if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='block';
   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
	   	if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='block';
   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='block';
   		if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
		if (document.getElementById("multiplePieChartOptions")) document.getElementById("multiplePieChartOptions").style.display="none";
		if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="block";
   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='block';
   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='block';
   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='none';
   		if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='block';
   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';

    }  else if(selectedString == "<%=AppConstants.GT_LINE%>") { 
   		//var contentIframe = window.parent.document.getElementById("content_Iframe");
   		//contentIframe.style.height = contentIframe.clientHeight + 120; 
		if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="none";
   		if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
   	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
   		if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='block';
   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
	   	if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='block';
   		if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
		if (document.getElementById("multiplePieChartOptions")) document.getElementById("multiplePieChartOptions").style.display="none";
		if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="block";
   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='block';
   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='block';
   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='none';
   		if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='block';
   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='block';
   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='block';

    } else if (selectedString == "<%=AppConstants.GT_PARETO_CHART%>") {
 	   //var contentIframe = window.parent.document.getElementById("content_Iframe");
	   //contentIframe.style.height = contentIframe.clientHeight + 120; 
		if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="none";
	   	if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
	   	if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
	   	if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
  	 	if (document.getElementById("multiplePieChartOptions")) document.getElementById("multiplePieChartOptions").style.display="none";
  		if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
  		if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="none";
   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='block';
   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='none';
   		if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='block';
   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='none';
   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';

    } else if (selectedString == "<%=AppConstants.GT_TIME_DIFFERENCE_CHART%>") {
  	   //var contentIframe = window.parent.document.getElementById("content_Iframe");
 	   //contentIframe.style.height = contentIframe.clientHeight + 120; 
		if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="none";
 	  	if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
 	 	if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='block';
   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
 		if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
   		if (document.getElementById("multiplePieChartOptions")) document.getElementById("multiplePieChartOptions").style.display="none";
   		if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
   		if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="none";
   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='block';
   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='block';
   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='none';
   		if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='none';
   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='none';
   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';

    } else if (selectedString == "<%=AppConstants.GT_COMPARE_PREVYEAR_CHART%>") {
   	   //var contentIframe = window.parent.document.getElementById("content_Iframe");
  	   //contentIframe.style.height = contentIframe.clientHeight + 120; 
		if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="none";
  	  	if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
  	 	if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='block';
   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
  		if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
   		if (document.getElementById("multiplePieChartOptions")) document.getElementById("multiplePieChartOptions").style.display="none";
   		if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
   		if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="none";
   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='block';
   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='none';
       	if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='none';
   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='none';
   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';

    }else if (selectedString != "<%=AppConstants.GT_TIME_SERIES%>") { 
	   //var contentIframe = window.parent.document.getElementById("content_Iframe");
	   //contentIframe.style.height = contentIframe.clientHeight + 120; 
	   	if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="block";
	   	if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="block";
	   	if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
	   	//if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
	   	if (document.getElementById("multiplePieChartOptions")) document.getElementById("multiplePieChartOptions").style.display="none";
	   	if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
	   	if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="block";
   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='block';
   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';

    } else 	if (selectedString == "<%=AppConstants.GT_MULTIPLE_TIMESERIES_CHART%>") {
 	   //var contentIframe = window.parent.document.getElementById("content_Iframe");
	   //contentIframe.style.height = contentIframe.clientHeight + 120; 
		if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="none";
   			if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='none';
	   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
		   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
   			if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='block';
   	   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
   		   	if (document.getElementById("chartOptions"))  document.getElementById("chartOptions").style.display="block";
   		   	if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='none';
   	   		if (document.getElementById("lastSeriesAsLineChartDiv"))  document.getElementById("lastSeriesAsLineChartDiv").style.display='none';
   	   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
   		   	if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
   		   	if (document.getElementById("multiplePieChartOptions")) document.getElementById("multiplePieChartOptions").style.display="none";
   		   	if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
   	   		if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
   		   	if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="block";
   	   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
   	   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
   	 		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';

	 } else {
		   //var contentIframe = window.parent.document.getElementById("content_Iframe");
		   //contentIframe.style.height = contentIframe.clientHeight + 120; 
		if (document.getElementById("animatedDiv"))  document.getElementById("animatedDiv").style.display="none";
	   		if (document.getElementById("regressionChartDiv"))  document.getElementById("regressionChartDiv").style.display='none';
   		if (document.getElementById("LabelAngleForOtherCharts")) document.getElementById("LabelAngleForOtherCharts").style.display='block';
   		if (document.getElementById("LabelAngleForTimeSeriesCharts")) document.getElementById("LabelAngleForTimeSeriesCharts").style.display='none';
   		if (document.getElementById("maxLabelsInDomainAxisForOtherCharts")) document.getElementById("maxLabelsInDomainAxisForOtherCharts").style.display='none';
   		if (document.getElementById("CustomizingYAxisDiv"))  document.getElementById("CustomizingYAxisDiv").style.display='none';
	   	if (document.getElementById("drillDownOptions"))  document.getElementById("drillDownOptions").style.display="none";
   		if (document.getElementById("lastSeriesAsBarChartDiv"))  document.getElementById("lastSeriesAsBarChartDiv").style.display='none';
	   	if (document.getElementById("seriesDiv"))  document.getElementById("seriesDiv").style.display='none';
	   	if (document.getElementById("multiseriesDiv"))  document.getElementById("multiseriesDiv").style.display='none';
	   	if (document.getElementById("multiplePieChartOptions")) document.getElementById("multiplePieChartOptions").style.display="none";
	   	if (document.getElementById("barChartOptions"))  document.getElementById("barChartOptions").style.display="none";
	   	if (document.getElementById("stackBarChartOptions"))  document.getElementById("stackBarChartOptions").style.display="none";
	   	if (document.getElementById("AddRangeAxisDiv"))  document.getElementById("AddRangeAxisDiv").style.display="none";
   		if (document.getElementById("TimeDifferenceChartOptions")) document.getElementById("TimeDifferenceChartOptions").style.display='none';
   		if (document.getElementById("BarLineChartOptions")) document.getElementById("BarLineChartOptions").style.display='none';
   		if (document.getElementById("keepAsString")) document.getElementById("keepAsString").style.display='none';
	   	}
    }
 }


</script>

<iframe id="calendarFrame" class="nav" z-index:199; scrolling="no"  frameborder="0"  width=165px height=165px src="" style="position:absolute; display:none;">
</iframe>

 <div id="calendarDiv" name="calendarDiv" style="position:absolute; z-index:200; visibility:none; background-color:white;layer-background-color:white;"></div>
 

<table width="100%"  class="tableBorder" border="0" cellspacing="1" cellpadding="3" align=center>
	<tr>
		<td class=rbg1 colspan=5 valign="Middle"><b class=rtableheader>Step <%= ws.getCurrentStepIndex() %> of <%= ws.getStepCount() %> - Report <%= ws.getCurrentStep() %></b></td>
	</tr>
<%	if(numColsCount==0) { %>
	<tr>
		<td class=rbg2 colspan=5 align="center" height="30"><font class=rtabletext>No numeric columns found - chart not available</font></td>
	</tr>
	<input type="hidden" name="chartType" value="">
	<input type="hidden" name="chartWidth" value="">
	<input type="hidden" name="chartHeight" value="">
	
<%	} else { %>

	<tr>
	  <td colspan="4">
	    <table><tr>
		<td class=rbg2 align="right" width="50%" height="30"><font class=rtabletext>Chart Type: </font></td>
		<td class=rbg3 align="left"><font class=rtabletext>
			<select name="chartType" onChange="showAlertForTimeSeries()">
				<option value=""                                <%= chartType.equals(""                       )?" selected":"" %>>--- Do Not Include Chart ---
				<option value="<%= AppConstants.GT_BAR_3D    %>"<%= chartType.equals(AppConstants.GT_BAR_3D   ) || chartType.equals(AppConstants.GT_HORIZ_BAR   ) || chartType.equals(AppConstants.GT_VERT_BAR   ) || chartType.equals(AppConstants.GT_BAR_LINES)?" selected":"" %>>Bar Chart
				<option value="<%= AppConstants.GT_TOTAL_BAR %>"<%= chartType.equals(AppConstants.GT_TOTAL_BAR)?" selected":"" %>>Bar Chart With Running Total
                                <% if(!Globals.getJFreeVersion().equals(AppConstants.JFV_0911)) { %> 
				    <option value="<%= AppConstants.GT_STACKED_VERT_BAR %>"<%= chartType.equals(AppConstants.GT_STACKED_VERT_BAR)?" selected":"" %>>Vertical Stacked Bar				
				    <option value="<%= AppConstants.GT_STACKED_HORIZ_BAR %>"<%= chartType.equals(AppConstants.GT_STACKED_HORIZ_BAR)?" selected":"" %>>Horizontal Stacked Bar								
				    <option value="<%= AppConstants.GT_STACKED_VERT_BAR_LINES %>"<%= chartType.equals(AppConstants.GT_STACKED_VERT_BAR_LINES)?" selected":"" %>>Vertical Stacked Bar With Lines Chart				
				    <option value="<%= AppConstants.GT_STACKED_HORIZ_BAR_LINES %>"<%= chartType.equals(AppConstants.GT_STACKED_HORIZ_BAR_LINES)?" selected":"" %>>Horizontal Stacked Bar With Lines Chart								
                                <% } %> 
				<option value="<%= AppConstants.GT_LINE      %>"<%= chartType.equals(AppConstants.GT_LINE     )?" selected":"" %>>Line Chart
				<option value="<%= AppConstants.GT_PIE_3D    %>"<%= chartType.equals(AppConstants.GT_PIE_3D   )?" selected":"" %>>Pie Chart 3D
				<option value="<%= AppConstants.GT_PIE       %>"<%= chartType.equals(AppConstants.GT_PIE      )?" selected":"" %>>Pie Chart
				<option value="<%= AppConstants.GT_PIE_MULTIPLE %>"<%= chartType.equals(AppConstants.GT_PIE_MULTIPLE      )?" selected":"" %>>Multiple Pie Chart
				<option value="<%= AppConstants.GT_PARETO_CHART %>"<%= chartType.equals(AppConstants.GT_PARETO_CHART      )?" selected":"" %>>Pareto Chart
				<option value="<%= AppConstants.GT_MULTIPLE_TIMESERIES_CHART %>"<%= chartType.equals(AppConstants.GT_MULTIPLE_TIMESERIES_CHART      )?" selected":"" %>>Multiple TimeSeries Chart
				<option value="<%= AppConstants.GT_TIME_DIFFERENCE_CHART %>"<%= chartType.equals(AppConstants.GT_TIME_DIFFERENCE_CHART      )?" selected":"" %>>Time Difference Chart
				<option value="<%= AppConstants.GT_COMPARE_PREVYEAR_CHART %>"<%= chartType.equals(AppConstants.GT_COMPARE_PREVYEAR_CHART      )?" selected":"" %>>Compare Previous Year Chart
				<option value="<%= AppConstants.GT_SCATTER %>"<%= chartType.equals(AppConstants.GT_SCATTER      )?" selected":"" %>>Scatter Plot Chart
				<option value="<%= AppConstants.GT_REGRESSION %>"<%= chartType.equals(AppConstants.GT_REGRESSION      )?" selected":"" %>>Regression Chart
				<option value="<%= AppConstants.GT_HIERARCHICAL %>"<%= chartType.equals(AppConstants.GT_HIERARCHICAL      )?" selected":"" %>>Hierarchical (HTML5) Chart
				<option value="<%= AppConstants.GT_HIERARCHICAL_SUNBURST %>"<%= chartType.equals(AppConstants.GT_HIERARCHICAL_SUNBURST      )?" selected":"" %>>Hierarchical (HTML5) Sun Burst Chart
				
<%		if(!Globals.getJFreeVersion().equals(AppConstants.JFV_0911)) { %>				
				<option value="<%= AppConstants.GT_TIME_SERIES%>"<%= chartType.equals(AppConstants.GT_TIME_SERIES )?" selected":"" %>>Time Series Chart				
<%      } //It is supported only when chart library is above 0911 %>
<%		if(Globals.getShowNonstandardCharts()) { %>
				<option value="<%= AppConstants.GT_MTD_BAR   %>"<%= chartType.equals(AppConstants.GT_MTD_BAR  )?" selected":"" %>>Month To Date Bar Chart
<%		}	// if(Globals.getShowNonstandardCharts 
%>
			</select></font></td>
		<td class=rbg3 align="left" nowrap><font class=rtabletext>
			<input type="checkbox" name="chartTypeFixed" value="Y"<%= rdef.isChartTypeFixed()?" checked":"" %>>
			&nbsp;Do NOT allow user to change chart type at runtime
		</td>	
		<td id="animatedDiv" style ="display:none;">
           <select name="animatedOption">
				<option value="static" <%=!rdef.isChartAnimate()?" selected":""%>> 	Static 	</option>
				<option value="animate" <%=rdef.isChartAnimate()?" selected":""%>> 	Animate </option>
		   </select>		   
		</td>
       </tr>
       </table>
       </td>	   
	</tr>
	<tr>
		<td class=rbg2 align="right"  height="30"><font class=rtabletext>Chart Width (px): </font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type="text" name="chartWidth" value="<%= ""+rdef.getChartWidthAsInt() %>" size="10" maxlength="4"></font></td>
	</tr>
	<tr>
		<td class=rbg2 align="right"  height="30"><font class=rtabletext>Chart Height (px): </font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type="text" name="chartHeight" value="<%= ""+rdef.getChartHeightAsInt() %>" size="10" maxlength="4"></font></td>
	</tr>
	<tr>
		<td class=rbg2 align="right" height="30"><font class=rtabletext>Domain Axis: </font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<select name="legendCol">
			<%	for(Iterator iter=reportCols.iterator(); iter.hasNext(); ) { 
					DataColumnType dct = (DataColumnType) iter.next(); %>
				<option value="<%= dct.getColId() %>"<%= nvl(legendColId /*, firstColId*/).equals(dct.getColId())?" selected":"" %>><%= dct.getDisplayName() %>
			<%	} %>
			</select></font></td>
	</tr>
	<tr id="seriesDiv">
		<td class=rbg2 align="right" height="30"><font class=rtabletext>Category:</font></td>
		<td class=rbg3 colspan=4 align="left" ><font class=rtabletext>
			<select name="chartSeries" onChange="refreshWizard()">
               <%	int isThereChartSeries = 0;
                    if(rdef.hasSeriesColumn()) isThereChartSeries = 1; 
                    if(isThereChartSeries == 0) {
               %>
  		             <option value="-1" selected> -->select series <-- </option>
               <%                      	
                    } else {
               %>     	
  		             <option value="-1"> -->select series <-- </option>  		         
               <%    
                    } // else
		               for(Iterator iter=reportCols.iterator(); iter.hasNext(); ) { 
					DataColumnType dct = (DataColumnType) iter.next(); 
							if(dct.isChartSeries()!=null && dct.isChartSeries().booleanValue()) {
               %>
               					<option value="<%= dct.getColId() %>" selected><%= dct.getDisplayName() %>
               <%
                    		} else {
							
               %>  							
				<option value="<%= dct.getColId() %>"><%= dct.getDisplayName() %>
               <%
                    		} // else Chart Series
				}	// for 
						
			%>
			</select></font></td>		
    </tr>		 
	<tr id = "lastSeriesAsLineChartDiv">
		<td> last Category display As Line Chart
		</td>
		<td class=rbg3 colspan=3 align="left" nowrap><font class=rtabletext>
			<input type="checkbox" name="lastSeriesALineChart" value="Y"<%= rdef.isLastSeriesALineChart()?" checked":"" %>>
		</td>	
	</tr>

	<tr id = "lastSeriesAsBarChartDiv">
		<td> last Category display As Bar Chart
		</td>
		<td class=rbg3 colspan=3 align="left" nowrap><font class=rtabletext>
			<input type="checkbox" name="lastSeriesABarChart" value="Y"<%= rdef.isLastSeriesABarChart()?" checked":"" %>>
		</td>	
	</tr>

	<tr id = "multiseriesDiv">
		<td class=rbg2 align="right"  height="30"><font class=rtabletext>Multi Series</font></td>
		<td class=rbg3 colspan=4 align="left" width="50%">
			<input type=radio name="multiSeries" value="Y" <%= (AppUtils.getRequestNvlValue(request, "multiSeries").trim().length()>0? (AppUtils.getRequestNvlValue(request, "multiSeries").equals("Y")? " checked ":""): (rdef.isMultiSeries() ? " checked ":" checked ")) %>><font class=rtabletext>Yes</font>
			<input type=radio name="multiSeries" value="N" <%= (AppUtils.getRequestNvlValue(request, "multiSeries").trim().length()>0? (AppUtils.getRequestNvlValue(request, "multiSeries").equals("N")? " checked ":""): (!rdef.isMultiSeries() ? " checked":"")) %>><font class=rtabletext>No</font>
    </tr>
    
<%		if(chartValueCols.size()==0) { %>
	<tr>
		<td class=rbg2 align="right" height="30"><font class=rtabletext>Range Axis:</font></td> 
		<td class=rbg3 colspan=3 align="left" width="50%"><font class=rtabletext>
			<select name="valueCol1">
			<%	for(Iterator iter=reportCols.iterator(); iter.hasNext(); ) { 
					DataColumnType dct = (DataColumnType) iter.next(); 
					if(isSQLBased||nvl(dct.getColType()).equals(AppConstants.CT_NUMBER)) {%>
				<option value="<%= dct.getColId() %>"><%= dct.getDisplayName() %>
			<%		}	// if
				}	// for 
			%>
			</select></font></td>
		<td class=rbg3 align="center" nowrap><font class=rtabletext>
			<%	String sValue = ""; %>
			<select name="valueCol1Color">
				<option value=""<%=        sValue.equals("")       ?" selected":"" %>>Color: Default
				<option value="#00FFFF"<%= sValue.equals("#00FFFF")?" selected":"" %>>Aqua
				<option value="#000000"<%= sValue.equals("#000000")?" selected":"" %>>Black
				<option value="#0000FF"<%= sValue.equals("#0000FF")?" selected":"" %>>Blue
				<option value="#FF00FF"<%= sValue.equals("#FF00FF")?" selected":"" %>>Fuchsia
				<option value="#808080"<%= sValue.equals("#808080")?" selected":"" %>>Gray
				<option value="#008000"<%= sValue.equals("#008000")?" selected":"" %>>Green
				<option value="#00FF00"<%= sValue.equals("#00FF00")?" selected":"" %>>Lime
				<option value="#800000"<%= sValue.equals("#800000")?" selected":"" %>>Maroon
				<option value="#000080"<%= sValue.equals("#000080")?" selected":"" %>>Navy
				<option value="#808000"<%= sValue.equals("#808000")?" selected":"" %>>Olive
				<option value="#FF9900"<%= sValue.equals("#FF9900")?" selected":"" %>>Orange
				<option value="#800080"<%= sValue.equals("#800080")?" selected":"" %>>Purple
				<option value="#FF0000"<%= sValue.equals("#FF0000")?" selected":"" %>>Red
				<option value="#C0C0C0"<%= sValue.equals("#C0C0C0")?" selected":"" %>>Silver
				<option value="#008080"<%= sValue.equals("#008080")?" selected":"" %>>Teal
				<option value="#FFFFFF"<%= sValue.equals("#FFFFFF")?" selected":"" %>>White
				<option value="#FFFF00"<%= sValue.equals("#FFFF00")?" selected":"" %>>Yellow
			</select>
			</font></td>
	</tr>
<%		} else { 
			int count = 1;
			String colIdx = "";
			for(Iterator iterV=chartValueCols.iterator(); iterV.hasNext(); count++) { 
				colIdx = "";
				DataColumnType dctV = (DataColumnType) iterV.next();
				colIdx = dctV.getColId();
				int colAxisIdx = 0;
				boolean newChart = false;
				try {
					colAxisIdx = Integer.parseInt(dctV.getColOnChart());
				} catch(Exception e) {} 
				newChart = (dctV.isCreateInNewChart()!=null)?dctV.isCreateInNewChart().booleanValue():false;
				%>

	<tr>
		<td class=rbg2 align="right" height="30"><font class=rtabletext>Range Axis <%= count %>:</font></td> 
		<td class=rbg3 align="left" nowrap><font class=rtabletext>
			<select name="valueCol<%= count %>">
			<%	for(Iterator iter=reportCols.iterator(); iter.hasNext(); ) { 
					DataColumnType dct = (DataColumnType) iter.next(); 
					if(isSQLBased||nvl(dct.getColType()).equals(AppConstants.CT_NUMBER)) {%>
				<option value="<%= dct.getColId() %>"<%= dct.getColId().equals(dctV.getColId())?" selected":"" %>><%= dct.getDisplayName() %>
			<%		}	// if
				}	// for 
			%>
			</select>
			<%	if(count>1) { %>
			&nbsp;
			<input type=image border="0" src="<%= AppUtils.getImgFolderURL() %>deleteicon.gif" alt="Remove" width="12" height="12" onClick="document.forma.<%= AppConstants.RI_WIZARD_ACTION %>.value='<%= AppConstants.WA_DELETE_USER %>'; document.forma.<%= AppConstants.RI_DETAIL_ID %>.value='<%= dctV.getColId() %>';">
			<%	} %>
			&nbsp;
			</font></td>
		<td class=rbg3 align="center" nowrap>
		<%
		  String chartGroupOrg = dctV.getChartGroup();
		  String yAxisGroup = dctV.getYAxis();	
		  String chartGroup = (chartGroupOrg!=null && chartGroupOrg.length()>0 && chartGroupOrg.indexOf("|")!= -1)?chartGroupOrg.substring(0,chartGroupOrg.lastIndexOf("|")):""; 
		  String yAxis 		= (yAxisGroup!=null && yAxisGroup.length()>0 && yAxisGroup.indexOf("|")!= -1)?yAxisGroup.substring(0,yAxisGroup.lastIndexOf("|")):""; 
		%>
             <div id="chartGroupDiv<%=colIdx%>">
		     <font class=rtabletext>Chart Title:</font><input type="text" name="chartGroup<%= colIdx%>Axis" value="<%=nvl(chartGroup).length()>0?chartGroup:""%>"/>
		     <font class=rtabletext>YAxis:</font><input type="text" name="YAxisLabel<%= colIdx%>" value="<%=nvl(yAxis).length()>0?yAxis:""%>"/>
            </div>
              
                </td>
		<td class=rbg3 align="center" nowrap><font class=rtabletext>
			<%	String sValue = nvl(dctV.getChartColor()); %>
			<select name="valueCol<%= count %>Color">
				<option value=""<%=        sValue.equals("")       ?" selected":"" %>>Color: Default
				<option value="#00FFFF"<%= sValue.equals("#00FFFF")?" selected":"" %>>Aqua
				<option value="#000000"<%= sValue.equals("#000000")?" selected":"" %>>Black
				<option value="#0000FF"<%= sValue.equals("#0000FF")?" selected":"" %>>Blue
				<option value="#FF00FF"<%= sValue.equals("#FF00FF")?" selected":"" %>>Fuchsia
				<option value="#808080"<%= sValue.equals("#808080")?" selected":"" %>>Gray
				<option value="#008000"<%= sValue.equals("#008000")?" selected":"" %>>Green
				<option value="#00FF00"<%= sValue.equals("#00FF00")?" selected":"" %>>Lime
				<option value="#800000"<%= sValue.equals("#800000")?" selected":"" %>>Maroon
				<option value="#000080"<%= sValue.equals("#000080")?" selected":"" %>>Navy
				<option value="#808000"<%= sValue.equals("#808000")?" selected":"" %>>Olive
				<option value="#FF9900"<%= sValue.equals("#FF9900")?" selected":"" %>>Orange
				<option value="#800080"<%= sValue.equals("#800080")?" selected":"" %>>Purple
				<option value="#FF0000"<%= sValue.equals("#FF0000")?" selected":"" %>>Red
				<option value="#C0C0C0"<%= sValue.equals("#C0C0C0")?" selected":"" %>>Silver
				<option value="#008080"<%= sValue.equals("#008080")?" selected":"" %>>Teal
				<option value="#FFFFFF"<%= sValue.equals("#FFFFFF")?" selected":"" %>>White
				<option value="#FFFF00"<%= sValue.equals("#FFFF00")?" selected":"" %>>Yellow
			</select>
			</font></td>
		<td class=rbg3 align="left" nowrap valign="middle"><font class=rtabletext>
			<%	if(count>1) { %>
                   <div id="newChartDiv<%=count%>">
		    <input type="checkbox" name="newChart<%= count %>Axis" value="Y"<%= (newChart)?" checked":"" %>>
			&nbsp;Create in New Chart			
                    </div>
			<input type="checkbox" name="valueCol<%= count %>Axis" value="Y"<%= (colAxisIdx>0)?" checked":"" %>>
			&nbsp;Use secondary axis (Line chart only)
			<%	} %>
			&nbsp;</font></td>
	</tr>
<%			}	// for 
		}	// else (chartValueCols.size()==0)
		if(unusedNumCols.size()>0) { %>
	<tr id="AddRangeAxisDiv">
		<td class=rbg2 align="right" height="30"><font class=rtabletext>Add Values Column:</font></td> 
		<td class=rbg3 align="left"><font class=rtabletext>
			<select name="valueColNew" onChange="if(! checkValueColNew()) return; document.forma.<%= AppConstants.RI_WIZARD_ACTION %>.value='<%= AppConstants.WA_ADD_USER %>'; document.forma.submit();">
				<option value="" selected>--- Select Column ---
			<%	for(Iterator iter=unusedNumCols.iterator(); iter.hasNext(); ) { 
					DataColumnType dct = (DataColumnType) iter.next(); 
					if(isSQLBased||nvl(dct.getColType()).equals(AppConstants.CT_NUMBER)) {%>
				<option value="<%= dct.getColId() %>"><%= dct.getDisplayName() %>
			<%		}	// if
				}	// for 
			%>
			</select>
			</font></td>
		<td class=rbg3 align="center" nowrap><font class=rtabletext>
			<%	String sValue = ""; %>
			<select name="valueColNewColor">
				<option value=""<%=        sValue.equals("")       ?" selected":"" %>>Color: Default
				<option value="#00FFFF"<%= sValue.equals("#00FFFF")?" selected":"" %>>Aqua
				<option value="#000000"<%= sValue.equals("#000000")?" selected":"" %>>Black
				<option value="#0000FF"<%= sValue.equals("#0000FF")?" selected":"" %>>Blue
				<option value="#FF00FF"<%= sValue.equals("#FF00FF")?" selected":"" %>>Fuchsia
				<option value="#808080"<%= sValue.equals("#808080")?" selected":"" %>>Gray
				<option value="#008000"<%= sValue.equals("#008000")?" selected":"" %>>Green
				<option value="#00FF00"<%= sValue.equals("#00FF00")?" selected":"" %>>Lime
				<option value="#800000"<%= sValue.equals("#800000")?" selected":"" %>>Maroon
				<option value="#000080"<%= sValue.equals("#000080")?" selected":"" %>>Navy
				<option value="#808000"<%= sValue.equals("#808000")?" selected":"" %>>Olive
				<option value="#FF9900"<%= sValue.equals("#FF9900")?" selected":"" %>>Orange
				<option value="#800080"<%= sValue.equals("#800080")?" selected":"" %>>Purple
				<option value="#FF0000"<%= sValue.equals("#FF0000")?" selected":"" %>>Red
				<option value="#C0C0C0"<%= sValue.equals("#C0C0C0")?" selected":"" %>>Silver
				<option value="#008080"<%= sValue.equals("#008080")?" selected":"" %>>Teal
				<option value="#FFFFFF"<%= sValue.equals("#FFFFFF")?" selected":"" %>>White
				<option value="#FFFF00"<%= sValue.equals("#FFFF00")?" selected":"" %>>Yellow
			</select>
			</font></td>
		<td colspan="2" class=rbg3 align="left" nowrap><font class=rtabletext>
			<input type="checkbox" name="valueColNewAxis" value="Y">
			&nbsp;Use secondary axis (Line chart only)
			</font></td>
	</tr>
<%		}	// if(unusedNumCols.size()==0)
		if(chartValueCols.size()>1 || rdef.hasSeriesColumn()) { %>
	<tr>
		<td class=rbg2 align="right" height="30"><font class=rtabletext>Primary Axis Label:</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type="text" name="leftAxisLabel" class=rtabletext value="<%= nvl(rdef.getChartLeftAxisLabel()) %>" size="40">
			&nbsp;(Multi-series Chart Only)</font></td>
	</tr>
	<tr>
		<td class=rbg2 align="right" height="30"><font class=rtabletext>Secondary Axis Label:</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type="text" name="rightAxisLabel" class=rtabletext value="<%= nvl(rdef.getChartRightAxisLabel()) %>" size="40">
			&nbsp;(Multi-series Chart Only)</font></td>
	</tr>
<%		}	// if(chartValueCols.size()>1)
%>
	<tr>
		<td class=rbg2 align="right" height="30"><font class=rtabletext>&nbsp;</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			Note: Some chart types (like Pie) will only display Series 1 Values.</font></td>
	</tr>
	<tr>
	  <td colspan=5>
	   
	<div id="multiplePieChartOptions" style="display:none;">
	<table width="100%">
	<tr>
		<td colspan="3"><font class=rtabletext>Additional Multiple Pie Charts options:</font></td> 
	</tr>
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Order by </font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="multiplePieOrder" value="row" <%= AppUtils.getRequestNvlValue(request, "multiplePieOrder").equals("row")?" checked": ((AppUtils.getRequestNvlValue(request, "multiplePieOrder").length()<=0)? (rdef.isMultiplePieOrderByRow() ?" checked": (rdef.isMultiplePieOrderByColumn()?"":" checked")):"") %>>Table By Row
			<input type=radio name="multiplePieOrder" value="column" <%= AppUtils.getRequestNvlValue(request, "multiplePieOrder").equals("column") ? " checked":((AppUtils.getRequestNvlValue(request, "multiplePieOrder").length()<=0)? (rdef.isMultiplePieOrderByColumn() ?" checked": (rdef.isMultiplePieOrderByRow()?"":" checked")):"") %>>Table By Column
		</font></td>
		<td>
		  <input type="checkbox" name="multiplePieOrderInRunPage" value="Y"<%= AppUtils.getRequestNvlValue(request, "multiplePieOrderInRunPage").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "multiplePieOrderInRunPage").length()<=0)?(rdef.displayPieOrderinRunPage()?" checked":""):"") %>> Display in run page
		</td>  
		
	</tr>
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Label Options</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="multiplePieLabelDisplay" value="percentage" 
			   <%= AppUtils.getRequestNvlValue(request, "multiplePieLabelDisplay").equals("percentage")?" checked": ((AppUtils.getRequestNvlValue(request, "multiplePieLabelDisplay").length()<=0)? (nvl(rdef.getMultiplePieLabelDisplay()).length() > 0 ? (rdef.getMultiplePieLabelDisplay().equals("percentage")?" checked":""):" checked"):"") %>>Display Percentage
			<input type=radio name="multiplePieLabelDisplay" value="value" 
			 <%= AppUtils.getRequestNvlValue(request, "multiplePieLabelDisplay").equals("value")?" checked": ((AppUtils.getRequestNvlValue(request, "multiplePieLabelDisplay").length()<=0)? (nvl(rdef.getMultiplePieLabelDisplay()).length() > 0 ? (rdef.getMultiplePieLabelDisplay().equals("value")?" checked":""):""):"") %>>Display Value
			<input type=radio name="multiplePieLabelDisplay" value="novalue" 
			 <%= AppUtils.getRequestNvlValue(request, "multiplePieLabelDisplay").equals("novalue")?" checked": ((AppUtils.getRequestNvlValue(request, "multiplePieLabelDisplay").length()<=0)? (nvl(rdef.getMultiplePieLabelDisplay()).length() > 0 ? (rdef.getMultiplePieLabelDisplay().equals("novalue")?" checked":""):" checked"):"") %>>Blank
		</font>
		</td>	 
		<td>
		  <input type="checkbox" name="multiplePieLabelDisplayInRunPage" value="Y"<%= AppUtils.getRequestNvlValue(request, "multiplePieLabelDisplayInRunPage").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "multiplePieLabelDisplayInRunPage").length()<=0)?(rdef.displayPieLabelDisplayinRunPage()?" checked":""):"") %>> Display in run page
		</td>  

	</tr>
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Display Options</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="chartDisplay" value="3D" <%= AppUtils.getRequestNvlValue(request, "chartDisplay").equals("3D")?" checked": ((AppUtils.getRequestNvlValue(request, "chartDisplay").length()<=0)? (rdef.isChartDisplayIn3D()?" checked":""):"") %>>Display in 3D
			<input type=radio name="chartDisplay" value="normal" <%= AppUtils.getRequestNvlValue(request, "chartDisplay").equals("normal")?" checked": ((AppUtils.getRequestNvlValue(request, "chartDisplay").length()<=0)? (!rdef.isChartDisplayIn3D()?" checked":""):"") %>>Display in 2D
			</font></td>
		<td>
		  <input type="checkbox" name="chartDisplayInRunPage" value="Y"<%= AppUtils.getRequestNvlValue(request, "chartDisplayInRunPage").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "chartDisplayInRunPage").length()<=0)?(rdef.displayChartDisplayinRunPage()?" checked":""):"") %>> Display in run page
		</td>  

	</tr>
	</table>
	</div>
	
	<div id="regressionChartDiv" style="display:none;">
		<table width="100%" id = "regressionDiv">
			<tr>
		<td class=rbg2 align="right" width="20%" height="30"><font class=rtabletext>Regression Type </font></td> 
		<td class=rbg3 colspan=4 align="left" width="80%"><font class=rtabletext>
					<input type=checkbox name="LinearRegressionType" value="Y" <%= (AppUtils.getRequestNvlValue(request, "regressionType").trim().length()>0? (AppUtils.getRequestNvlValue(request, "regressionType").charAt(0) == 'Y'? " checked ":""): (nvl(rdef.getLinearRegression()).length()>0 && rdef.getLinearRegression().charAt(0) == 'Y' ? " checked ":" checked ")) %>><font class=rtabletext>Linear</font>
					<input type=checkbox name="ExpRegressionType" value="Y" <%= (AppUtils.getRequestNvlValue(request, "regressionType").trim().length()>1? (AppUtils.getRequestNvlValue(request, "regressionType").charAt(1) == 'Y'? " checked ":""): (nvl(rdef.getLinearRegression()).length()>1 && rdef.getLinearRegression().charAt(1) == 'Y' ? " checked ":" ")) %>><font class=rtabletext>Exponential</font>
					<input type="hidden" name="regressionType" value=""/>
		</font>  </td>
    		</tr>
    		<tr>
    		 <td class=rbg2 align="right" width="20%" height="30"><font class=rtabletext>Linear Regression Color </font></td>
				<td class=rbg3 align="left" colspan=4 width=80% nowrap><font class=rtabletext>
					<%	String linearColor = nvl(rdef.getLinearRegressionColor()); %>
					<select name="valueLinearRegressionColor">
						<option value=""<%=        linearColor.equals("")       ?" selected":"" %>>Color: Default
						<option value="#00FFFF"<%= linearColor.equals("#00FFFF")?" selected":"" %>>Aqua
						<option value="#000000"<%= linearColor.equals("#000000")?" selected":"" %>>Black
						<option value="#0000FF"<%= linearColor.equals("#0000FF")?" selected":"" %>>Blue
						<option value="#FF00FF"<%= linearColor.equals("#FF00FF")?" selected":"" %>>Fuchsia
						<option value="#808080"<%= linearColor.equals("#808080")?" selected":"" %>>Gray
						<option value="#008000"<%= linearColor.equals("#008000")?" selected":"" %>>Green
						<option value="#00FF00"<%= linearColor.equals("#00FF00")?" selected":"" %>>Lime
						<option value="#800000"<%= linearColor.equals("#800000")?" selected":"" %>>Maroon
						<option value="#000080"<%= linearColor.equals("#000080")?" selected":"" %>>Navy
						<option value="#808000"<%= linearColor.equals("#808000")?" selected":"" %>>Olive
						<option value="#FF9900"<%= linearColor.equals("#FF9900")?" selected":"" %>>Orange
						<option value="#800080"<%= linearColor.equals("#800080")?" selected":"" %>>Purple
						<option value="#FF0000"<%= linearColor.equals("#FF0000")?" selected":"" %>>Red
						<option value="#C0C0C0"<%= linearColor.equals("#C0C0C0")?" selected":"" %>>Silver
						<option value="#008080"<%= linearColor.equals("#008080")?" selected":"" %>>Teal
						<option value="#FFFFFF"<%= linearColor.equals("#FFFFFF")?" selected":"" %>>White
						<option value="#FFFF00"<%= linearColor.equals("#FFFF00")?" selected":"" %>>Yellow
					</select>
				</font></td>
    		  
    		</tr>
    		<tr>
    		 <td class=rbg2 align="right" width="20%" height="30"><font class=rtabletext>Exponential Regression Color </font></td>
				<td class=rbg3 align="left" colspan=4 width=80% nowrap><font class=rtabletext>
					<%	String expColor = nvl(rdef.getExponentialRegressionColor()); %>
					<select name="valueExponentialRegressionColor">
						<option value=""<%=        expColor.equals("")       ?" selected":"" %>>Color: Default
						<option value="#00FFFF"<%= expColor.equals("#00FFFF")?" selected":"" %>>Aqua
						<option value="#000000"<%= expColor.equals("#000000")?" selected":"" %>>Black
						<option value="#0000FF"<%= expColor.equals("#0000FF")?" selected":"" %>>Blue
						<option value="#FF00FF"<%= expColor.equals("#FF00FF")?" selected":"" %>>Fuchsia
						<option value="#808080"<%= expColor.equals("#808080")?" selected":"" %>>Gray
						<option value="#008000"<%= expColor.equals("#008000")?" selected":"" %>>Green
						<option value="#00FF00"<%= expColor.equals("#00FF00")?" selected":"" %>>Lime
						<option value="#800000"<%= expColor.equals("#800000")?" selected":"" %>>Maroon
						<option value="#000080"<%= expColor.equals("#000080")?" selected":"" %>>Navy
						<option value="#808000"<%= expColor.equals("#808000")?" selected":"" %>>Olive
						<option value="#FF9900"<%= expColor.equals("#FF9900")?" selected":"" %>>Orange
						<option value="#800080"<%= expColor.equals("#800080")?" selected":"" %>>Purple
						<option value="#FF0000"<%= expColor.equals("#FF0000")?" selected":"" %>>Red
						<option value="#C0C0C0"<%= expColor.equals("#C0C0C0")?" selected":"" %>>Silver
						<option value="#008080"<%= expColor.equals("#008080")?" selected":"" %>>Teal
						<option value="#FFFFFF"<%= expColor.equals("#FFFFFF")?" selected":"" %>>White
						<option value="#FFFF00"<%= expColor.equals("#FFFF00")?" selected":"" %>>Yellow
					</select>
				</font></td>
    		  
    		</tr>
			<tr>
				<td class=rbg2 align="right" width="20%" height="30"><font class=rtabletext>Regression Point customization (in Numbers)</font></td> 
 				<td class=rbg3 colspan=4 align="left" width="80%"><font class=rtabletext>
 				  <input type=text name="regressionPointCustomization" value="<%=nvl(rdef.getCustomizedRegressionPoint(),"")%>">
 				</font></td>   		
    		
    	</table>
    	
    </div>	

	<div id="CustomizingYAxisDiv" style="display:none;">
		<table width="100%">
		  	<tr>
				<td class=rbg2 align="right" width="20%" height="30"><font class=rtabletext>Range Axis (Minimum Range)</font></td> 
 				<td class=rbg3 colspan=4 align="left" width="80%"><font class=rtabletext>
 				  <input type=text name="yAxisLowerLimit" value="<%=nvl(rdef.getRangeAxisLowerLimit(),"")%>">
 				</font></td>
 				</tr>
 				<tr>
				<td class=rbg2 align="right" width="20%" height="30"><font class=rtabletext>Range Axis (Maximum Range)</font></td> 
 				<td class=rbg3 colspan=4 align="left" width="80%"><font class=rtabletext>
 				  <input type=text name="yAxisUpperLimit" value="<%=nvl(rdef.getRangeAxisUpperLimit(),"")%>">
 				</font></td>
			</tr> 				   		
		</table>
	</div>

	
	<div id="BarLineChartOptions" style="display:none;">
	<table width="100%">
	<tr>
		<td colspan="3"><font class=rtabletext>Additional Bar/Line Chart options:</font></td> 
	</tr>
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Orientation </font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="chartOrientation" value="vertical" <%= AppUtils.getRequestNvlValue(request, "chartOrientation").equals("vertical")?" checked": ((AppUtils.getRequestNvlValue(request, "chartOrientation").length()<=0)? (rdef.isVerticalOrientation() ?" checked": (rdef.isVerticalOrientation()?" checked":"")):"") %>>Vertical
			<input type=radio name="chartOrientation" value="horizontal" <%= AppUtils.getRequestNvlValue(request, "chartOrientation").equals("horizontal") ? " checked":((AppUtils.getRequestNvlValue(request, "chartOrientation").length()<=0)? (rdef.isHorizontalOrientation() ?" checked": (rdef.isHorizontalOrientation()?" checked":"")):"") %>>Horizontal
		</font></td>
		<td>
		  <input type="checkbox" name="chartOrientationInRunPage" value="Y"<%= AppUtils.getRequestNvlValue(request, "chartOrientationInRunPage").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "chartOrientationInRunPage").length()<=0)?(rdef.displayChartOrientationInRunPage()?" checked":""):"") %>> Display in run page
		</td>  
		
	</tr>
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Display Options</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="chartDisplay" value="3D" <%= AppUtils.getRequestNvlValue(request, "chartDisplay").equals("3D")?" checked": ((AppUtils.getRequestNvlValue(request, "chartDisplay").length()<=0)? (rdef.isChartDisplayIn3D()?" checked":""):"") %>>Display in 3D
			<input type=radio name="chartDisplay" value="normal" <%= AppUtils.getRequestNvlValue(request, "chartDisplay").equals("normal")?" checked": ((AppUtils.getRequestNvlValue(request, "chartDisplay").length()<=0)? (!rdef.isChartDisplayIn3D()?" checked":""):"") %>>Display in 2D
			</font></td>
		<td>
		  <input type="checkbox" name="chartDisplayInRunPage" value="Y"<%= AppUtils.getRequestNvlValue(request, "chartDisplayInRunPage").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "chartDisplayInRunPage").length()<=0)?(rdef.displayChartDisplayinRunPage()?" checked":""):"") %>> Display in run page
		</td>  
	</tr>
	</table>
	</div>
	<div id="BarChartOptions" style="display:none;">
	<table width="100%">
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Renderer for Secondary Axis</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="secondaryChartRenderer" value="line" 
			   <%= AppUtils.getRequestNvlValue(request, "secondaryChartRenderer").equals("line")?" checked": ((AppUtils.getRequestNvlValue(request, "secondaryChartRenderer").length()<=0)? ((nvl(rdef.getSecondaryChartRenderer()).length() > 0) ? (rdef.getSecondaryChartRenderer().equals("line")?" checked":""):" checked"):"") %>>Line chart Renderer
			<input type=radio name="secondaryChartRenderer" value="level" 
			 <%= AppUtils.getRequestNvlValue(request, "secondaryChartRenderer").equals("level")?" checked": ((AppUtils.getRequestNvlValue(request, "secondaryChartRenderer").length()<=0)? ((nvl(rdef.getSecondaryChartRenderer()).length() > 0) ? (rdef.getSecondaryChartRenderer().equals("level")?" checked":""):""):"") %>>Level chart Renderer
		</font>
		</td>	 
		<td>
		  <input type="checkbox" name="secondaryChartRendererInRunPage" value="Y"<%= AppUtils.getRequestNvlValue(request, "secondaryChartRendererInRunPage").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "secondaryChartRendererInRunPage").length()<=0)?(rdef.displaySecondaryChartRendererInRunPage()?" checked":""):"") %>> Display in run page
		</td>  

	</tr>
	</table>
	</div>
	
	<div id="stackBarChartOptions" style="display:none;">
	<table width="100%">
	<tr>
		<td colspan="3"><font class=rtabletext>Additional Bar Chart options:</font></td> 
	</tr>
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Overlay Item Value:</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="overlayItemValue" value="Y" 
			   <%= AppUtils.getRequestNvlValue(request, "overlayItemValue").equals("Y")?" checked": ((AppUtils.getRequestNvlValue(request, "overlayItemValue").length()<=0)? ((nvl(rdef.getOverlayItemValueOnStackBar()).length() > 0) ? (rdef.getOverlayItemValueOnStackBar().equals("Y")?" checked":""):" checked"):"") %>>Yes
			<input type=radio name="overlayItemValue" value="N" 
			 <%= AppUtils.getRequestNvlValue(request, "overlayItemValue").equals("N")?" checked": ((AppUtils.getRequestNvlValue(request, "overlayItemValue").length()<=0)? ((nvl(rdef.getOverlayItemValueOnStackBar()).length() > 0) ? (rdef.getOverlayItemValueOnStackBar().equals("N")?" checked":""):""):"") %>>No
		</font>
		</td>	 
	</tr>
	</table>
	</div>

	
	<div id="TimeDifferenceChartOptions" style="display:none;">
	<table width="100%">
	<tr>
		<td colspan="3"><font class=rtabletext>Additional Time Difference Chart options:</font></td> 
	</tr>
	<tr>
		<td class=rbg2 align="right" width="15%" height="30"><font class=rtabletext>Interval Marker </font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type="text" size="10" maxlength="10" name="intervalFromDate" value="<%=rdef.getIntervalFromdate()%>" toolTipText="Enter the starting interval date">
			<img src="<%= AppUtils.getImgFolderURL() %>calender_icon.gif" align=absmiddle border=0 width="20" height="20" onClick="oCalendar = new CalendarPopup('calendarDiv', 'calendarFrame');oCalendar.setCssPrefix('raptor');oCalendar.select(document.getElementById('intervalFromDate'),event,'MM/dd/yyyy'); return false;"  style="cursor:hand">
			<input type="text" size="10" maxlength="10" name="intervalToDate" value="<%=rdef.getIntervalTodate()%>" toolTipText="Enter the Ending interval date">
			<img src="<%= AppUtils.getImgFolderURL() %>calender_icon.gif" align=absmiddle border=0 width="20" height="20" onClick="oCalendar = new CalendarPopup('calendarDiv', 'calendarFrame');oCalendar.setCssPrefix('raptor');oCalendar.select(document.getElementById('intervalToDate'),event,'MM/dd/yyyy'); return false;"  style="cursor:hand">
			<input type="text" size="50" maxlength="100" name="intervalLabel" value="<%=rdef.getIntervalLabel()%>" toolTipText="Enter the interval Label">			
		</font></td>
		<td>
		  <input type="checkbox" name="intervalInputInRunPage" value="Y"<%= AppUtils.getRequestNvlValue(request, "intervalInputInRunPage").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "intervalInputInRunPage").length()<=0)?(rdef.displayIntervalInputInRunPage()?" checked":""):"") %>> Display in run page
		</td>  
		
	</tr>
	</table>
	</div>

	<div id="chartOptions" style="display:none;">
	<table width="100%">
	<tr>
		<td colspan="3"><font class=rtabletext>Additional chart options:</font></td> 
	</tr>
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Legend Position</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="legendPosition" value="bottom" <%= AppUtils.getRequestNvlValue(request, "legendPosition").equals("bottom")?" checked": ((AppUtils.getRequestNvlValue(request, "legendPosition").length()<=0)? (nvl(rdef.getLegendPosition()).length()>0 ? (rdef.getLegendPosition().equals("bottom")?" checked":""):" checked"):"") %>>Bottom
			<input type=radio name="legendPosition" value="top" <%= AppUtils.getRequestNvlValue(request, "legendPosition").equals("top")?" checked": ((AppUtils.getRequestNvlValue(request, "legendPosition").length()<=0)? (nvl(rdef.getLegendPosition()).length()>0 ? (rdef.getLegendPosition().equals("top")?" checked":""):""):"") %>>Top
			<input type=radio name="legendPosition" value="left" <%= AppUtils.getRequestNvlValue(request, "legendPosition").equals("left")?" checked": ((AppUtils.getRequestNvlValue(request, "legendPosition").length()<=0)? (nvl(rdef.getLegendPosition()).length()>0 ? (rdef.getLegendPosition().equals("left")?" checked":""):""):"") %>>Left
			<input type=radio name="legendPosition" value="right" <%= AppUtils.getRequestNvlValue(request, "legendPosition").equals("right")?" checked": ((AppUtils.getRequestNvlValue(request, "legendPosition").length()<=0)? (nvl(rdef.getLegendPosition()).length()>0 ? (rdef.getLegendPosition().equals("right")?" checked":""):""):"") %>>Right
			</font></td>
		<td>
			&nbsp;
		</td>
	</tr>
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Hide Tooltips</font></td>
		<td> 
		  <input type="checkbox" name="hideTooltips" value="Y"<%= AppUtils.getRequestNvlValue(request, "hideToolTips").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "hideToolTips").length()<=0)?(rdef.hideChartToolTips()?" checked":""):"") %>> &nbsp;
		</td>
		<td> &nbsp;</td>  
	</tr>
	<tr id="keepAsString">
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Keep Domain Axis Value As String</font></td>
		<td> 
		  <input type="checkbox" name="keepAsString" value="Y"<%= AppUtils.getRequestNvlValue(request, "keepAsString").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "keepAsString").length()<=0)?(rdef.keepDomainAxisValueInChartAsString()?" checked":""):"") %>> &nbsp;
		</td>
		<td> &nbsp;</td>  
	</tr>
	
	<tr>
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Hide Legend</font></td>
		<td> 
		  <input type="checkbox" name="hideLegend" value="Y"<%= AppUtils.getRequestNvlValue(request, "hideLegend").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "hideLegend").length()<=0)?(rdef.hideChartLegend()?" checked":""):"") %>> &nbsp;
		</td>
		<td>
		  <input type="checkbox" name="showLegendDisplayOptionsInRunPage" value="Y"<%= AppUtils.getRequestNvlValue(request, "showLegendDisplayOptionsInRunPage").equals("Y")? " checked":((AppUtils.getRequestNvlValue(request, "showLegendDisplayOptionsInRunPage").length()<=0)?(rdef.showLegendDisplayOptionsInRunPage()?" checked":""):"") %>> Display in run page
		</td>  
	</tr>
	<tr id ="maxLabelsInDomainAxisForOtherCharts">
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Maximum Number of Labels in Domain Axis:</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=text name="maxLabelsInDomainAxis" class=rtabletext value="<%= AppUtils.getRequestNvlValue(request, "maxLabelsInDomainAxis").trim().length()>0?
					  AppUtils.getRequestNvlValue(request, "maxLabelsInDomainAxis"): 
						  ((AppUtils.getRequestNvlValue(request, "maxLabelsInDomainAxis").length()<=0)?
								   (nvl(rdef.getMaxLabelsInDomainAxis()).length()>0 ? rdef.getMaxLabelsInDomainAxis():"1"):"1")%>" maxlength="2" size="2">
			</font>
		</td>
	</tr>
	<tr id ="LabelAngleForTimeSeriesCharts">
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Legend Label Angle</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="labelAngle" value="UP45" <%= AppUtils.getRequestNvlValue(request, "labelAngle").equals("UP45")?" checked": ((AppUtils.getRequestNvlValue(request, "labelAngle").length()<=0)? (nvl(rdef.getLegendLabelAngle()).length()>0 ? (rdef.getLegendLabelAngle().equals("UP45")?" checked":""):" checked"):"") %>>Standard
			<input type=radio name="labelAngle" value="UP90" <%= AppUtils.getRequestNvlValue(request, "labelAngle").equals("UP90")?" checked": ((AppUtils.getRequestNvlValue(request, "labelAngle").length()<=0)? (nvl(rdef.getLegendLabelAngle()).length()>0 ? (rdef.getLegendLabelAngle().equals("UP90")?" checked":""):" checked"):"") %>>90 &deg;
			</font></td>
		<td>
		   &nbsp;
		</td>  
	</tr>
	<tr id ="LabelAngleForOtherCharts">
		<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Legend Label Angle</font></td> 
		<td class=rbg3 colspan=4 align="left" width="50%"><font class=rtabletext>
			<input type=radio name="labelAngle" value="UP45" <%= AppUtils.getRequestNvlValue(request, "labelAngle").equals("UP45")?" checked": ((AppUtils.getRequestNvlValue(request, "labelAngle").length()<=0)? (nvl(rdef.getLegendLabelAngle()).length()>0 ? (rdef.getLegendLabelAngle().equals("UP45")?" checked":""):" checked"):"") %>>Up 45 &deg;
			<input type=radio name="labelAngle" value="UP90" <%= AppUtils.getRequestNvlValue(request, "labelAngle").equals("UP90")?" checked": 
				   ((AppUtils.getRequestNvlValue(request, "labelAngle").length()<=0)?
						   (nvl(rdef.getLegendLabelAngle()).length()>0 ? 
								   (rdef.getLegendLabelAngle().equals("UP90")?" checked":""):""):"") %>>Up 90 &deg;
			<input type=radio name="labelAngle" value="DOWN45" <%= AppUtils.getRequestNvlValue(request, "labelAngle").equals("DOWN45")?" checked": ((AppUtils.getRequestNvlValue(request, "labelAngle").length()<=0)? (nvl(rdef.getLegendLabelAngle()).length()>0 ? (rdef.getLegendLabelAngle().equals("DOWN45")?" checked":""):" checked"):"") %>>Down 45 &deg;
			<input type=radio name="labelAngle" value="DOWN90" <%= AppUtils.getRequestNvlValue(request, "labelAngle").equals("DOWN90")?" checked": ((AppUtils.getRequestNvlValue(request, "labelAngle").length()<=0)? (nvl(rdef.getLegendLabelAngle()).length()>0 ? (rdef.getLegendLabelAngle().equals("DOWN90")?" checked":""):" checked"):"") %>>Down 90 &deg;
			<input type=radio name="labelAngle" value="STANDARD" <%= AppUtils.getRequestNvlValue(request, "labelAngle").equals("STANDARD")?" checked": ((AppUtils.getRequestNvlValue(request, "labelAngle").length()<=0)? (nvl(rdef.getLegendLabelAngle()).length()>0 ? (rdef.getLegendLabelAngle().equals("STANDARD")?" checked":""):" checked"):"") %>>Standard
			</font></td>
		<td>
		   &nbsp;
		</td>  
	</tr>	
	</table>
	</div>
	
	<div id="drillDownOptions" style="display:none;">
		<table width="100%">
			<tr>
				<td colspan="2"><font class=rtabletext>Drilldown options:</font></td> 
			</tr>
			<tr>
			<td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext>Drilldown report:</font></td>
			<td class=rbg3 align="left" width="50%"><font class=rtabletext>
			   <select name="drillDownReport" onChange="document.forma.<%= AppConstants.RI_WIZARD_ACTION %>.value='GET_DRILLDOWN_FORMFIELDS'; document.forma.submit();">
			   <option value="-1">Please Select</option>
			   <%
				Vector publicReportIdNames = DataCache.getPublicReportIdNames();
				for(int i=0; i<publicReportIdNames.size(); i++) { 
					IdNameValue reportIdName = (IdNameValue) publicReportIdNames.get(i); %>
					<option value="<%= reportIdName.getId() %>"<%= (nvl(rdef.getDrillReportIdForChart()).equals(reportIdName.getId()))?" selected":"" %>>Public Report: <%= reportIdName.getName() %></option>
			<%	} %>
			   <%
				Vector groupReportIdNames = DataCache.getGroupAccessibleReportIdNames(AppUtils.getUserID(request),AppUtils.getUserRoles(request));
				for(int j=0; j<groupReportIdNames.size(); j++) { 
					IdNameValue reportIdName = (IdNameValue) groupReportIdNames.get(j); %>
						<option value="<%= reportIdName.getId() %>"<%= (nvl(rdef.getDrillReportIdForChart()).equals(reportIdName.getId()))?" selected":"" %>>Group Report: <%= reportIdName.getName() %></option>
			    <% } %>	
			    <%
			    Vector privateReportIdNames = DataCache.getPrivateAccessibleReportIdNames(AppUtils.getUserID(request),AppUtils.getUserRoles(request));
				for(int j=0; j<privateReportIdNames.size(); j++) { 
					IdNameValue reportIdName = (IdNameValue) privateReportIdNames.get(j); %>
						<option value="<%= reportIdName.getId() %>"<%= (nvl(rdef.getDrillReportIdForChart()).equals(reportIdName.getId()))?" selected":"" %>>Private Report: <%= reportIdName.getName() %></option>
	    <% } %>			
			    		
			   </select>
			 </font></td></tr>
			 <%
			 if(nvl(rdef.getDrillReportIdForChart()).length()>0) {
			 	ReportRuntime ddRr = (new ReportHandler()).loadReportRuntime(request, rdef.getDrillReportIdForChart(),
						false);
		        	if (ddRr != null)
		        		request.setAttribute("CHART_FORMFIELDS", ddRr.getReportFormFields());
			 }
			 %> 
			 
			 
           <% if(request.getAttribute("CHART_FORMFIELDS")!=null) { %>
				 <% ReportFormFields ddReportFormFields = (ReportFormFields) request.getAttribute("CHART_FORMFIELDS");  
				  if(ddReportFormFields!=null) {            
					   	for(ddReportFormFields.resetNext(); ddReportFormFields.hasNext(); ) { 
					   		FormField ff = ddReportFormFields.getNext();
					   		if(!ff.getFieldType().equals(FormField.FFT_BLANK)) { 
					   			
					   	%>
					   		<tr>
					   		  <td class=rbg2 align="right" width="25%" height="30"><font class=rtabletext><%=ff.getFieldDisplayName()%>:</font></td>
					   		  <td class=rbg3 align="left" width="50%">
					   		  <font class=rtabletext>
					   				<select name="drillDown_<%=ff.getFieldName()%>">
					   					<option value="<%= ff.getFieldName() %>_xaxis" <%= rdef.isChartDrillDownContainsName(ff.getFieldName()+"_xaxis")?" selected":""%>> X Axis </option>
					   					<option value="<%= ff.getFieldName() %>_yaxis" <%= rdef.isChartDrillDownContainsName(ff.getFieldName()+"_yaxis")?" selected":"" %>> Y Axis </option>
					   					<option value="<%= ff.getFieldName() %>_series" <%= rdef.isChartDrillDownContainsName(ff.getFieldName()+"_series")?" selected":"" %>> Series </option>
					   				</select>
					   		  </font>
					   		  </td>
					   		  </tr>		  
								<% }
					   	   }
				  }
           }
				  %>
						
								
	</div>	

	</td>
	</tr>

	
<%	}	// else (numColsCount==0)
%>
</table>
<br>

    <script language="javascript">
      refreshWizard();
    </script>
    
<script language="JavaScript">
<!--
<%	if(numColsCount>0) { %>
function checkValueColNew() {
	if(document.forma.valueColNew.selectedIndex==0)
		return false;
	
	var newColId = "";
	newColId = document.forma.valueColNew.options[document.forma.valueColNew.selectedIndex].value;
<%		for(int idx=1; idx<Math.max(chartValueCols.size(), 1)+1; idx++) { %>
	if(newColId==document.forma.valueCol<%= idx %>.options[document.forma.valueCol<%= idx %>.selectedIndex].value) {
		alert("A column cannot be used as Chart Values Column more than once.");
		document.forma.valueColNew.focus();
		return false;
	}	// if
<%		}	// for
%>
	
	return true;
}   // checkValueColNew
<%	} %>


function showAlertForTimeSeries() {
   var selectBox = document.forma.chartType;
   var selectedString = selectBox.options[selectBox.selectedIndex].value;
   refreshWizard();
   if(selectedString == "<%=AppConstants.GT_PIE_MULTIPLE%>") {
		//var contentIframe = window.parent.document.getElementById("content_Iframe");
		//contentIframe.style.height = contentIframe.clientHeight + 120; 
	    document.getElementById("multiplePieChartOptions").style.display="block";
   }
   else {
	  document.getElementById("multiplePieChartOptions").style.display="none";
   } 
   if(selectedString == "<%=AppConstants.GT_TIME_SERIES%>"){
	   document.getElementById("animatedDiv").style.display="block";
     return confirm("WARNING: Please make sure that the Domain Axis contains only\nDATE type of values, otherwise it will throw error.\nPress Ok to continue, or Cancel to re-examine the selection.");
   } else if (selectedString == "<%=AppConstants.GT_BAR_3D%>"){
	   document.getElementById("animatedDiv").style.display="block";
   } else if (selectedString == "<%=AppConstants.GT_PIE%>"){
	   document.getElementById("animatedDiv").style.display="block";
   } else if (selectedString == "<%=AppConstants.GT_PIE_3D%>"){
	   document.getElementById("animatedDiv").style.display="block";
   } else if (selectedString == "<%=AppConstants.GT_SCATTER%>"){
	   document.getElementById("animatedDiv").style.display="block";
   } else 
	   document.getElementById("animatedDiv").style.display="none";
   return true;
}
function dataValidate() {
	    if(document.forma.maxLabelsInDomainAxis!="") {
			var iVal = 0;
			iVal = parseInt(document.forma.maxLabelsInDomainAxis.value);
			if(isNaN(iVal)||iVal>100||iVal<=0) {
				alert("Maximum Labels in Domain Axis must be a valid integer between 1 and 100 (or blank).\nPlease correct.");
				document.forma.maxLabelsInDomainAxis.select();
				document.forma.maxLabelsInDomainAxis.focus();
				return;
			}	// if
			document.forma.maxLabelsInDomainAxis.value = ""+iVal;
	    }
	    
		if(document.forma.chartWidth.value!="") {
			var iVal = 0;
			iVal = parseInt(document.forma.chartWidth.value);
			if(isNaN(iVal)||iVal<100||iVal>1600) {
				alert("Chart Width must be a valid integer between 100 and 1600 (or blank).\nPlease correct the Chart Width.");
				document.forma.chartWidth.select();
				document.forma.chartWidth.focus();
				return;
			}	// if
			document.forma.chartWidth.value = ""+iVal;
		}	// if
	if(document.forma.chartHeight.value!="") {
		var iVal = 0;
		iVal = parseInt(document.forma.chartHeight.value);
		if(isNaN(iVal)||iVal<100||iVal>1600) {
			alert("Chart Height must be a valid integer between 100 and 1600 (or blank).\nPlease correct the Chart Height.");
			document.forma.chartHeight.select();
			document.forma.chartHeight.focus();
			return;
		}	// if
		document.forma.chartHeight.value = ""+iVal;
	}	// if
<%	if(chartValueCols.size()>1) 
		for(int ci=1; ci<chartValueCols.size(); ci++) { 
			for(int idx=ci+1; idx<chartValueCols.size()+1; idx++) { %>
	if(document.forma.valueCol<%= ci %>.options[document.forma.valueCol<%= ci %>.selectedIndex].value==document.forma.valueCol<%= idx %>.options[document.forma.valueCol<%= idx %>.selectedIndex].value) {
		alert("A column cannot be used as Chart Values Column more than once.");
		document.forma.valueCol<%= idx %>.focus();
		return false;
	}	// if
<%		}	// for
	}
	if(isSQLBased) { %>
	   var selectBox = document.forma.chartType;
	   var selectedString = selectBox.options[selectBox.selectedIndex].value;
		if(document.forma.chartType.selectedIndex>0) {
			   if(selectedString == "<%=AppConstants.GT_SCATTER%>" || selectedString == "<%=AppConstants.GT_REGRESSION%>") {
					if(document.forma.chartSeries.selectedIndex<=0) {
						alert (" Please choose category for this Chart Type." );
						return false;
					}
					if (selectedString == "<%=AppConstants.GT_REGRESSION%>") {
			             if(document.forma && document.forma.LinearRegressionType) {
			                 document.forma.regressionType.value = (document.forma.LinearRegressionType.checked?"Y":"N")+(document.forma.ExpRegressionType.checked?"Y":"N");
			                 if (!checkNonNegativeFloat(document.forma.regressionPointCustomization.value)) {
				                 alert("Please enter positive number for Customizing regression Point");
				                 return false;
			                 }
			                 
			             }
					}
			   }

				/*	if (selectedString == "<%=AppConstants.GT_STACKED_VERT_BAR%>" || selectedString == "<%=AppConstants.GT_STACKED_HORIZ_BAR%>" || selectedString == "<%=AppConstants.GT_STACKED_VERT_BAR_LINES%>"
					    || selectedString == "<%=AppConstants.GT_STACKED_HORIZ_BAR_LINES%>") {
						   var selectSeries = document.forma.chartSeries;
						   var selectedSeriesString = selectSeries.options[selectSeries.selectedIndex].value;
						   if(selectedSeriesString == -1) {
							   alert("Please select category for Stacked Chart. This is Mandatory.");
							   return false;
						   }
					    
					} */
					
		}

		if (!checkNonNegativeFloat(document.forma.yAxisLowerLimit.value)) {
	        alert("Please enter positive number for Range Axis (Minimum Range) ");
	        return false;
		}

		if (!checkNonNegativeFloat(document.forma.yAxisUpperLimit.value)) {
	        alert("Please enter positive number for Range Axis (Maximum Range) ");
	        return false;
		}
		
		if(document.forma.chartType.selectedIndex>0)
			return confirm("WARNING: Please make sure that the Values column contains only\nnumeric values, otherwise your chart will not be properly displayed.\nPress Ok to continue, or Cancel to re-examine the selection.");
	<%  } %>

	
	
	return true;
}   // dataValidate
//-->
</script>

<%!
	private String nvl(String s)                  { return (s==null)?"":s; }
	private String nvl(String s, String sDefault) {	return nvl(s).equals("")?sDefault:s; } 
%>