function MM_openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

category = new Array(
new Array(
new Array("DOLV repair", "PROC116")
),
new Array(
new Array("DORV, Intraventricular tunnel repair", "PROC114"),
new Array("DORV repair, NOS", "PROC115")
),
new Array(
new Array("Pacemaker Implantation, Permanent", "PROC142"),
new Array("Pacemaker procedure", "PROC143"),
new Array("ICD (AICD) Implantation", "PROC144"),
new Array("ICD (AICD) ([Automatic] Implantable Cardioverter Defibrillator) procedure", "PROC145"),
new Array("Arrhythmia surgery - Atrial, Surgical Ablation", "PROC146"),
new Array("Arrhythmia surgery - Ventricular Surgical Ablation", "PROC147")
),
new Array(
new Array("ASD creation, Balloon septostomy (BAS) (Rashkind)", "PROC148"),
new Array("ASD creation, Blade septostomy", "PROC149"),
new Array("Balloon dilation", "PROC150"),
new Array("Stent placement", "PROC151"),
new Array("Device closure", "PROC152"),
new Array("RF ablation", "PROC153"),
new Array("Coil embolization", "PROC154")
),
new Array(
new Array("Valvuloplasty, Aortic", "PROC61"),
new Array("Valve replacement, Aortic (AVR)", "PROC62"),
new Array("Valve replacement, Aortic (AVR), Mechanical", "PROC63"),
new Array("Valve replacement, Aortic (AVR), Bioprosthetic", "PROC64"),
new Array("Valve replacement, Aortic (AVR), Homograft", "PROC65"),
new Array("Aortic root replacement", "PROC66"),
new Array("Aortic root replacement, Mechanical", "PROC67"),
new Array("Aortic root replacement, Homograft", "PROC68"),
new Array("Ross procedure", "PROC69"),
new Array("Konno procedure", "PROC70"),
new Array("Ross  - Konno procedure", "PROC71"),
new Array("Other annular enlargement procedure", "PROC72"),
new Array("Aortic stenosis, Subvalvar, Repair", "PROC73"),
new Array("Aortic stenosis, Supravalvar, Repair", "PROC74"),
new Array("Valve surgery, Other, Aortic", "PROC75"),
new Array("Sinus of Valsalva, Aneurysm repair", "PROC76"),
new Array("LV to aorta tunnel repair", "PROC77"),
new Array("Valvuloplasty, Mitral", "PROC78"),
new Array("Mitral stenosis, Supravalvar mitral ring, Repair", "PROC79"),
new Array("Valve replacement, Mitral (MVR)", "PROC80"),
new Array("Valve surgery, Other, Mitral", "PROC81"),
new Array("Norwood procedure", "PROC82"),
new Array("HLHS biventricular repair", "PROC83"),
new Array("Transplant, Heart", "PROC84"),
new Array("Transplant, Heart", "PROC85"),
new Array("Transplant, Heart and lung", "PROC86"),
new Array("Partial left ventriculectomy (LV volume reduction surgery) (Batista)", "PROC87"),
new Array("Constrictive Pericarditis|Pericardial drainage procedure", "PROC88"),
new Array("Constrictive Pericarditis|Pericardiectomy", "PROC89"),
new Array("Constrictive Pericarditis|Pericardial procedure, Other", "PROC90")
),
new Array(
new Array("Lung biopsy", "PROC137"),
new Array("Transplant, Lung(s)", "PROC138"),
new Array("Lung procedure, Other", "PROC139"),
new Array("Pectus repair", "PROC140"),
new Array("Tracheal procedure", "PROC141")
),
new Array(
new Array("Aneurysm, Ventricular, Right, Repair", "PROC168"),
new Array("Aneurysm, Ventricular, Left, Repair", "PROC169"),
new Array("Aneurysm, Pulmonary artery, Repair", "PROC170"),
new Array("Cardiac tumor resection", "PROC171"),
new Array("Pulmonary AV fistula repair / occlusion", "PROC172"),
new Array("Pulmonary embolectomy", "PROC173"),
new Array("Pleural drainage procedure", "PROC174"),
new Array("Pleural procedure, Other", "PROC175"),
new Array("Decortication", "PROC176"),
new Array("Esophageal procedure", "PROC177"),
new Array("Mediastinal procedure", "PROC178"),
new Array("Intra-aortic Balloon Pump (IABP) insertion", "PROC179"),
new Array("ECMO procedure", "PROC180"),
new Array("Right / left heart assist device procedure", "PROC181"),
new Array("Mediastinal exploration", "PROC182"),
new Array("Bronchoscopy", "PROC183"),
new Array("Diaphragm plication", "PROC184"),
new Array("Diaphragm procedure, Other", "PROC185"),
new Array("VATS (Video Assisted Thoracoscopic Surgery)", "PROC186"),
new Array("Minimally invasive procedure", "PROC187"),
new Array("Bypass for non-cardiac lesion", "PROC188"),
new Array("Delayed sternal closure", "PROC189"),
new Array("Mediastinal exploration", "PROC190"),
new Array("Sternotomy wound drainage", "PROC191"),
new Array("Thoracotomy, Other", "PROC192"),
new Array("Cardiotomy, Other", "PROC193"),
new Array("Cardiac procedure, Other", "PROC194"),
new Array("Thoracic and / or mediastinal procedure, Other", "PROC195"),
new Array("Peripheral vascular procedure, Other", "PROC196"),
new Array("Miscellaneous procedure, Other", "PROC197")
),
new Array(
new Array("Shunt, Systemic to pulmonary, Modified Blalock-Taussig Shunt (MBTS)", "PROC155"),
new Array("Shunt, Systemic to pulmonary, Central (From aorta or to main pulmonary artery)", "PROC156"),
new Array("Shunt, Systemic to pulmonary, Other", "PROC157"),
new Array("Shunt, Systemic to pulmonary, NOS", "PROC158"),
new Array("Shunt, Ligation and takedown", "PROC159"),
new Array("PA banding (PAB)", "PROC160"),
new Array("PA debanding", "PROC161"),
new Array("Damus-Kaye-Stansel procedure (DKS)", "PROC162"),
new Array("Bidirectional cavopulmonary anastomosis (BDCPA) (Bidirectional Glenn)", "PROC163"),
new Array("Glenn (Unidirectional cavopulmonary anastomosis)  (Unidirectional Glenn)", "PROC164"),
new Array("Bilateral bidirectional cavopulmonary anastomosis (BBDCPA)", "PROC165"),
new Array("Hemifontan", "PROC166"),
new Array("Palliation, Other", "PROC167")
),
new Array(
new Array("PAPVC repair", "PROC30"),
new Array("PAPVC, Scimitar, Repair", "PROC31"),
new Array("TAPVC repair", "PROC32"),
new Array("Cor triatriatum repair", "PROC4"),
new Array("Pulmonary venous stenosis repair", "PROC5")
),
new Array(
new Array("TOF repair, Ventriculotomy, Non-transanular patch", "PROC33"),
new Array("TOF repair, Ventriculotomy, Transanular patch", "PROC34"),
new Array("TOF repair, RV-PA conduit", "PROC35"),
new Array("TOF, AVC (AVSD), Repair", "PROC36"),
new Array("TOF, Absent Pulmonary Valve, Repair", "PROC37"),
new Array("TOF repair, NOS", "PROC38"),
new Array("Pulmonary atresia – VSD (Including TOF, PA), Repair", "PROC39"),
new Array("Pulmonary atresia – VSD – MAPCA (Pseudotruncus), Repair", "PROC40"),
new Array("Unifocalization MAPCA(s)", "PROC41"),
new Array("Occlusion MAPCA(s)", "PROC42"),
new Array("Valvuloplasty, Tricuspid", "PROC43"),
new Array("Valve replacement, Tricuspid (TVR)", "PROC44"),
new Array("Valve closure, Tricuspid (exclusion, univentricular approach)", "PROC45"),
new Array("Valve excision, Tricuspid (without replacement)", "PROC46"),
new Array("Valve surgery, Other, Tricuspid", "PROC47"),
new Array("RVOT procedure", "PROC48"),
new Array("1 1/2 ventricular repair", "PROC49"),
new Array("PA, Reconstruction (Plasty)", "PROC50"),
new Array("PA, Reconstruction (Plasty), Main (Trunk)", "PROC51"),
new Array("PA, Reconstruction (Plasty), Branch, Central", "PROC52"),
new Array("PA, Reconstruction (Plasty), Branch, Peripheral (Beyond the hilar bifurcation)", "PROC53"),
new Array("DCRV repair", "PROC54"),
new Array("Conduit reoperation", "PROC55"),
new Array("Valvuloplasty, Pulmonic", "PROC56"),
new Array("Valve replacement, Pulmonic (PVR)", "PROC57"),
new Array("Conduit, Placement, RV to PA", "PROC58"),
new Array("Conduit, Placement, LV to PA", "PROC59"),
new Array("Valve surgery, Other, Pulmonic", "PROC60"),
new Array("TOF repair, No ventriculotomy", "PROC9")
),
new Array(
new Array("PFO, Primary closure", "PROC1"),
new Array("VSD repair, Device", "PROC2"),
new Array("Truncus arteriosus repair", "PROC3"),
new Array("ASD repair, Primary closure", "PROC10"),
new Array("ASD repair, Patch", "PROC11"),
new Array("ASD repair, Device", "PROC12"),
new Array("ASD, Common atrium (Single atrium), Septation", "PROC13"),
new Array("ASD creation / enlargement ", "PROC14"),
new Array("ASD partial closure", "PROC15"),
new Array("Atrial septal fenestration", "PROC16"),
new Array("ASD repair, NOS", "PROC17"),
new Array("VSD repair, Primary closure", "PROC18"),
new Array("VSD repair, Patch", "PROC19"),
new Array("VSD, Multiple, Repair", "PROC20"),
new Array("VSD creation / enlargement ", "PROC21"),
new Array("Ventricular septal fenestration", "PROC22"),
new Array("VSD repair, NOS", "PROC23"),
new Array("AVC (AVSD) repair, Complete (CAVSD)", "PROC24"),
new Array("AVC (AVSD) repair, Intermediate (Transitional)", "PROC25"),
new Array("AVC (AVSD) repair, Partial (Incomplete) (PAVSD)", "PROC26"),
new Array("AVC (AVSD) repair, NOS", "PROC27"),
new Array("AP window repair", "PROC28"),
new Array("Pulmonary artery origin from ascending aorta (Hemitruncus) repair", "PROC29")
),
new Array(
new Array("Fontan, NOS", "PROC100"),
new Array("Fontan, Atrio - pulmonary connection", "PROC91"),
new Array("Fontan, Atrio - ventricular connection", "PROC92"),
new Array("Fontan, TCPC, Lateral tunnel, Fenestrated", "PROC93"),
new Array("Fontan, TCPC, Lateral tunnel, Non - fenestrated", "PROC94"),
new Array("Fontan, TCPC, Lateral tunnel, NOS", "PROC95"),
new Array("Fontan, TCPC, External conduit, Fenestrated", "PROC96"),
new Array("Fontan, TCPC, External conduit, Non - fenestrated", "PROC97"),
new Array("Fontan, TCPC, External conduit, NOS", "PROC98"),
new Array("Fontan, Other", "PROC99")
),
new Array(
new Array("Atrial baffle procedure (non-Mustard, non-Senning)", "PROC6"),
new Array("Anomalous systemic venous connection repair", "PROC7"),
new Array("Systemic venous stenosis repair", "PROC8")
),
new Array(
new Array("Congenitally corrected TGA repair, Atrial Switch and ASO (Double switch)", "PROC101"),
new Array("Congenitally corrected TGA repair, Atrial switch and Rastelli", "PROC102"),
new Array("Congenitally corrected TGA repair, VSD closure", "PROC103"),
new Array("Congenitally corrected TGA repair, VSD closure and LV to PA conduit", "PROC104"),
new Array("Congenitally corrected TGA repair, Other", "PROC105"),
new Array("Congenitally corrected TGA repair, NOS", "PROC106"),
new Array("Arterial switch operation (ASO)", "PROC107"),
new Array("Arterial switch operation (ASO) and VSD repair", "PROC108"),
new Array("Senning", "PROC109"),
new Array("Rastelli", "PROC111"),
new Array("REV", "PROC112"),
new Array("TGA, Other procedures (Nikaido, Kawashima, LV-PA conduit, Other)", "PROC113"),
new Array("Mustard", "PROC198")
),
new Array(
new Array("Anomalous origin of coronary artery from pulmonary artery repair", "PROC117"),
new Array("Coarctation repair, End to end", "PROC118"),
new Array("Coarctation repair, End to end, Extended", "PROC119"),
new Array("Coarctation repair, Subclavian flap", "PROC120"),
new Array("Coarctation repair, Patch aortoplasty", "PROC121"),
new Array("Coarctation repair, Interposition graft", "PROC122"),
new Array("Coarctation repair, Other", "PROC123"),
new Array("Coarctation repair, NOS", "PROC124"),
new Array("Aortic arch repair", "PROC125"),
new Array("Coronary artery fistula ligation", "PROC126"),
new Array("Coronary artery bypass", "PROC127"),
new Array("Coronary artery procedure, Other", "PROC128"),
new Array("Interrupted aortic arch repair", "PROC129"),
new Array("PDA closure, Surgical", "PROC130"),
new Array("PDA closure, Device", "PROC131"),
new Array("PDA closure, NOS", "PROC132"),
new Array("Vascular ring repair", "PROC133"),
new Array("Pulmonary artery sling repair", "PROC134"),
new Array("Aortic aneurysm repair", "PROC135"),
new Array("Aortic dissection repair", "PROC136")
)
);
function fillSelectFromArray(selectCtrl, itemArray, goodPrompt, badPrompt, defaultItem) {
var i, j;
var prompt;

for (i = selectCtrl.options.length; i >= 0; i--) {
selectCtrl.options[i] = null; 
}
prompt = (itemArray != null) ? goodPrompt : badPrompt;
if (prompt == null) {
j = 0;
}
else {
selectCtrl.options[0] = new Option(prompt);
j = 1;
}
if (itemArray != null) {

for (i = 0; i < itemArray.length; i++) {
selectCtrl.options[j] = new Option(itemArray[i][0]);
if (itemArray[i][1] != null) {
selectCtrl.options[j].value = itemArray[i][1]; 
}
j++;
}

selectCtrl.options[0].selected = true;
   }
}