function getConfig()
{
	var config = new configOptions();
	try
	{
		var rawConfigOptions = getURLParameters("configOptions");
		if (rawConfigOptions != "")
		{
			config.configSpecified = true;
			config.configOptions = rawConfigOptions;
		}

	}
	catch (e)
	{ }
	return config;
}

//Helper functions
function getURLParameters(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];
}

//Objects
function configOptions()
{
	this.configSpecified = false;
	this.configOptions = null;
}
