// $Header: $
//////////////////////////////////////////////////////////////////////

// Remove the "Continue Shopping" button.			
function EJEJC_config()
{
	// Border color of of popup shopping cart window.
	EJEJC_BRDRCOLOR = "#009";
					
	// Change the pixel width of the cart window:
	EJEJC_WIDTH = 600;
					
	// Change the pixel height of the cart window:
	EJEJC_HEIGHT = 475;
				
	// Must be set so that the settings in the function below takes effect.
	EJEJC_POSTCALL=true;
}

function EJEJC_shown()
{
	// Do not show the Continue Shopping button.
	jQuery("#btnContShop").remove();
					
	// Custom message.
	var msg1 =
		"Discount will be applied after you enter the number of users or discount code and click Update Cart.<br><br>";
	var msg2 =
		'<strong>Note:</strong> On the next page, the email address you enter depends on your situation:<br>' +
			'<ul style="padding-left: 1.5em;">' +
				'<li>Registered for trial or adding additional users:<br><span class="note" style="margin-left: 1em;">The SendToQuickBase Administrator\'s email address.</span></li>' +
				'<li>Never registered:<br><span class="note" style="margin-left: 1em;">Your email address.</span></li>' +
				//'<li>Purchasing Additional Users:<br><span class="note" style="margin-left: 0px;">The SendToQuickBase Administrator\'s email address.</span></li>' +
			'</ul>';
	
	var custom_msg = "<p style='margin-top: -2em; margin-right: 0;'>" + msg1 + msg2 + "</p>";

	jQuery("#tdPmnt").attr("innerHTML", custom_msg);

	// Change the column heading "Quantity" in the cart to "Number of Users".
	// e-junkie provides no id on the Quantity column heading, but that won't stop us.
	// "ejejctable" is the id on the table element.  Grab the table, then the first tr
	// element, then the 4th td element.  That is the column heading to be changed.
	try
	{
		var qtyheading = jQuery("#ejejctable tr:nth-child(1) td:nth-child(4)");

		// Make sure we have the correct column heading before changing it.
		if (qtyheading.attr("innerHTML").toLowerCase() == '<b>quantity</b>')
			qtyheading.attr("innerHTML", '<b>Number of Users</b>');
	}
	catch(e)
	{
	}
}
