<!-- MENU-LOCATION=NONE -->
<html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<head>
<!-- Copyright 2001, 2002, 2003 Macromedia, Inc. All rights reserved. -->
<title><MMString:LoadString id="insertbar/textH3" /></title>
<script language="javascript">

//---------------     API FUNCTIONS    ---------------

function isDOMRequired() {
	// Return false, indicating that this object is available in code view.
	return false;
}

function objectTag() {
	// Manually wrap tags around selection.
	var dom = dw.getDocumentDOM();
	if (dw.getFocus() == 'textView' || dw.getFocus(true) == 'html'){
    var upCaseTag = (dw.getPreferenceString("Source Format", "Tags Upper Case", "") == 'TRUE');
  	// Manually wrap tags around selection.
    if (upCaseTag){
      dom.source.wrapSelection('<H3>','</H3>');
    }else{
  		dom.source.wrapSelection('<h3>','</h3>');
    }
	}else if (dw.getFocus() == 'document'){
		dom.setTextFormat("h3");
  }
  
  // Just return -- don't do anything else.
  return;
}

</script>

</head>

<body>
</body>

</html>
