function loadData(URL)
{
// Create the XML request
    xmlReq = null;
    if(window.XMLHttpRequest) xmlReq = new XMLHttpRequest();
    else if(window.ActiveXObject) xmlReq = new ActiveXObject("Microsoft.XMLHTTP");
    if(xmlReq==null) return; // Failed to create the request

// Anonymous function to handle changed request states
    xmlReq.onreadystatechange = function()
    {
        switch(xmlReq.readyState)
        {
        case 0: // Uninitialized
            break;
        case 1: // Loading
            break;
        case 2: // Loaded
            break;
        case 3: // Interactive
            break;
        case 4: // Done!
        // Retrieve the data between the <quote> tags
			var xml = xmlReq.responseXML;
			var count = xml.getElementsByTagName('quote').length;
			var random = Math.floor(Math.random()*count);
			//var quote = xml.getElementsByTagName('quote')[random].firstChild.data;
			var selQuote = xml.getElementsByTagName('quote')[random];
			var quote = selQuote.getElementsByTagName('p')[0].firstChild.data;
			var quotee = selQuote.getElementsByTagName('p')[1].firstChild.data;
			var output = '<p class="quote">' + quote + '</p>';
			var output = output + '<p class="quotee">' + quotee + '</p>';			
			doSomethingWithData(output);
            break;
        default:
            break;
        }
    }

// Make the request
    xmlReq.open ('GET', URL, true);
    xmlReq.send (null);
}

function returnData()
{
}