select an item from a list box & enable same type in other list box

select an item from a list box & enable same type in other list box

Hi 
at first I am really sorry to put this much code. I am new to javascript. I have multiple list boxes, what I want is, when I select one or more iteams from 1st list box, all the related items in other list box should be enabled. 
please help me. 

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Quotation</title>
  5. <style type="text/css">
  6. .auto-style1 {
  7. text-align: center;
  8. }
  9. .auto-style3 {
  10. font-size: x-large;
  11. }
  12. .auto-style4 {
  13. text-align: left;
  14. }
  15. .auto-style5 {
  16. font-size: x-small;
  17. }
  18. .auto-style6 {
  19. font-size: small;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div id="body" class="auto-style1" style="position: absolute; width: 1153px; height: 461px; z-index: 1; left: 216px; top: 19px; background-color: #F0F0F0; color: #000000; font-family: Arial, Helvetica, sans-serif">
  25. <label id="Label1"><br /></label>
  26. <br />
  27. <strong><span class="auto-style3">Quotation</span></strong>
  28. <div id="cstype" class="auto-style4" style="position: absolute; width: 1030px; height: 248px; z-index: 3; left: 96px; top: 117px">
  29. <div id="cstypelist" class="auto-style1" style="position: absolute; width: 137px; height: 230px; z-index: 1; left: 15px; top: 11px">
  30. <label id="Label3"><span class="auto-style6"><strong>Type</strong></span><br class="auto-style5">
  31. </label>
  32. <div id="layer7" style="position: absolute; width: 120px; height: 204px; z-index: 1; left: 8px; top: 22px">
  33. <select multiple="multiple" name="cstype" style="width: 106px; height: 199px">
  34. <option value="cscar">CSCar</option>
  35. <option value="csbus">CSBus</option>
  36. <option value="cslorry">CSLorry</option>
  37. <option value="csboat">CSBoat</option>
  38. </select>
  39. </div>
  40. </div>
  41. <div id="csdevice" class="auto-style1" style="position: absolute; width: 200px; height: 230px; z-index: 1; left: 158px; top: 10px">
  42. <span class="auto-style6"><strong>Devices</strong></span><label id="Label4"><br class="auto-style5">
  43. </label>
  44. <div id="csdevicelist" style="position: absolute; width: 192px; height: 201px; z-index: 1; left: 8px; top: 25px">
  45. <select multiple="multiple" name="csdevice" style="width: 191px; height: 199px">
  46. <option value="cscar" disabled>CSCar Red</option>
  47. <option value="cscar" disabled>CSCar Blue</option>
  48. <option value="cscar" disabled>CSCar Green</option>
  49. <option value="csbus " disabled>CSBus Red</option>
  50. <option value="csbus" disabled>CSBus Blue</option>
  51. <option value="csbus" disabled>CSBus Green</option>
  52. <option value="cslorry" disabled>CSLorry Red</option>
  53. <option value="cslorry" disabled>CSLorry Blue</option>
  54. <option value="cslorry" disabled>CSLorry Green</option>
  55. <option value="csboat" disabled>CSBoat Red</option>
  56. <option value="csboat" disabled>CSBoat Blue</option>
  57. <option value="csboat" disabled>CSBoat Green</option>
  58. </select>
  59. </div>
  60. </div>
  61. <div id="csaccessories" class="auto-style1" style="position: absolute; width: 223px; height: 230px; z-index: 1; left: 373px; top: 11px">
  62. <span class="auto-style6"><strong>Accessories</strong></span><label id="Label5"><br class="auto-style5">
  63. </label>
  64. <div id="csaccessorieslist" style="position: absolute; width: 207px; height: 201px; z-index: 1; left: 8px; top: 25px">
  65. <select multiple="multiple" name="csaccessories" style="width: 196px; height: 199px">
  66. <option value="cscar" disabled>CSCar Tyre</option>
  67. <option value="cslorry" disabled>CSLorry Tyre</option>
  68. <option value="cscarfix" disabled>CSCar Verification Fixture</option>
  69. <option value="extrabattery" disabled>Extra Battery</option>
  70. </select>
  71.  </div>
  72. </div>
  73. <div id="cssoftwarepac" class="auto-style1" style="position: absolute; width: 124px; height: 230px; z-index: 1; left: 606px; top: 13px">
  74. <span class="auto-style6"><strong>Software Packages</strong></span><label id="Label6"><br class="auto-style5">
  75. </label>
  76. <div id="cssoftwarepaclist" style="position: absolute; width: 110px; height: 201px; z-index: 1; left: 8px; top: 25px">
  77. <select multiple="multiple" name="softwarepackage" style="width: 104px; height: 199px">
  78. <option>Audit Lite</option>
  79. <option>Audit</option>
  80. <option>Audit Plus Pro</option>
  81. <option>PLS</option>
  82. </select>
  83.  </div>
  84. </div>
  85. <div id="csmaintenancehardware" class="auto-style1" style="position: absolute; width: 234px; height: 230px; z-index: 1; left: 748px; top: 13px">
  86. <span class="auto-style6"><strong>Maintenance Plans (Hardware)</strong></span>
  87. <div id="csmaintenancehardwarelist" style="position: absolute; width: 220px; height: 201px; z-index: 1; left: 6px; top: 25px; right: 8px;">
  88. <strong>
  89. <select multiple="multiple" name="csmaintenancehardware" style="width: 214px; height: 199px">
  90. <option value="cscar" disabled>CSCar Standard Kit</option>
  91. <option value="cscar" disabled>CSCar Bluetooth Kit</option>
  92. <option value="cscar" disabled>CSCar Wi-Fi Kit</option>
  93. <option value="cslorry" disabled>CSLorry Standard Kit</option>
  94. <option value="cslorry" disabled>CSLorry Bluetooth Kit</option>
  95. <option value="cslorry" disabled>CSLorry Wi-Fi Kit</option>
  96. <option value="csboat" disabled>CSBoat Standard Kit</option>
  97. <option value="csboat" disabled>CSBoat Bluetooth Kit</option>
  98. <option value="csboat" disabled>CSBoat Wi-Fi Kit</option>
  99. <option value="expire" >Expired Year Maintenance Plan</option>
  100. </select>
  101.  </strong>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </body>
  107. </html>