function processSubmit(type)
{

	var ReqID="SNID";
	var msg=g_newsletterSub;


	if(type=="UnSubscribe")
	{
		ReqID="UNID";
		msg=g_newsletterUnSub;
	}
		
	selectedCount = 0;
	
	// The base of the inSight subscription URL
	finalString = g_MSNNewsletterURL;
	finalString += "?EM=&" + ReqID + "=";
	
	// Now we add the newsletters by code
	for (x = 1; x <= newsCounter; x++)
	{
		if (document.getElementById("news" + x).checked)
		{
			if (selectedCount > 0)
				finalString += ",";
				
			finalString += document.getElementById("news" + x).value;
			selectedCount++;	
		}
	}
	
	// Stop the process if they havn't selected any newsletters
	if (selectedCount == 0)
	{
		alert(msg);
		return;
	}
	
	// We don't want a confirmation email
	finalString += "&CONF=1&";
	
	// Preference code, always HTML. Configurable PC will be taken up as a seperate feature request later
	finalString += "PC=HTM&";
	
	// Now the minotaur code
	finalString += "CN=Games&";
	
	// Now the return URL
	finalString += "RE=http://" + g_ZoneServer + "/utility/redir/newsletterRedirect.aspx";
	
	// Bouncie, Bouncie
	location.href = finalString;
}