<!-- 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/asp/aspif" /></title>

<script language="javascript">

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

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

function objectTag() {
	// Manually insert tag, and then put IP inside it.
	var dom = dw.getDocumentDOM();
	var docType = dom.documentType;
	var before,after;
	if (docType == 'ASP-JS'){
		before = '<% if (';
		after  = ') %>';
	}else if (docType == 'ASP-VB'){
		before = '<% If ';
		after  = ' Then %>';
	}
		
	dom.source.wrapSelection(before,after);

  // Just return -- don't do anything else.
  return;
}

</script>
	
</head>

<body>
</body>

</html>
