I tried renaming one of the functions, I can't seem to get it to work still. Can you please look at this:
var DeptData = {
FUSD:{ Claims: "FUSD", Address: "x", Telephone: "x", Fax: "x" },
Test:{ Claims: "-", Address: "-", Telephone: "-", Fax: "-" }
};
function SetFieldValues(cDeptName) {
// Populate fields with values from the Department Data Object
this.getField("DeptClaims").value = DeptData[cDeptName].Claims;
this.getField("DeptAddress").value = DeptData[cDeptName].Address;
this.getField("DeptTelephone").value = DeptData[cDeptName].Telephone;
this.getField("DeptFax").value = DeptData[cDeptName].Fax;
}
var DeptData1 = { "Lumbar Strain":{ ICD: "847.2"}, "Cervical Strain":{ ICD: "847.0"}, "Shoulder & Upper Arm Strains" :{ ICD:"840.00"}, "Knee Sprains and Strains":{ ICD:"844.00"}, "Ankle & Foot Sprains and Strains":{ ICD:"845.00"}, "Tenosynovitis":{ ICD:"727.00"}, "Trigger Finger":{ ICD:"727.03"}, "Wrist Strain":{ ICD:"842.09"}, "Elbow & Forearm Sprains and Strains":{ ICD:"841.00"}, "Hand Sprains and Strains":{ ICD:"842.00"}, "Hip & Thigh Sprains and Strains":{ ICD:"843.00"}, "Foot Sprains and Strains":{ ICD:"845.00"}, "de Quervain's Tendonitis":{ ICD:"727.04"}, "Rotator Cuff Tear":{ ICD:"726.1"}, "Carpal Tunnel Syndrome":{ ICD:"354.00"}};
function SetFieldValues1(cDeptName)
{
// Populate fields with values from the Department Data Object
this.getField("ICD").value = DeptData1[cDeptName].ICD;
}