<!DOCTYPE HTML SYSTEM "-//Macromedia//DWExtension layout-engine 5.0//dialog">
<!-- MENU-LOCATION=NONE -->
<html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<HEAD>
<!-- Copyright 2000, 2001, 2002, 2003, 2004, 2005 Macromedia, Inc. All rights reserved. -->
<TITLE><MMString:loadString id="Commands/Clean_Up_HTML/title" /></TITLE>
<!-- Remove the following SCRIPT tag if you are modifying this file for your own use. -->
<SCRIPT SRC="../Shared/MM/Scripts/CMN/displayHelp.js"></SCRIPT>
<!-- End removal area. -->

<SCRIPT LANGUAGE="javascript" SRC="../Shared/MM/Scripts/CMN/DOM.js"></SCRIPT>
<SCRIPT LANGUAGE="javascript" SRC="../Shared/MM/Scripts/CMN/errMsg.js"></SCRIPT>
<SCRIPT LANGUAGE="javascript" SRC="Clean Up HTML.js">
<!--
//
// Command: Clean Up HTML
//
//  This command cleans up certain categories of superfluous
//  HTML within the user document without effecting document
//  layout.  This command makes two passes over the users
//  document depending on the options selected; see
//  cleanUpDocument() in Clean Up HTML.js for more details.
//
//--------------- LOCALIZEABLE GLOBALS---------------

var MSG_ErrEmptyDoc           = dw.loadString('Commands/Clean_Up_HTML/MSG_ErrEmptyDoc');
var MSG_UnknownNodeType       = dw.loadString('Commands/Clean_Up_HTML/MSG_UnknownNodeType');
var MSG_NoTagsToRemove        = dw.loadString('Commands/Clean_Up_HTML/MSG_NoTagsToRemove');
var MSG_ParseErrUnbalancedPRE = dw.loadString('Commands/Clean_Up_HTML/MSG_ParseErrUnbalancedPRE');
var MSG_ParseErrEndQuote      = dw.loadString('Commands/Clean_Up_HTML/MSG_ParseErrEndQuote');
var MSG_ParseErrUnexpectedEQU = dw.loadString('Commands/Clean_Up_HTML/MSG_ParseErrUnexpectedEQU');
var MSG_ParseErrValue         = dw.loadString('Commands/Clean_Up_HTML/MSG_ParseErrValue');
var MSG_ErrParentChild        = dw.loadString('Commands/Clean_Up_HTML/MSG_ErrParentChild');
var MSG_ErrDeepNesting        = dw.loadString('Commands/Clean_Up_HTML/MSG_ErrDeepNesting');
var MSG_WarnDWCommentRemove   = dw.loadString('Commands/Clean_Up_HTML/MSG_WarnDWCommentRemove');
var MSG_TrcSummaryHeader      = dw.loadString('Commands/Clean_Up_HTML/MSG_TrcSummaryHeader');
var MSG_TrcEmptyRemoved       = dw.loadString('Commands/Clean_Up_HTML/MSG_TrcEmptyRemoved');
var MSG_TrcRedundantRemoved   = dw.loadString('Commands/Clean_Up_HTML/MSG_TrcRedundantRemoved');
var MSG_TrcTagsRemoved        = dw.loadString('Commands/Clean_Up_HTML/MSG_TrcTagsRemoved');
var MSG_TrcCommentsRemoved    = dw.loadString('Commands/Clean_Up_HTML/MSG_TrcCommentsRemoved');
var MSG_TrcFontsCombined      = dw.loadString('Commands/Clean_Up_HTML/MSG_TrcFontsCombined');
var MSG_TrcDidNothing         = dw.loadString('Commands/Clean_Up_HTML/MSG_TrcDidNothing');
var MSG_TracingAttrsRemoved   = dw.loadString('Commands/Clean_Up_HTML/MSG_TracingAttrsRemoved');
var MSG_XHTMLFixed            = dw.loadString('Commands/Clean_Up_HTML/MSG_XHTMLFixed');
var MSG_XHTMLAddedScriptType  = dw.loadString('Commands/Clean_Up_HTML/MSG_XHTMLAddedScriptType');
var MSG_XHTMLChangedCase      = dw.loadString('Commands/Clean_Up_HTML/MSG_XHTMLChangedCase');
var MSG_XHTMLAddedMissingID   = dw.loadString('Commands/Clean_Up_HTML/MSG_XHTMLAddedMissingID');
var MSG_XHTMLMissingMapID      = dw.loadString('Commands/Clean_Up_HTML/MSG_XHTMLMissingMapID');
var MSG_XHTMLMissingScriptType = dw.loadString('Commands/Clean_Up_HTML/MSG_XHTMLMissingScriptType');
var MSG_XHTMLMissingStyleType  = dw.loadString('Commands/Clean_Up_HTML/MSG_XHTMLMissingStyleType');
var MSG_XHTMLMissingImgAlt     = dw.loadString('Commands/Clean_Up_HTML/MSG_XHTMLMissingImgAlt');
var MSG_XHTMLMissingAreaAlt    = dw.loadString('Commands/Clean_Up_HTML/MSG_XHTMLMissingAreaAlt');

