function isSelected(pIndex, pMatchwith) {
  if (pIndex == pMatchwith) {
    return " selected ";
  } else {
    return " ";
  }
}

function generateOptionChangeStyle() {
  var theStyle = getStyle();

  document.write("<select style=\"font-size: 10px;\" name=\"select\" onchange=\"changeStyle(this.value)\" size=1>");
  document.write("<option" + isSelected(1, theStyle) + "value=1>&#23567;&#21495;</option>");
  document.write("<option" + isSelected(2, theStyle) + "value=2>&#27491;&#24120;</option>");
  document.write("<option" + isSelected(3, theStyle) + "value=3>&#22823;&#21495;</option>");
  document.write("<option" + isSelected(4, theStyle) + "value=4>&#36229;&#22823;</option>");
  document.write("</select>");
}

generateOptionChangeStyle();

