function changeSearchAction() {
	var search_form = document.getElementById("searchForm")
	var search_hidden_input = document.getElementById("searchHiddenInput")
	var search_input = document.getElementById("inputSearch")

	if ( document.forms['search'].searchAction[0].checked == true ) {
		search_form.action="http://www.gordontraining.com/shop-bin/sc/productsearch.cgi?storeid=*2c4b7e2b1abe7af87e6b8c018179f14dfd0636ab4c9b4bb1";
		search_hidden_input.name="storeid";
		search_hidden_input.value="*2c4b7e2b1abe7af87e6b8c018179f14dfd0636ab4c9b4bb1";
		search_input.name="search_field";
	} else {
		search_form.action="http://gordontraining.web02.yourhost.com/cgi-bin/artman2/search.cgi";
		search_hidden_input.name="action";
		search_hidden_input.value="search";
		search_input.name="keyword";
	}
	search_form.submit();
}

var cookies=unescape(this.document.cookie);  //read in all cookies
var start = cookies.indexOf("LineCnt:");
var startPoint = cookies.substring(start, cookies.length); //chop off everything before the actual variables
var storeType = 'PROFESSIONAL'
var _jd = 'sd360';
var minicart = ""

if (start == -1) {
	minicart = '<a href=\"http://www.gordontraining.com/shop-bin/sc/order.cgi?storeid=*22a7bbab73c1e2acbb66a014d05794bd4f96da&function=show\" style=\"text-decoration: none\">0 Items</a>';
} else {
	replc1 = startPoint.replace("SubTotal:", ''); //set value to blank so we can insert our own
	replc2 = replc1.replace("QntyTotal:", '');
	
	var myArray = replc2.split('|'); //split the string at each pipet
	
	minicart = '<a href=\"http://www.gordontraining.com/shop-bin/sc/order.cgi?storeid=*22a7bbab73c1e2acbb66a014d05794bd4f96da&function=show\" style=\"text-decoration: none\">';
	minicart += 'Items&nbsp;'+myArray[1]+'&nbsp;|&nbsp;'+myArray[2];
	minicart += '</a>';
}