//Parses the URL query string and it into a key/value pair array
function parseQuery() {
	// an associative array for the query pairs to go in:
	var Hash = new Array();

	// split the query string into an array of pairs:
	var Pairs = document.location.href.split('?')[1].split('&');

	// take each of those pairs...
	for (var i = 0; i < Pairs.length; i++) {
		// split it into an array of two...
		var OnePair = Pairs[i].split('=');

		// and use those values to create a new key/value pair
		// in our main array...
		Hash[OnePair[0]] = OnePair[1];
	}

	// ...which we return.
	return Hash;
}

function openPopUp(url, windowName) {
	window.open(url, windowName, "toolbar=no, menubar=no, scrollbars=yes, resizable=yes, height=700, width=800");
}
