// create a field for "other" on choosing it
function createOther(whatObj)
{
  if (whatObj.options[whatObj.selectedIndex].value == "other")
  {
    var objParent = whatObj.parentNode;
    var otherField = document.createElement('input');
    otherField.setAttribute('id',whatObj.id);
    otherField.setAttribute('name',whatObj.name);
    otherField.setAttribute('type','text');
    otherField.setAttribute('value','Enter your value for "other"');
    otherField.onfocus = function() {
      otherField.value = "";
    }
    objParent.replaceChild(otherField,whatObj);
  }
}