// alert(sFormat); switch(sFormat) { case "ListOnly": document.write("\List\"); break; case "SearchOnly": document.write("\Search\"); break; case "DirectoryOnly": document.write("\Directory\"); break; case "CompareOnly": var sFeaturesCSSURL, sSearchCSSURL; sFeaturesCSSURL = "http://www.cmsreview.com/timelines/ShopFeatures.css"; sSearchCSSURL = "http://www.cmsreview.com/timelines/ShopFeatures.css"; function fGetCSSURLs(oForm) { // oForm like document.ComparisonForm oForm.FeaturesCSSURL.value = sFeaturesCSSURL; // oForm.SearchCSSURL.value = sSearchCSSURL; } function fGenSelectedList(oForm) { sProduct1ID = oForm.Product1.options[oForm.Product1.selectedIndex].value; sProduct2ID = oForm.Product2.options[oForm.Product2.selectedIndex].value; if (sProduct1ID != "") { oForm.SelectedList.value = "Product" + sProduct1ID + ";" } if (sProduct2ID != "") { if (sProduct1ID != sProduct2ID) { oForm.SelectedList.value += "Product" + sProduct2ID + ";"; } } } switch(sFormat) { case "HorizStack": case "HorizBlock": case "VertBlock": sAlignLinkCenter = "0"; sSpaceAfterLink = "1"; sStackLink = "0"; sStackSelects = "1"; break; case "Horizontal": sAlignLinkCenter = "0"; sSpaceAfterLink = "1"; sStackLink = "0"; sStackSelects = "0"; break; case "Vertical": sAlignLinkCenter = "1"; sSpaceAfterLink = "0"; sStackLink = "1"; sStackSelects = "1"; break; } document.write("\"); document.write("\"); document.write('\
'); document.write('\'); document.write('\'); document.write('\'); document.write("\"); document.write('\"); document.write("\"); document.write("\"); if (sStackLink == "1") { document.write("\
"); document.write("\"); } if (sAlignLinkCenter == "1") { document.write("\
"); } else { document.write("\"); } document.write('\Compare\'); if (sSpaceAfterLink == "1") { document.write(" "); } document.write("\"); document.write("\"); document.write("\"); // set sFeaturesCSSURL to user selected value for ShopComparisonSelector // (which vars it is expecting to be overridden after the fact) sFeaturesCSSURL = sCMSCSSURL; break; default: // this won't work if the var has been neither set nor varred // if (sFormat == "") { // sFormat = "HorizStack"; // } switch(sFormat) { case "HorizStack": case "Horizontal": sPipes = "1"; sCompareBelow = "0"; break; case "HorizBlock": sPipes = "0"; sCompareBelow = "0"; break; case "VertBlock": sPipes = "1"; sCompareBelow = "1"; break; case "Vertical": sPipes = "0"; sCompareBelow = "1"; break; } document.write("\"); document.write("\"); document.write("\
"); document.write("\List\"); if (sPipes == "1") { document.write(" | "); } else { document.write("\
"); // document.write("\"); // document.write("\"); // document.write("\"); // document.write("\
"); } document.write("\Search\"); if (sPipes == "1") { document.write(" | "); } else { document.write("\
"); } document.write("\
Directory\"); if (sPipes == "1") { // document.write(" | "); } document.write("\"); if (sCompareBelow == "1") { document.write("\"); document.write("\"); } document.write("\
"); var sFeaturesCSSURL, sSearchCSSURL; sFeaturesCSSURL = "http://www.cmsreview.com/timelines/ShopFeatures.css"; sSearchCSSURL = "http://www.cmsreview.com/timelines/ShopFeatures.css"; function fGetCSSURLs(oForm) { // oForm like document.ComparisonForm oForm.FeaturesCSSURL.value = sFeaturesCSSURL; // oForm.SearchCSSURL.value = sSearchCSSURL; } function fGenSelectedList(oForm) { sProduct1ID = oForm.Product1.options[oForm.Product1.selectedIndex].value; sProduct2ID = oForm.Product2.options[oForm.Product2.selectedIndex].value; if (sProduct1ID != "") { oForm.SelectedList.value = "Product" + sProduct1ID + ";" } if (sProduct2ID != "") { if (sProduct1ID != sProduct2ID) { oForm.SelectedList.value += "Product" + sProduct2ID + ";"; } } } switch(sFormat) { case "HorizStack": case "HorizBlock": case "VertBlock": sAlignLinkCenter = "0"; sSpaceAfterLink = "1"; sStackLink = "0"; sStackSelects = "1"; break; case "Horizontal": sAlignLinkCenter = "0"; sSpaceAfterLink = "1"; sStackLink = "0"; sStackSelects = "0"; break; case "Vertical": sAlignLinkCenter = "1"; sSpaceAfterLink = "0"; sStackLink = "1"; sStackSelects = "1"; break; } document.write("\"); document.write("\"); document.write('\'); document.write('\'); document.write('\'); document.write('\'); document.write("\"); document.write('\"); document.write("\"); document.write("\"); if (sStackLink == "1") { document.write("\"); document.write("\"); } if (sAlignLinkCenter == "1") { document.write("\
"); } else { document.write("\"); } document.write('\Compare\'); if (sSpaceAfterLink == "1") { document.write(" "); } document.write("\"); document.write("\"); document.write("\"); // set sFeaturesCSSURL to user selected value for ShopComparisonSelector // (which vars it is expecting to be overridden after the fact) sFeaturesCSSURL = sCMSCSSURL; document.write("\"); document.write("\"); document.write("\"); break; }