function replace_logo(logo, replace_id, scale, title_txt, display_style) {
      var element = document.getElementById(replace_id);
      if (!replace_id) {
        alert("Can't find specified id (" + replace_id + ")");
        return;
      }
      //found the element!
      var canvas = create_canvas(50, 120, replace_id, title_txt, display_style);
      if (canvas == null) return;
      //draw the logo on the canvas
      draw_logo_on_canvas(logo, canvas, undefined, scale);
      //replace the element with the canvas
      element.parentNode.replaceChild(canvas, element);
    }
/*
     * Specifes that the element with the specified id
     * should be replaced with a generated logo.
     */
Specifes that the element with the specified id
should be replaced with a generated logo.
Specifes that the element with the specified id should be replaced with a generated logo .
function replace_logo(logo, replace_id, scale, title_txt, display_style) {
      var element = document.getElementById(replace_id);
      if (!replace_id) {
        alert("Can't find specified id (" + replace_id + ")");
        return;
      }
      var canvas = create_canvas(50, 120, replace_id, title_txt, display_style);
      if (canvas == null) return;
      draw_logo_on_canvas(logo, canvas, undefined, scale);
      element.parentNode.replaceChild(canvas, element);
    }
function replace_logo ( logo , replace_id , scale , title_txt , display_style ) { var element = document . getElementById ( replace_id ) ; if ( ! replace_id ) { alert ( "Can't find specified id (" + replace_id + ")" ) ; return ; } var canvas = create_canvas ( 50 , 120 , replace_id , title_txt , display_style ) ; if ( canvas == null ) return ; draw_logo_on_canvas ( logo , canvas , undefined , scale ) ; element . parentNode . replaceChild ( canvas , element ) ; }
Specifes that the element with the specified id
 should be replaced with a generated logo.
Specifes that the element with the specified id should be replaced with a generated logo .
//found the element! //draw the logo on the canvas //replace the element with the canvas