function create_MajorList(objName, arrSource, strFirstItemText, strFirstItemValue, bolNeedOtherItem) {
  document.write('<select id="' + objName +'" name="' + objName + '" style="display: none; width: 220px; margin-top: 1px" class="Farsi" dir="rtl" onchange="update_MainMajor(this)">\n');
  document.write('  <option value="' +  strFirstItemValue + '" selected="selected">' + strFirstItemText + '</option>');
  for (var i=0; i<arrSource.length; i++) {
    document.write('  <option value="' + arrSource[i][0] + '">' + arrSource[i][1] + '</option>');
  }
  if (bolNeedOtherItem) {
    document.write('  <option value="Others">&#1587;&#1575;&#1610;&#1585; &#1605;&#1608;&#1575;&#1585;&#1583;...</option>');
  }
  document.write('</select>');
  return;
}

function hide_MajorList(objName) {
  objName.style.display = "none";
  return;
}

function show_Major(objName) {
  objName.style.display = "inline";
  objName.selectedIndex = 0;
  return;
}