<!-- MENU-LOCATION=NONE -->
<!-- Copyright 2001, 2002, 2003 Macromedia, Inc. All rights reserved. -->


<html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<head>
<title><MMString:loadString id="Menus/MM/CC_Delete/title" /></title>
<script src="../../Shared/MM/Scripts/Cmn/localText.js"></script>
<script>
//--------------- LOCALIZEABLE GLOBALS---------------
var MSG_Delete = dw.loadString('Menus/MM/CC_Delete/MSG_Delete');
var MSG_Approve = dw.loadString('Menus/MM/CC_Delete/MSG_Approve');
//--------------- END LOCALIZEABLE   ---------------


//This file generates one of the three different 'submit' menu items, depending on whether the Contributor user: 
//is an approver, or a contributor with or without approval menus. 
	
function canAcceptCommand()
	{
	return true; //CONTRIBUTE ALERT: FILL THIS IN
	} //canAcceptCommand
	
	
function receiveArguments()
	{
	//CONTRIBUTE ALERT: FILL THIS IN 
	if (arguments[0] == "Contributor")
		alert("Contribute Alert: Do Contributor Delete here"); 
	else if (arguments[0] == "Contributor Approver")
		alert("Contribute Alert: Do Approve Page and Submit here"); 
	else if (arguments[0] == "Approver")
		alert("Contribute Alert: Do Delete here"); 
	else
		alert("Unknown Submit Class");
	} //receiveArguments
	
	
	
function getDynamicContent(itemID)
	{
	var result = new Array(); 
	
	if (cc.userType == "Contributor")
		result.push(MSG_Delete + ";id='" + cc.userType + "'"); 
	else if (cc.userType == "Approver")
		result.push(MSG_Approve + ";id='" + cc.userType + "'"); 
	else
		result.push(MSG_Delete + ";id='" + cc.userType + "'"); 
		
	return result; 
	} //getDynamicContent
	
	
</script>
</head>
<body >
</body>
</html>
