Rebates
function refineBy(type, refineValue, currentQueryId, nextQueryId) {
//alert(refineValue + "\n" + encodeURIComponent(refineValue));
var location = "/v4/view?pageReq=MSearchResults&" + type + "=" + encodeURIComponent(refineValue) + "¤tMQuery=" + currentQueryId + "&nextMQuery=" + nextQueryId;
//var location = "/v4/view?pageReq=MSearchResults&" + type + "=" + escape(refineValue) + "¤tMQuery=" + "" + "&nextMQuery=" + "";
if (!displayAllBrands) {
location += "&allBrands=0";
}
var selectedRefinements = getSelectedRefinements();
location += "&expandedDivs=" + selectedRefinements.expandedDivs;
this.location.href = location;
return false;
}
function updateResults(currentQueryId) {
var location = "/v4/view?pageReq=MSearchResults¤tMQuery=" + currentQueryId;
if (!displayAllBrands) {
location += "&allBrands=0";
}
var selectedRefinements = getSelectedRefinements();
location += "&expandedDivs=" + selectedRefinements.expandedDivs;
// gar - refineOptionOrder is too large to use in a get, expandedDivs should be ok for now, if need refineOptionOrder then switch to a Post.
//location += selectedRefinements.refineOptionOrder;
this.location.href = location;
return false;
}
function updateRefinementCounts(element, type, refineValue, currentQueryId, nextQueryId, breadCrumbId) {
showReminderDiv(element);
var grayOutDiv = document.getElementById('grayOutRefinements');
grayOutDiv.style.height = document.getElementById('FilterNav').offsetHeight + "px";
grayOutDiv.style.display = "";
var url = "/v4/view?pageReq=updateRefinementCounts";
var data = "";
if(breadCrumbId != '')
data = "deleteBreadCrumb=" + breadCrumbId + "¤tMQuery=" + currentQueryId + "&nextMQuery=" + nextQueryId;
else
data = type + "=" + encodeURIComponent(refineValue) + "¤tMQuery=" + currentQueryId + "&nextMQuery=" + nextQueryId;
var moreRefineDivState = document.getElementById("moreRefinements").style.display != "none" ? "expanded" : "";
if(moreRefineDivState == "expanded")
data += "&moreRefine=expanded";
var selectedRefinements = getSelectedRefinements();
//url += "&xml=true";
if (!displayAllBrands) {
data += "&allBrands=0";
}
data += "&expandedDivs=" + selectedRefinements.expandedDivs;
data += selectedRefinements.refineOptionOrder;
var xmlHttp = GetXmlHttpObject();
sendXmlHttp(xmlHttp, url, data, function(){ stateChangedUpdateRefinementCounts(xmlHttp); });
}
function getSelectedRefinements() {
var expandedDivs = "";
var brandDiv = document.getElementById("BrandRefinement");
var brandDivState = "";
var refineOptionOrder = "";
var refineOptionCount = 0;
var singleRefinementDiv = document.getElementById("singleRefinementDiv");
if(singleRefinementDiv){
var singleChildren = singleRefinementDiv.getElementsByTagName("a");
for(var i = 0; i < singleChildren.length; i++){
if(singleChildren[i].name == "singleRefinementLink"){
refineOptionCount++;
refineOptionOrder += "&Refinement" + refineOptionCount + "=" + encodeURIComponent(singleChildren[i].innerHTML);
}
}
}
if(brandDiv)
brandDivState = brandDiv.style.display != "none" ? "expanded" : "";
if(brandDivState != "")
expandedDivs = "Brand";
var refineContainerDiv = document.getElementById("refineContainer");
if(refineContainerDiv){
var children = refineContainerDiv.getElementsByTagName("div");
for(var i = 0; i < children.length; i++){
if(children[i].id.indexOf("option") == 0){
var refinementNameDiv = document.getElementById("Name" + children[i].id);
if(refinementNameDiv){
if(children[i].style.display != "none"){
if(expandedDivs == ""){
expandedDivs = encodeURIComponent(refinementNameDiv.innerHTML);
}
else{
expandedDivs += "|" + encodeURIComponent(refinementNameDiv.innerHTML);
}
}
refineOptionCount++;
refineOptionOrder += "&Refinement" + refineOptionCount + "=" + encodeURIComponent(refinementNameDiv.innerHTML);
}
}
}
}
return {expandedDivs:expandedDivs,refineOptionOrder:refineOptionOrder};
}
function showReminderDiv(element) {
if(showReminder) {
var reminderDiv = document.getElementById("updateResultsReminder");
var elementPosition = findElementPosition(element);
var x = elementPosition.left + 140;
var y = elementPosition.top - 60;
reminderDiv.style.position = "absolute";
reminderDiv.style.left = x + "px";
reminderDiv.style.top = y + "px";
reminderDiv.style.display = "";
showReminder = false;
}
}
function findElementPosition(obj) {
var curleft = curtop = 0;
if (obj.offsetParent) {
do {
curleft += obj.offsetLeft;
curtop += obj.offsetTop;
}
while (obj = obj.offsetParent);
//return [curleft,curtop];
return {left:curleft,top:curtop};
}
}
function closeUpdateResultsReminder(){
if(document.getElementById("suppressMessage").checked){
var xmlHttp = GetXmlHttpObject();
sendXmlHttp(xmlHttp, "/v4/dh", "Request=postForm&formName=suppressUpdateResultsMessage&suppressMessage=true", null, null);
}
document.getElementById("updateResultsReminder").style.display = "none";
}
function stateChangedUpdateRefinementCounts(xmlHttpLocal) {
if (xmlHttpLocal.readyState == 4 || xmlHttpLocal.readyState == "complete")
{
var response = xmlHttpLocal.responseText;
//alert("jLoggerWrite...");
//jLoggerWrite("", "response " + response);
var categoryRefinementDiv = document.getElementById("categoryRefinement");
if (categoryRefinementDiv != null) {
var children = categoryRefinementDiv.getElementsByTagName("span");
for(var i = 0; i')[1].split('\')[0];
var categoryList1 = null;
var categoryListString = null;
categoryList1 = response.split('\');
if(typeof(categoryList1) != 'undefined' && categoryList1 != null) {
categoryListString = categoryList1[1].split('\ ')[0];
}
if (categoryListString != null) {
var categories = categoryListString.split('^');
for(var i = 0; i')[1].split('\')[0];
var updateableRefinementsString = null;
var updateableRefinements1 = null;
updateableRefinements1 = response.split('\');
if(typeof(updateableRefinements1) != 'undefined' && updateableRefinements1 != null) {
updateableRefinementsString = updateableRefinements1[1].split('\ ')[0];
}
if (updateableRefinementsString != null) {
document.getElementById('updateableRefinements').innerHTML = '\' + updateableRefinementsString + '\ ';
}
//document.getElementById('refinementOptionsDiv').innerHTML = xmlHttpLocal.responseText;
document.getElementById('grayOutRefinements').style.display = "none";
}
}
function toggleRefinementDiv(divId, buttonId, hideBottomBorder){
iml = document.getElementById(buttonId);
target = document.getElementById(divId);
if (target != null) {
toggleDiv(divId);
}
var nameElement = document.getElementById("Title" + divId);
if ((target != null) && (target.style.display=='none')) {
iml.src="/images/ui/Srch_Nav_PlusBox.gif";
if(hideBottomBorder)
nameElement.style.borderBottom = "";
}
else {
iml.src="/images/ui/Srch_Nav_MinusBox.gif";
if (nameElement != null) {
nameElement.style.borderBottom = "1px solid #E6E6CE";
}
}
}
Feb 04, 2012 There are no results available based on your view settings. You may adjust your Post and Event Preferences on the calendar page to see more results. Click here .
Today's Full Page View
The following error was encountered when saving your order: Please address this error and try to save your order again.
Download the latest version of Adobe Reader