rem: if (align == "center") { dialog.centerAlign.checked = true; } else if (align == "right") { dialog.rightAlign.checked = true; } else { dialog.leftAlign.checked = true; } 
add:  dialog.centerAlign.checked = (align == "center" || !align); dialog.rightAlign.checked  = (align == "right"); dialog.leftAlign.checked   = (align == "left"); 
context: function InitDialog(){  // Just to be confusing, "size" is used instead of height  var height = globalElement.getAttribute("size");  if(!height) {    dump("NO SIZE FOUND FOR HLINE");    height = 2; //Default value  }  // We will use "height" here and in UI  dialog.heightInput.value = height;  // Get the width attribute of the element, stripping out "%"  // This sets contents of menulist (adds pixel and percent menuitems elements)  dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, hLineElement, "width","pixelOrPercentMenulist");  align = globalElement.getAttribute("align").toLowerCase();  if (align == "center") {    dialog.centerAlign.checked = true;  } else if (align == "right") {    dialog.rightAlign.checked = true;  } else {    dialog.leftAlign.checked = true;  }  // This is tricky! Since the "noshade" attribute doesn't have a value,  //  we can't use getAttribute to figure out if it's set!  // This gets the attribute NODE from the attributes NamedNodeMap  if (globalElement.attributes.getNamedItem("noshade"))    dialog.shading.checked = false;  else    dialog.shading.checked = true;dump("Done with INIT\n");}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7492e8794b0137d9ed2dc2049f75ad431cac5944/EdHLineProps.js/clean/editor/ui/dialogs/content/EdHLineProps.js