var asc_xml = "asc_info.xml";

//
// XML Functions
// Functions used to manipulate the XML document we have
// that contains the club information.
//

function loadXMLDoc(dname) 
{
	var xmlDoc;
	if (window.XMLHttpRequest)
	{
		xmlDoc=new window.XMLHttpRequest();
		xmlDoc.open("GET",dname,false);
		xmlDoc.send("");
		return xmlDoc.responseXML;
	}
	// IE 5 and IE 6
	else if (ActiveXObject("Microsoft.XMLDOM"))
	{
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.async=false;
		xmlDoc.load(dname);
		return xmlDoc;
	}
	alert("Error loading document");
	return null;
}

//
// Javascript Function
//

// Found at http://www.netlobo.com/comments/url_query_string_javascript
// Allows us to get the variables from the URL without resorting to PHP.

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}