You are on page 1of 15

function MasterMeterForm_Val()

{
//debugger;
//REPORTING PROCEDURES
var ReportingProcedure_LName=[];
ReportingProcedure_LName[0]="191.5";
ReportingProcedure_LName[1]="NMAC18.60.2.8";
ReportingProcedure_LName[2]="191.9";
var ReportingProcedure_Os=[];
ReportingProcedure_Os[0]=Xrm.Page.getAttribute("nmprc_49cfrpart1915").ge
tSelectedOption().value;
ReportingProcedure_Os[1]=Xrm.Page.getAttribute("nmprc_49cfrpart191namc")
.getSelectedOption().value;
ReportingProcedure_Os[2]=Xrm.Page.getAttribute("nmprc_49cfrpart1911919")
.getSelectedOption().value;
var ReportingProcedure_getLabel=" ";
for (var x=0;x<3;x++)
{
if(ReportingProcedure_Os[x]==2)
{
if(ReportingProcedure_getLabel==" ")
{
ReportingProcedure_getLabel=ReportingProcedure_L
Name[x];
}
else
{
ReportingProcedure_getLabel=ReportingProcedure_g
etLabel+","+ReportingProcedure_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments18").setValue(ReportingProcedure_g
etLabel);
//ReportingProcedure Finished
//SERVICE LINES AND CUSTOMER NOTIFICATION PROCEDURES
var ServiceLine_LName=[];
ServiceLine_LName[0]=".16";
ServiceLine_LName[1]=".363";
ServiceLine_LName[2]=".365";
ServiceLine_LName[3]=".381";
ServiceLine_LName[4]=".383";
var ServiceLine_Os=[];
ServiceLine_Os[0]=Xrm.Page.getAttribute("nmprc_49cfrpart19216").getSelec
tedOption().value;
ServiceLine_Os[1]=Xrm.Page.getAttribute("nmprc_49cfrpart192363").getSele
ctedOption().value;
ServiceLine_Os[2]=Xrm.Page.getAttribute("nmprc_49cfrpart192365").getSele
ctedOption().value;
ServiceLine_Os[3]=Xrm.Page.getAttribute("nmprc_49cfrpart192381").getSele
ctedOption().value;
ServiceLine_Os[4]=Xrm.Page.getAttribute("nmprc_49cfrpart192383").getSele
ctedOption().value;

var ServiceLine_getLabel=" ";


for(var x=0;x<5;x++)
{
if(ServiceLine_Os[x]==2)
{
if(ServiceLine_getLabel==" ")
{
ServiceLine_getLabel=ServiceLine_LName[x];
}
else
{
ServiceLine_getLabel=ServiceLine_getLabel+","+Se
rviceLine_LName[x];
}
}
}
//Xrm.Page.getAttribute("nmprc_jcomments1").setValue(ServiceLine_getLabe
l);
//ServiceLine Finished
//NORMAL OPERATING and MAINTENANCE PROCEDURES
var NormalOperating_LName=[];
NormalOperating_LName[0]=".605(a)";
NormalOperating_LName[1]=".605(b)(3)";
NormalOperating_LName[2]=".605(b)(8)";
NormalOperating_LName[3]=".605(b)(9)";
NormalOperating_LName[4]=".605(b)(11)";
NormalOperating_LName[5]=".627";
NormalOperating_LName[6]=".629";
NormalOperating_LName[7]=".629a";
NormalOperating_LName[8]=".629b";
var NormalOperating_Os=[];
NormalOperating_Os[0]=Xrm.Page.getAttribute("nmprc_nomp605a").getSelecte
dOption().value;
NormalOperating_Os[1]=Xrm.Page.getAttribute("nmprc_nomp605b3").getSelect
edOption().value;
NormalOperating_Os[2]=Xrm.Page.getAttribute("nmprc_nomp605b8").getSelect
edOption().value;
NormalOperating_Os[3]=Xrm.Page.getAttribute("nmprc_nomp605b9").getSelect
edOption().value;
NormalOperating_Os[4]=Xrm.Page.getAttribute("nmprc_nomp605b11").getSelec
tedOption().value;
NormalOperating_Os[5]=Xrm.Page.getAttribute("nmprc_nomp627").getSelected
Option().value;
NormalOperating_Os[6]=Xrm.Page.getAttribute("nmprc_nomp629").getSelected
Option().value;
NormalOperating_Os[7]=Xrm.Page.getAttribute("nmprc_nomp629a").getSelecte
dOption().value;
NormalOperating_Os[8]=Xrm.Page.getAttribute("nmprc_nomp629b").getSelecte
dOption().value;
var NormalOperating_getLabel=" ";
for(var x=0;x<9;x++)
{
if(NormalOperating_Os[x]==2)
{
if(NormalOperating_getLabel==" ")

{
NormalOperating_getLabel=NormalOperating_LName[x
];
}
else
{
NormalOperating_getLabel=NormalOperating_getLabe
l+","+NormalOperating_LName[x];
}
}
}
NormalOperating_getLabel=NormalOperating_getLabel+ServiceLine_getLabel;
Xrm.Page.getAttribute("nmprc_jcomments1").setValue(NormalOperating_getLa
bel);
//NormalOperating finished
//CONTINUING SURVEILLANCE PROCEDURES
var ContinuingServeillance_LName=[];
ContinuingServeillance_LName[0]=".613(a)";
var ContinuingServeillance_Os=[];
ContinuingServeillance_Os[0]=Xrm.Page.getAttribute("nmprc_csp").getSelec
tedOption().value;
var ContinuingServeillance_getLabel=" ";
for(var x=0;x<1;x++)
{
if(ContinuingServeillance_Os[x]==2)
{
if(ContinuingServeillance_getLabel==" ")
{
ContinuingServeillance_getLabel=ContinuingServei
llance_LName[x];
}
else
{
ContinuingServeillance_getLabel=ContinuingServei
llance_getLabel+","+ContinuingServeillance_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments2").setValue(ContinuingServeillanc
e_getLabel);
//ContinuingServeillance Finished
//EMERGENCY PROCEDURES
var Emergency_LName=[];
Emergency_LName[0]=".614(c)(6)";
Emergency_LName[1]="18.60.2.8(c)(6)";
Emergency_LName[2]=".615(a)(1)";
Emergency_LName[3]=".615(a)(2)";
Emergency_LName[4]=".615(a)(3)(1)";
Emergency_LName[5]=".615(a)(3)(2)";
Emergency_LName[6]=".615(a)(3)(3)";
Emergency_LName[7]=".615(a)(3)(4)";
Emergency_LName[8]=".615(a)(4)";
Emergency_LName[9]=".615(a)(5)";
Emergency_LName[10]=".615(a)(6)";
Emergency_LName[11]=".615(a)(7)";

Emergency_LName[12]=".615(a)(9)";
Emergency_LName[13]=".615(b)(1)";
Emergency_LName[14]=".615(b)(2)";
var Emergency_Os=[];
Emergency_Os[0]=Xrm.Page.getAttribute("nmprc_ep614c6").getSelectedOption
().value;
Emergency_Os[1]=Xrm.Page.getAttribute("nmprc_ep186028c6").getSelectedOpt
ion().value;
Emergency_Os[2]=Xrm.Page.getAttribute("nmprc_ep615a1").getSelectedOption
().value;
Emergency_Os[3]=Xrm.Page.getAttribute("nmprc_ep615a2").getSelectedOption
().value;
Emergency_Os[4]=Xrm.Page.getAttribute("nmprc_ep615a31").getSelectedOptio
n().value;
Emergency_Os[5]=Xrm.Page.getAttribute("nmprc_ep615a32").getSelectedOptio
n().value;
Emergency_Os[6]=Xrm.Page.getAttribute("nmprc_ep615a33").getSelectedOptio
n().value;
Emergency_Os[7]=Xrm.Page.getAttribute("nmprc_ep615a34").getSelectedOptio
n().value;
Emergency_Os[8]=Xrm.Page.getAttribute("nmprc_ep615a4").getSelectedOption
().value;
Emergency_Os[9]=Xrm.Page.getAttribute("nmprc_ep615a5").getSelectedOption
().value;
Emergency_Os[10]=Xrm.Page.getAttribute("nmprc_ep615a6").getSelectedOptio
n().value;
Emergency_Os[11]=Xrm.Page.getAttribute("nmprc_ep616a7").getSelectedOptio
n().value;
Emergency_Os[12]=Xrm.Page.getAttribute("nmprc_ep616a9").getSelectedOptio
n().value;
Emergency_Os[13]=Xrm.Page.getAttribute("nmprc_ep615b1").getSelectedOptio
n().value;
Emergency_Os[14]=Xrm.Page.getAttribute("nmprc_ep615b2").getSelectedOptio
n().value;
var Emergency_getLabel=" ";
for(var x=0;x<15;x++)
{
if(Emergency_Os[x]==2)
{
if(Emergency_getLabel==" ")
{
Emergency_getLabel=Emergency_LName[x];
}
else
{
Emergency_getLabel=Emergency_getLabel+","+Emerge
ncy_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments3").setValue(Emergency_getLabel);
//Emergency Finished
//PUBLIC AWARENESS PROGRAM PROCEDURES
var PublicAwar_LName=[];
PublicAwar_LName[0]=".616(g)";
PublicAwar_LName[1]=".616(j)";

var PublicAwar_Os=[];
PublicAwar_Os[0]=Xrm.Page.getAttribute("nmprc_papp616g").getSelectedOpti
on().value;
PublicAwar_Os[1]=Xrm.Page.getAttribute("nmprc_papp616j").getSelectedOpti
on().value;
var PublicAwar_getLabel=" ";
for(var x=0;x<2;x++)
{
if(PublicAwar_Os[x]==2)
{
if(PublicAwar_getLabel==" ")
{
PublicAwar_getLabel=PublicAwar_LName[x];
}
else
{
PublicAwar_getLabel=PublicAwar_getLabel+","+Publ
icAwar_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments4").setValue(PublicAwar_getLabel);
//PublicAwar Finished
//Investigation of failures Procedures
var InvestigateFailure_LName=[];
InvestigateFailure_LName[0]=".617";
var InvestigateFailure_Os=[];
InvestigateFailure_Os[0]=Xrm.Page.getAttribute("nmprc_iofp617").getSelec
tedOption().value;
var InvestigateFailure_getLabel=" ";
for(var x=0;x<1;x++)
{
if(InvestigateFailure_Os[x]==2)
{
if(InvestigateFailure_getLabel==" ")
{
InvestigateFailure_getLabel=InvestigateFailure_L
Name[x];
}
else
{
InvestigateFailure_getLabel=InvestigateFailure_g
etLabel+","+InvestigateFailure_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments5").setValue(InvestigateFailure_ge
tLabel);
//InvestigateFailure Finished
//PRESSURE TEST PROCEDURES and ODORIZATION of GAS PROCEDURES
var PressureOdour_LName=[];

PressureOdour_LName[0]=".509,.511,.513";
PressureOdour_LName[1]=".625(a)";
PressureOdour_LName[2]=".625(f)";
var PressureOdour_Os=[];
PressureOdour_Os[0]=Xrm.Page.getAttribute("nmprc_ptp509511513").getSelec
tedOption().value;
PressureOdour_Os[1]=Xrm.Page.getAttribute("nmprc_ofgp625a").getSelectedO
ption().value;
PressureOdour_Os[2]=Xrm.Page.getAttribute("nmprc_ofgp625f").getSelectedO
ption().value;
var PressureOdour_getLabel=" ";
for(var x=0;x<3;x++)
{
if(PressureOdour_Os[x]==2)
{
if(PressureOdour_getLabel==" ")
{
PressureOdour_getLabel=PressureOdour_LName[x];
}
else
{
PressureOdour_getLabel=PressureOdour_getLabel+",
"+PressureOdour_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments6").setValue(PressureOdour_getLabe
l);
//PressureOdour Finished
//MAINTENANCE PROCEDURES
var Maintenance_LName=[];
Maintenance_LName[0]=".703(b)";
Maintenance_LName[1]="703(c)";
Maintenance_LName[2]="NMAC 18.60.2.12";
Maintenance_LName[3]=".751";
Maintenance_LName[4]=".751(a)";
Maintenance_LName[5]=".751(b)";
Maintenance_LName[6]=".751(c)";
var Maintenance_Os=[];
Maintenance_Os[0]=Xrm.Page.getAttribute("nmprc_mp703b").getSelectedOptio
n().value;
Maintenance_Os[1]=Xrm.Page.getAttribute("nmprc_mp703c").getSelectedOptio
n().value;
Maintenance_Os[2]=Xrm.Page.getAttribute("nmprc_mpnamc1860212").getSelect
edOption().value;
Maintenance_Os[3]=Xrm.Page.getAttribute("nmprc_mp751").getSelectedOption
().value;
Maintenance_Os[4]=Xrm.Page.getAttribute("nmprc_mp751a").getSelectedOptio
n().value;
Maintenance_Os[5]=Xrm.Page.getAttribute("nmprc_mp751b").getSelectedOptio
n().value;
Maintenance_Os[6]=Xrm.Page.getAttribute("nmprc_mp751c").getSelectedOptio
n().value;
var Maintenance_getLabel=" ";

for(var x=0;x<7;x++)
{
if(Maintenance_Os[x]==2)
{
if(Maintenance_getLabel==" ")
{
Maintenance_getLabel=Maintenance_LName[x];
}
else
{
Maintenance_getLabel=Maintenance_getLabel+","+Ma
intenance_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments7").setValue(Maintenance_getLabel)
;
//Maintenance Finished
//TEST REQUIREMENTS FOR REINSTATING SERVICE LINES
var TestReq_LName=[];
TestReq_LName[0]=".725(a)";
TestReq_LName[1]=".725(b)";
var TestReq_Os=[];
TestReq_Os[0]=Xrm.Page.getAttribute("nmprc_trfrsl725a").getSelectedOptio
n().value;
TestReq_Os[1]=Xrm.Page.getAttribute("nmprc_trfrsl725b").getSelectedOptio
n().value;
var TestReq_getLabel=" ";
for(var x=0;x<2;x++)
{
if(TestReq_Os[x]==2)
{
if(TestReq_getLabel==" ")
{
TestReq_getLabel=TestReq_LName[x];
}
else
{
TestReq_getLabel=TestReq_getLabel+","+TestReq_LN
ame[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments8").setValue(TestReq_getLabel);
//TestReq Finished
//ABANDONMENT or DEACTIVATION of FACILITIES PROCEDURES
var Abandon_LName=[];
Abandon_LName[0]="727(d)(1)";
Abandon_LName[1]="727(d)(2)";
Abandon_LName[2]="727(d)(3)";
var Abandon_Os=[];
Abandon_Os[0]=Xrm.Page.getAttribute("nmprc_adfp727d1").getSelectedOption
().value;

Abandon_Os[1]=Xrm.Page.getAttribute("nmprc_adfp727d2").getSelectedOption
().value;
Abandon_Os[2]=Xrm.Page.getAttribute("nmprc_adfp727d3").getSelectedOption
().value;
var Abandon_getLabel=" ";
for(var x=0;x<3;x++)
{
if(Abandon_Os[x]==2)
{
if(Abandon_getLabel==" ")
{
Abandon_getLabel=Abandon_LName[x];
}
else
{
Abandon_getLabel=Abandon_getLabel+","+Abandon_LN
ame[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments9").setValue(Abandon_getLabel);
//Abandon Finished
//Distribution Valves
var DisVal_LName=[];
DisVal_LName[0]=".747(a)";
DisVal_LName[1]=".747(b)";
var DisVal_Os=[];
DisVal_Os[0]=Xrm.Page.getAttribute("nmprc_dv747a").getSelectedOption().v
alue;
DisVal_Os[1]=Xrm.Page.getAttribute("nmprc_dv747b").getSelectedOption().v
alue;
var DisVal_getLabel=" ";
for(var x=0;x<2;x++)
{
if(DisVal_Os[x]==2)
{
if(DisVal_getLabel==" ")
{
DisVal_getLabel=DisVal_LName[x];
}
else
{
DisVal_getLabel=DisVal_getLabel+","+DisVal_LName
[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments10").setValue(DisVal_getLabel);
//DisVal Finished
//WELDING AND WELD DEFECT REPAIR/REMOVAL PROCEDURES
var WeldingDef_LName=[];
WeldingDef_LName[0]=".225(a)";
WeldingDef_LName[1]=".225(b)";

var WeldingDef_Os=[];
WeldingDef_Os[0]=Xrm.Page.getAttribute("nmprc_wwdrp225a").getSelectedOpt
ion().value;
WeldingDef_Os[1]=Xrm.Page.getAttribute("nmprc_wwdrp225b").getSelectedOpt
ion().value;
var WeldingDef_getLabel=" ";
for(var x=0;x<2;x++)
{
if(WeldingDef_Os[x]==2)
{
if(WeldingDef_getLabel==" ")
{
WeldingDef_getLabel=WeldingDef_LName[x];
}
else
{
WeldingDef_getLabel=WeldingDef_getLabel+","+Weld
ingDef_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments11").setValue(DisVal_getLabel);
//WeldingDef Finished
//JOINING of PIPELINE MATERIALS
var JoinPipeMat_LName=[];
JoinPipeMat_LName[0]=".283";
JoinPipeMat_LName[1]="285";
var JoinPipeMat_Os=[];
JoinPipeMat_Os[0]=Xrm.Page.getAttribute("nmprc_jpm283").getSelectedOptio
n().value;
JoinPipeMat_Os[1]=Xrm.Page.getAttribute("nmprc_jpm285").getSelectedOptio
n().value;
var JoinPipeMat_getLabel=" ";
for(var x=0;x<2;x++)
{
if(JoinPipeMat_Os[x]==2)
{
if(JoinPipeMat_getLabel==" ")
{
JoinPipeMat_getLabel=JoinPipeMat_LName[x];
}
else
{
JoinPipeMat_getLabel=JoinPipeMat_getLabel+","+Jo
inPipeMat_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments12").setValue(DisVal_getLabel);
//JOINING of PIPELINE MATERIALS Finished
//CORROSION CONTROL PROCEDURES

var CorrosionCtrl_LName=[];
CorrosionCtrl_LName[0]=".453a";
CorrosionCtrl_LName[1]=".453b";
CorrosionCtrl_LName[2]=".453c";
CorrosionCtrl_LName[3]=".453d";
CorrosionCtrl_LName[4]=".455";
CorrosionCtrl_LName[5]=".459";
CorrosionCtrl_LName[6]=".463";
CorrosionCtrl_LName[7]=".465a";
CorrosionCtrl_LName[8]=".465b";
CorrosionCtrl_LName[9]=".465d";
CorrosionCtrl_LName[10]=".467";
CorrosionCtrl_LName[11]=".475b";
CorrosionCtrl_LName[12]=".479a";
CorrosionCtrl_LName[13]=".479b";
CorrosionCtrl_LName[14]=".479c";
CorrosionCtrl_LName[15]=".479c1";
CorrosionCtrl_LName[16]=".479c2";
CorrosionCtrl_LName[17]=".481a";
CorrosionCtrl_LName[18]=".481b";
CorrosionCtrl_LName[19]=".481c";
CorrosionCtrl_LName[20]=".483";
CorrosionCtrl_LName[21]=".487";
CorrosionCtrl_LName[22]=".491";
var CorrosionCtrl_Os=[];
CorrosionCtrl_Os[0]=Xrm.Page.getAttribute("nmprc_ccp453a").getSelectedOp
tion().value;
CorrosionCtrl_Os[1]=Xrm.Page.getAttribute("nmprc_ccp453b").getSelectedOp
tion().value;
CorrosionCtrl_Os[2]=Xrm.Page.getAttribute("nmprc_ccp453c").getSelectedOp
tion().value;
CorrosionCtrl_Os[3]=Xrm.Page.getAttribute("nmprc_ccp453d").getSelectedOp
tion().value;
CorrosionCtrl_Os[4]=Xrm.Page.getAttribute("nmprc_ccp455").getSelectedOpt
ion().value;
CorrosionCtrl_Os[5]=Xrm.Page.getAttribute("nmprc_ccp459").getSelectedOpt
ion().value;
CorrosionCtrl_Os[6]=Xrm.Page.getAttribute("nmprc_ccp463").getSelectedOpt
ion().value;
CorrosionCtrl_Os[7]=Xrm.Page.getAttribute("nmprc_ccp465a").getSelectedOp
tion().value;
CorrosionCtrl_Os[8]=Xrm.Page.getAttribute("nmprc_ccp465b").getSelectedOp
tion().value;
CorrosionCtrl_Os[9]=Xrm.Page.getAttribute("nmprc_ccp465d").getSelectedOp
tion().value;
CorrosionCtrl_Os[10]=Xrm.Page.getAttribute("nmprc_ccp467").getSelectedOp
tion().value;
CorrosionCtrl_Os[11]=Xrm.Page.getAttribute("nmprc_ccp475b").getSelectedO
ption().value;
CorrosionCtrl_Os[12]=Xrm.Page.getAttribute("nmprc_ccp479a").getSelectedO
ption().value;
CorrosionCtrl_Os[13]=Xrm.Page.getAttribute("nmprc_ccp479b").getSelectedO
ption().value;
CorrosionCtrl_Os[14]=Xrm.Page.getAttribute("nmprc_ccp479c").getSelectedO
ption().value;
CorrosionCtrl_Os[15]=Xrm.Page.getAttribute("nmprc_ccp479c1").getSelected
Option().value;
CorrosionCtrl_Os[16]=Xrm.Page.getAttribute("nmprc_ccp479c2").getSelected
Option().value;

CorrosionCtrl_Os[17]=Xrm.Page.getAttribute("nmprc_ccp481a").getSelectedO
ption().value;
CorrosionCtrl_Os[18]=Xrm.Page.getAttribute("nmprc_ccp481b").getSelectedO
ption().value;
CorrosionCtrl_Os[19]=Xrm.Page.getAttribute("nmprc_ccp481c").getSelectedO
ption().value;
CorrosionCtrl_Os[20]=Xrm.Page.getAttribute("nmprc_ccp483").getSelectedOp
tion().value;
CorrosionCtrl_Os[21]=Xrm.Page.getAttribute("nmprc_ccp487").getSelectedOp
tion().value;
CorrosionCtrl_Os[22]=Xrm.Page.getAttribute("nmprc_ccp491").getSelectedOp
tion().value;
var CorrosionCtrl_getLabel=" ";
for(var x=0;x<23;x++)
{
if(CorrosionCtrl_Os[x]==2)
{
if(CorrosionCtrl_getLabel==" ")
{
CorrosionCtrl_getLabel=CorrosionCtrl_LName[x];
}
else
{
CorrosionCtrl_getLabel=CorrosionCtrl_getLabel+",
"+CorrosionCtrl_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments13").setValue(CorrosionCtrl_getLab
el);
//CORROSION CONTROL PROCEDURES Finished
//PIPELINE INSPECTION (Field)
var PipeIns_LName=[];
PipeIns_LName[0]=".463";
PipeIns_LName[1]=".465";
PipeIns_LName[2]=".467";
PipeIns_LName[3]=".479";
PipeIns_LName[4]=".474";
PipeIns_LName[5]=".353/.355/.357";
var PipeIns_Os=[];
PipeIns_Os[0]=Xrm.Page.getAttribute("nmprc_pi463").getSelectedOption().v
alue;
PipeIns_Os[1]=Xrm.Page.getAttribute("nmprc_pi465").getSelectedOption().v
alue;
PipeIns_Os[2]=Xrm.Page.getAttribute("nmprc_pi467").getSelectedOption().v
alue;
PipeIns_Os[3]=Xrm.Page.getAttribute("nmprc_pi479").getSelectedOption().v
alue;
PipeIns_Os[4]=Xrm.Page.getAttribute("nmprc_pi474").getSelectedOption().v
alue;
PipeIns_Os[5]=Xrm.Page.getAttribute("nmprc_pi353355357").getSelectedOpti
on().value;
var PipeIns_getLable=" ";
for(var x=0;x<6;x++)
{

if(PipeIns_Os[x]==2)
{
if(PipeIns_getLable==" ")
{
PipeIns_getLable=PipeIns_LName[x];
}
else
{
PipeIns_getLable=PipeIns_getLable+","+PipeIns_LN
ame[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments14").setValue(PipeIns_getLable);
//PIPELINE INSPECTION (Field) Finished
//REGULATORY REPORTING PERFORMANCE AND RECORDS
var RegReport_LName=[];
RegReport_LName[0]="191.5";
RegReport_LName[1]="192.16";
var RegReport_Os=[];
RegReport_Os[0]=Xrm.Page.getAttribute("nmprc_pi353355363").getSelectedOp
tion().value;
RegReport_Os[1]=Xrm.Page.getAttribute("nmprc_pi353355364").getSelectedOp
tion().value;
var RegReport_getLabel=" ";
for(var x=0;x<2;x++)
{
if(RegReport_Os[x]==2)
{
if(RegReport_getLabel=" ")
{
RegReport_getLabel=RegReport_LName[x];
}
else
{
RegReport_getLabel=RegReport_getLabel+","+RegRep
ort_LName[x];
}
}
}
//REGULATORY REPORTING PERFORMANCE AND RECORDS Finished
//CONSTRUCTION PERFORMANCE AND RECORDS
var ConsPerform_LName=[];
ConsPerform_LName[0]=".225";
ConsPerform_LName[1]=".227";
ConsPerform_LName[2]=".241(a)";
ConsPerform_LName[3]=".273/.283";
ConsPerform_LName[4]=".285";
ConsPerform_LName[5]=".287";
ConsPerform_LName[6]=".303";
ConsPerform_LName[7]=".325";
ConsPerform_LName[8]=".327";
ConsPerform_LName[9]=".383";
ConsPerform_LName[10]=".455";
var ConsPerform_Os=[];

ConsPerform_Os[0]=Xrm.Page.getAttribute("nmprc_pi353355366").getSelected
Option().value;
ConsPerform_Os[1]=Xrm.Page.getAttribute("nmprc_pi353355367").getSelected
Option().value;
ConsPerform_Os[2]=Xrm.Page.getAttribute("nmprc_pi353355368").getSelected
Option().value;
ConsPerform_Os[3]=Xrm.Page.getAttribute("nmprc_pi353355369").getSelected
Option().value;
ConsPerform_Os[4]=Xrm.Page.getAttribute("nmprc_pi353355370").getSelected
Option().value;
ConsPerform_Os[5]=Xrm.Page.getAttribute("nmprc_pi353355371").getSelected
Option().value;
ConsPerform_Os[6]=Xrm.Page.getAttribute("nmprc_pi353355372").getSelected
Option().value;
ConsPerform_Os[7]=Xrm.Page.getAttribute("nmprc_pi353355373").getSelected
Option().value;
ConsPerform_Os[8]=Xrm.Page.getAttribute("nmprc_pi353355374").getSelected
Option().value;
ConsPerform_Os[9]=Xrm.Page.getAttribute("nmprc_pi353355375").getSelected
Option().value;
ConsPerform_Os[10]=Xrm.Page.getAttribute("nmprc_pi353355376").getSelecte
dOption().value;
var ConsPerform_getLabel=" ";
for(var x=0;x<11;x++)
{
if(ConsPerform_Os[x]==2)
{
if(ConsPerform_getLabel==" ")
{
ConsPerform_getLabel=ConsPerform_LName[x];
}
else
{
ConsPerform_getLabel=ConsPerform_getLabel+","+Co
nsPerform_LName[x];
}
}
}
//CONSTRUCTION PERFORMANCE AND RECORDS Finished
//OPERATIONS and MAINTENANCE PERFORMANCE AND RECORDS
var OperMaintenance_LName=[];
OperMaintenance_LName[0]=".605(a)";
OperMaintenance_LName[1]=".605(b)(1)";
OperMaintenance_LName[2]=".605(b)(3)";
OperMaintenance_LName[3]=".605(b)(8)";
OperMaintenance_LName[4]=".613";
OperMaintenance_LName[5]=".615(b)(2)";
OperMaintenance_LName[6]=".616(j)";
OperMaintenance_LName[7]=".517";
OperMaintenance_LName[8]=".625";
OperMaintenance_LName[9]=".723(b)(2)";
OperMaintenance_LName[10]=".747";
var OperMaintenance_Os=[];
OperMaintenance_Os[0]=Xrm.Page.getAttribute("nmprc_pi353355378").getSele
ctedOption().value;
OperMaintenance_Os[1]=Xrm.Page.getAttribute("nmprc_pi353355379").getSele
ctedOption().value;

OperMaintenance_Os[2]=Xrm.Page.getAttribute("nmprc_pi353355380").getSele
ctedOption().value;
OperMaintenance_Os[3]=Xrm.Page.getAttribute("nmprc_pi353355381").getSele
ctedOption().value;
OperMaintenance_Os[4]=Xrm.Page.getAttribute("nmprc_pi353355382").getSele
ctedOption().value;
OperMaintenance_Os[5]=Xrm.Page.getAttribute("nmprc_pi353355383").getSele
ctedOption().value;
OperMaintenance_Os[6]=Xrm.Page.getAttribute("nmprc_pi353355385").getSele
ctedOption().value;
OperMaintenance_Os[7]=Xrm.Page.getAttribute("nmprc_pi353355386").getSele
ctedOption().value;
OperMaintenance_Os[8]=Xrm.Page.getAttribute("nmprc_pi353355387").getSele
ctedOption().value;
OperMaintenance_Os[9]=Xrm.Page.getAttribute("nmprc_pi353355388").getSele
ctedOption().value;
OperMaintenance_Os[10]=Xrm.Page.getAttribute("nmprc_pi353355389").getSel
ectedOption().value;
var OperMaintenance_getLabel=" ";
for(var x=0;x<11;x++)
{
if(OperMaintenance_Os[x]==2)
{
if(OperMaintenance_getLabel==" ")
{
OperMaintenance_getLabel=OperMaintenance_LName[x
];
}
else
{
OperMaintenance_getLabel=OperMaintenance_getLabe
l+","+OperMaintenance_LName[x];
}
}
}
OperMaintenance_getLabel=RegReport_getLabel+ConsPerform_getLabel+OperMai
ntenance_getLabel;
Xrm.Page.getAttribute("nmprc_jcomments15").setValue(OperMaintenance_getL
abel);
//OPERATIONS and MAINTENANCE PERFORMANCE AND RECORDS Finished
//CORROSION CONTROL PERFORMANCE AND RECORDS
var CorrsCtrl_LName=[];
CorrsCtrl_LName[0]=".491(a)";
CorrsCtrl_LName[1]=".459";
CorrsCtrl_LName[2]=".465(a)";
CorrsCtrl_LName[3]=".465(b)";
CorrsCtrl_LName[4]=".465(d)";
CorrsCtrl_LName[5]=".465(e)";
CorrsCtrl_LName[6]=".475(b)";
CorrsCtrl_LName[7]=".481";
CorrsCtrl_LName[8]=".483/.485";
var CorssCtrl_Os=[];
CorssCtrl_Os[0]=Xrm.Page.getAttribute("nmprc_pi353355391").getSelectedOp
tion().value;
CorssCtrl_Os[1]=Xrm.Page.getAttribute("nmprc_pi353355392").getSelectedOp
tion().value;
CorssCtrl_Os[2]=Xrm.Page.getAttribute("nmprc_pi353355393").getSelectedOp

tion().value;
CorssCtrl_Os[3]=Xrm.Page.getAttribute("nmprc_pi353355394").getSelectedOp
tion().value;
CorssCtrl_Os[4]=Xrm.Page.getAttribute("nmprc_pi353355395").getSelectedOp
tion().value;
CorssCtrl_Os[5]=Xrm.Page.getAttribute("nmprc_pi353355396").getSelectedOp
tion().value;
CorssCtrl_Os[6]=Xrm.Page.getAttribute("nmprc_pi353355397").getSelectedOp
tion().value;
CorssCtrl_Os[7]=Xrm.Page.getAttribute("nmprc_pi353355398").getSelectedOp
tion().value;
CorssCtrl_Os[8]=Xrm.Page.getAttribute("nmprc_pi353355399").getSelectedOp
tion().value;
var CorssCtrl_getLabel=" ";
for(var x=0;x<9;x++)
{
if(CorssCtrl_Os[x]==2)
{
if(CorssCtrl_getLabel==" ")
{
CorssCtrl_getLabel=CorrsCtrl_LName[x];
}
else
{
CorssCtrl_getLabel=CorssCtrl_getLabel+","+CorrsC
trl_LName[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments16").setValue(CorssCtrl_getLabel);
//CORROSION CONTROL PERFORMANCE AND RECORDS Finished
//ADDITIONAL FORMS
var AddForm_LName=[];
AddForm_LName[0]=".100";//pi3533553100
var AddForm_Os=[];
AddForm_Os[0]=Xrm.Page.getAttribute("nmprc_pi3533553100").getSelectedOpt
ion().value;
var AddForm_getLabel=" ";
for(var x=0;x<1;x++)
{
if(AddForm_Os[x]==2)
{
if(AddForm_getLabel==" ")
{
AddForm_getLabel=AddForm_LName[x];
}
else
{
AddForm_getLabel=AddForm_getLabel+","+AddForm_LN
ame[x];
}
}
}
Xrm.Page.getAttribute("nmprc_jcomments17").setValue(AddForm_getLabel);
}