private static img createImage(String AD_Language,String name,String js_command,boolean enabled,boolean pressed){
  StringBuffer imgName=new StringBuffer(name);
  if (!enabled)   imgName.append("D");
 else   if (pressed)   imgName.append("X");
  imgName.append("16.gif");
  img img=new img(WebEnv.getImageDirectory(imgName.toString()),name);
  if (enabled)   img.setAlt(Msg.getMsg(AD_Language,name));
  if (!pressed || !enabled)   img.setID("imgButton");
 else   img.setID("imgButtonPressed");
  img.setHeight(16);
  img.setWidth(16);
  img.setBorder(0);
  img.setTitle(name);
  return img;
}

private static img createImage ( String AD_Language , String name , String js_command , boolean enabled , boolean pressed ) { StringBuffer imgName = new StringBuffer ( name ) ; if ( ! enabled ) imgName . append ( "D" ) ; else if ( pressed ) imgName . append ( "X" ) ; imgName . append ( "16.gif" ) ; img img = new img ( WebEnv . getImageDirectory ( imgName . toString ( ) ) , name ) ; if ( enabled ) img . setAlt ( Msg . getMsg ( AD_Language , name ) ) ; if ( ! pressed || ! enabled ) img . setID ( "imgButton" ) ; else img . setID ( "imgButtonPressed" ) ; img . setHeight ( 16 ) ; img . setWidth ( 16 ) ; img . setBorder ( 0 ) ; img . setTitle ( name ) ; return img ; }
create image with name , id of button_name and set p_command onclick
