var myText = '<link href="http://www.busyit.co.uk/cell.css" rel="stylesheet" type="text/css" media="all" /><div id="menu_container"><div style="float:right;"><a onclick="closeContainer()">CLOSE</a></div><div style="clear:both;"></div><div>TESTING123</div></div><div style="float:right; display:none;" id="open_button"><a onclick="openContainer()">Open</a></div><div style="clear:both;"></div>';

document.write(myText);


function closeContainer() {
	document.getElementById("menu_container").style.display="none";
	document.getElementById("open_button").style.display="inline"
}

function openContainer() {
	document.getElementById("open_button").style.display="none"
	document.getElementById("menu_container").style.display="inline";


}

function getName() {
	document.write("JORDAN");
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
 	{	// Firefox, Opera 8.0+, Safari
 		xmlHttp=new XMLHttpRequest();
 	}
	catch (e)
 	{	//Internet Explorer
 		try
 		{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
 		catch (e)
  		{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
 	}
	
	return xmlHttp;
}



function callAlert()
{
	alert("CALLED");
}


function useXML()
{
	xmlHttp=GetXmlHttpObject();

	if (xmlHttp==null)
	{	alert ("Browser does not support HTTP Request");
		return;
	}



	//xmlHttp.onreadystatechange=state_Change;

	xmlHttp.open("GET","http://www.busyit.co.uk/jordan.php?name=JORDAN",false);
	xmlHttp.send(null);



	//document.getElementById(XXXXXXXXXXX).innerHTML = xmlHttp.responseText;

	alert(xmlHttp.responseText);
}
