// Used to open up section using just an anchor link
// This is for anyone linking to our sections


// RULES
// -- If two areas need to be opened at once, the first character is in uppercase. eg ("Limitorder" calls the showhide function with just the "L")
// -- If three areas need to be opened at once, the first character is in uppercase and the second and maybe third character is a number. eg ("L3Limitorder" calls the showhide function with just the "L" and L3, anchor is for #L3Limitorder)
// -- All other areas use lowercase for first character so it does not cut off the name. eg ("sell" still uses sell to open up function, not "s")

<!----- Edit the areas with comments ----->

// Section number default value goes here
var defaultValue = '';

var anchorSym = '#';

function getQueryStringParamValue(strQStrParam)
{
var strURL = document.location.href;
var anchorName = '';
var num = /(^\d+$)|(^\d+\.\d+$)/; // Can't be number
	if (strURL.indexOf(anchorSym) != -1)
	{
		anchorName = strURL.substr(strURL.indexOf(anchorSym) + 1);
		if (anchorName.charAt(0)==anchorName.charAt(0).toUpperCase() && num.test(anchorName.charAt(1))){
			tableName = anchorName.charAt(0).toUpperCase();
			if (num.test(anchorName.charAt(2))){
				anchorName =  anchorName.charAt(0).toUpperCase() + anchorName.charAt(1) + anchorName.charAt(2);
			}else{
				anchorName =  anchorName.charAt(0).toUpperCase() + anchorName.charAt(1);
			}
			showhide('g'+anchorName,'g'+tableName);
		}else if (anchorName.charAt(0)==anchorName.charAt(0).toUpperCase() && anchorName != "top" && !num.test(anchorName)){
			tableName = anchorName.charAt(0).toUpperCase();
			showhide('g'+anchorName,'g'+tableName);
		} else if (anchorName != "top") { 
			alert('df');
			showhide('g'+anchorName);
		}
	}else{
		anchorName = defaultValue;
	}
}
 
window.onload = openSection;
 
function openSection(){
	var sectionNum = "";
	// Edit areas with discription below
	sectionNum = getQueryStringParamValue(anchorSym);
	<!----- Query name to append example: http://www.eloqua.com?c=retail, Query name in this case is "c"-->
}