<!-- Copyright 2001, 2002, 2003 Macromedia, Inc. All rights reserved. -->
<html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<head>
<title><MMString:loadString id="Toolbars/MM/EditLink/title" /></title>

<script language="JavaScript">
function isDOMRequired()
{
	return false;
}

function receiveArguments(newLink)
{
	if (dw.getFocus(true) == 'html' || dw.getFocus() == 'textView') 
	{
		dw.getDocumentDOM().source.wrapSelection('<a href="' + newLink + '">',
			'</a>');
	}
	else if (newLink == '')
	{
		if (dw.getDocumentDOM().getLinkHref() != '')
			dw.getDocumentDOM().removeLink();
	}
	else
	{
		dw.getDocumentDOM().setLinkHref(newLink);
	}
}

function canAcceptCommand()
{
	return true;
}

function getCurrentValue()
{
	return dw.getDocumentDOM().getLinkHref(); 
}
</script>
</head>

<body>
</body>
</html>
