function ajaxManager()
	{
	var args = ajaxManager.arguments;
	switch (args[0])
		{
		case "load_page":
		if (document.getElementById) {
			var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
			}
			if (x)
				{
			x.onreadystatechange = function()
					{
				if (x.readyState == 4 && x.status == 200)
						{
						el = document.getElementById(args[2]);
						el.innerHTML = x.responseText;
						
					}
					}
				x.open("GET", args[1], true);
				x.send(null);
				}
			break;
		case "profile":
			ajaxManager('load_page', 'profile.php', 'profile_text');
			break;
		case "testingXML":
		ajaxManager('load_page', 'photoflow.php', 'testingXML');
			break;
	
		}
	}


