// 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("ViewRental=1") != -1)
{
   //alert("about to refresh");
   location.href=" browse.do?action=refresh_browse&ctg_id=84715";

}

if(location.href.indexOf("ViewExtinguisher=1") != -1)
{
   //alert("about to refresh");
   location.href=" browse.do?action=refresh_browse&ctg_id=83997";

}

if(location.href.indexOf("ViewFootwear=1") != -1)
{
  //alert("about to refresh");
  location.href="browse.do?action=refresh_browse&ctg_id=84003";

}
if(location.href.indexOf("ViewFirstAid=1") != -1)
{
                //alert("about to refresh");
                location.href=" browse.do?action=refresh_browse&ctg_id=84008";
}

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";
}

if(location.href.indexOf("ViewFireEMS=1") != -1)
{
  //alert("about to refresh");
  location.href="browse.do?action=refresh_browse&ctg_id=84745";
}
