<!-- 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_Submit/title" /></title>
<script src="../../Shared/MM/Scripts/Cmn/localText.js"></script>
<script>
//--------------- LOCALIZEABLE GLOBALS---------------
var MSG_Submit = dw.loadString('Menus/MM/CC_Submit/MSG_Submit');
var MSG_Publish = dw.loadString('Menus/MM/CC_Submit/MSG_Publish');
//--------------- 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 Submit here"); 
	else if (arguments[0] == "Contributor Approver")
		alert("Contribute Alert: Do Contributor Approver Submit here"); 
	else if (arguments[0] == "Approver")
		alert("Contribute Alert: Do Approver Submit here"); 
	else
		alert("Unknown Submit Class");
	} //receiveArguments
	
	
	
function getDynamicContent(itemID)
	{
	var result = new Array(); 
	
	if (cc.userType == "Contributor" || cc.userType == "Approver")
		result.push(MSG_Submit + ";id='" + cc.userType + "'"); 
	else
		result.push(MSG_Publish + ";id='" + cc.userType + "'"); 
	
	return result; 
	} //getDynamicContent
	
	
</script>
</head>
<body >
</body>
</html>
