function getQueryStringVariable(name) {
	// Get Query String
	var queryString = location.search.substring(1); 

	// Split query at the &
	var pairs = queryString.split("&");

	// Begin loop through the querystring
	for(var i = 0; i < pairs.length; i++) {
		
		// Look for "name=value"
		var pos = pairs[i].indexOf('=');
		
		// if not found, skip to next
		if (pos >= 0) {
			
			// Extract the variable name
			var varName = pairs[i].substring(0,pos);
			
			if (varName.toUpperCase() == name.toUpperCase()) {
				// Extract and return the variable value
				return varValue = unescape(pairs[i].substring(pos+1));
			}
		}
	}
	
	// Could not find variable in Query String
	return null;
}

function selectList(list, selected) {
	for (var i = 0; i < list.options.length; i++) {
		list.options[i].selected = selected;
	}
}

function empty() {
}