<!-- 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_AddArticle/title" /></title>
<script src="../../Shared/MM/Scripts/Cmn/localText.js"></script>
<script>
//--------------- LOCALIZEABLE GLOBALS---------------
var MSG_Reject = dw.loadString('Menus/MM/CC_AddArticle/MSG_Reject');
var MSG_Delete = dw.loadString('Menus/MM/CC_AddArticle/MSG_Delete');
var MSG_AddArticle = dw.loadString('Menus/MM/CC_AddArticle/MSG_AddArticle');
//--------------- 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] == "add")
		alert("Contribute Alert: Do Add Article here"); 
	else if (arguments[0] == "reject")
		alert("Contribute Alert: Do Reject Page here"); 
	else if (arguments[0] == "delete")
		alert("Contribute Alert: Do Delete Page here"); 
	else
		alert("Unknown Submit Class");
	} //receiveArguments
	
	
	
function getDynamicContent(itemID)
	{
	var result = new Array(); 
	
	if (cc.userType == "Contributor")
		result.push(MSG_AddArticle + ";id='add'"); 
	else if (cc.userType == "Approver")
		{
		result.push(MSG_Reject + ";id='reject'"); 
		result.push(MSG_Delete + ";id='delete'"); 
		result.push(MSG_AddArticle + ";id='add'"); 
		}
	else
		result.push(MSG_AddArticle + ";id='add'"); 

	return result; 
	} //getDynamicContent
	
	
</script>
</head>
<body >
</body>
</html>