var MENU_CleanupHTML          = dw.loadString('Commands/Clean_Up_HTML/MENU_CleanupHTML');
var MENU_CleanupXHTML         = dw.loadString('Commands/Clean_Up_HTML/MENU_CleanupXHTML');

//--------------- END LOCALIZEABLE   ---------------

// -->
</SCRIPT>
<link href="../fields.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY onLoad="initialize()" >
<FORM NAME="optionsForm">
  <TABLE WIDTH="350" BORDER="0" cellpadding="4" cellspacing="2" >
    <TR>
      <TD rowspan="5" ALIGN="right" VALIGN="top" NOWRAP><MMString:loadString id="Commands/Clean_Up_HTML/text/Remove" /></TD>
      <TD VALIGN="top" NOWRAP>
           
        <!-- Note: checkbox names are referenced in function initialize() -->
           <INPUT TYPE="checkbox" NAME="removeEmptyTags" CHECKED>
           <MMString:loadString id="Commands/Clean_Up_HTML/checkbox/removeEmptyTags/Empty" />
           </TD>
    </TR>
    <TR>
      <TD VALIGN="top" NOWRAP><INPUT TYPE="checkbox" NAME="removeRedundantChildren" CHECKED>
           <MMString:loadString id="Commands/Clean_Up_HTML/checkbox/removeRedundantChildren/Redundant" />
           </TD>
    </TR>
    <TR>
      <TD VALIGN="top" NOWRAP><INPUT TYPE="checkbox" NAME="removeNDWComments">
           <MMString:loadString id="Commands/Clean_Up_HTML/checkbox/removeNDWComments/NonDreamweaver" />
           </TD>
    </TR>
    <TR>
      <TD VALIGN="top" NOWRAP><INPUT TYPE="checkbox" NAME="removeDWComments" ONCLICK="if (this.checked) alert( MSG_WarnDWCommentRemove );focus(this)" >
           <MMString:loadString id="Commands/Clean_Up_HTML/checkbox/removeDWComments/Dreamweaver" />
           </TD>
    </TR>
    <TR>
      <TD VALIGN="top" NOWRAP><INPUT TYPE="checkbox" NAME="removeTag">
           <MMString:loadString id="Commands/Clean_Up_HTML/checkbox/removeTag/Specific" />
        <INPUT NAME="tagsToRemove" TYPE="text" class="medTField" onBlur="if(this.value!='')document.optionsForm.removeTag.checked=true"></TD>
    </TR>
    <TR>
      <TD rowspan="2" ALIGN="right" VALIGN="top" NOWRAP><MMString:loadString id="Commands/Clean_Up_HTML/text/Options" /></TD>
      <TD VALIGN="top" NOWRAP>
           <INPUT TYPE="checkbox" NAME="combineFonts" CHECKED>
           <MMString:loadString id="Commands/Clean_Up_HTML/checkbox/combineFonts/Combine" /> <code><MMString:loadString id="Commands/Clean_Up_HTML/text/font" /></code> <MMString:loadString id="Commands/Clean_Up_HTML/text/Tags" /></TD>
    </TR>
    <TR>
      <TD VALIGN="top" NOWRAP><INPUT TYPE="checkbox" NAME="showLog" CHECKED>
           <MMString:loadString id="Commands/Clean_Up_HTML/checkbox/showLog/Show" />
</TD>
    </TR>
  </TABLE>
</FORM>
</BODY>
</HTML>
