
/* DISPLAY PRINT-FRIENDLY PAGE
   This was not created as a function so that it's automatically run when the page is
   opened. (Using "onload" in the body tag won't work since the script creates 
   code meant for the header) */
   
	// 1. Get the query string variables, ignore the ? at the front.
		var querystring = location.search.substring(1,location.search.length);
		
	// 2. If there's anything in querystring (i.e. "print=yes") import the print-friendly CSS stylesheet
	if (querystring != "") {
		document.write('<style type="text/css">\n' + 
			'@import url(../../css/print.css);\n' +
			'</style>');
	
		// 3. Auto-activate the browser's "print" command
		window.print();
	}
	

function popBranchLocator(address) {
	var queryString = (address && address != 'Enter Zip Code') ? "?address="+ address : '';
	var options = "width=800, height=700, scrollbars=yes";
	var bl = window.open("http://www.tdameritrade.com/branchlocator/index.html"+queryString,"bl",options);
	}