	// Hide the View Box
	function hideViewBox(title)
	{
		document.getElementById(title + "ViewBoxContainer").style.display = 'none';
		
		// No value should be returned
		return false;
	}
	// Hide the View Box
		
	// Start the View Box GUI function
	function showViewBox(title)
	{
		document.getElementById(title + "ViewBoxContainer").style.display = 'block';
		
		// No value should be returned
		return false;
	}
	// Close the View Box GUI function
	
	function registerNewUser()
	{
		var email		= document.getElementById('NewEmail').value;
		var fullname	= document.getElementById('NewFullname').value;
		var password	= document.getElementById('NewPassword').value;
		
		xmlHttp = newAjax();
		
		xmlHttp.onreadystatechange = function()
		{
			if (xmlHttp.readyState == 4)
			{
				var finalReport = "";
				
				var statusReport = xmlHttp.responseText;
				statusReport = statusReport.split("\n");
				
				var statusCodes = statusReport[0].split("|");
				var statusInfo  = statusReport[1].split("|");
				
				if (statusCodes[statusCodes.length-1] == "X")
				{
					finalReport += "<b>Error:</b> ";
					finalReport += statusInfo[statusCodes.length-1] + ".";
				}
				else
				{
					finalReport += "<b>Success:</b> Your profile was created!<br />Sign in using the form at the top of the screen.";
				}
				
				document.getElementById("updateViewBoxTitle").innerHTML = fullname;
				document.getElementById("updateViewBoxContent").innerHTML = "<p style=\"margin: 7px 7px; text-indent: 0;\">" + finalReport + "</p>";
				document.getElementById("updateViewBoxButtons").innerHTML = "HostedGroups Account";
				document.getElementById("updateViewBoxButtons").style.color = "#808080";
				document.getElementById("updateViewBoxButtons").style.textAlign = "right";
				showViewBox("update");
			}
		}
		
		var url	 = "/ajax-register.php";
		    url	+= "?email=" + email;
		    url	+= "&fullname=" + fullname;
		    url	+= "&password=" + password;
		
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}
