// this code was written by Jim Christiano 8/23/07
// it resumbits the search form if we post from our corporate website
// without this the struts token will prevent a true search

if(location.href.indexOf("SimpleSearchFormFromCorp=1") != -1)
{
	//alert("about to refresh");
	//alert(document.forms["simpleSearchForm"]);
	document.forms["simpleSearchForm"].submit();
}


if(location.href.indexOf("ViewSpecialsFromCorp=1") != -1)
{
	//alert("about to refresh");
	location.href="specials.do?action=view_specials";
}

if(location.href.indexOf("LoginRequestFromCorp=1") != -1)
{
	//alert("about to refresh");
	location.href="login.do?action=login_request";
}

if(location.href.indexOf("RentalFromCorp=1") != -1)
{
	//alert("about to refresh");
	location.href="browse.do?action=refresh_browse&ctg_id=21218";
}