//script for compare functionality function doCount(el, elName){ var count = 0; var cBoxes = document.aspnetForm.elements[elName]; for (var i=0;i < cBoxes.length;i++){ if (cBoxes[i].checked) { count++; } } if (count > 5) { var alertMsg = "You may compare up to five items at a time.\n\nThe last selection will be ignored."; alert(alertMsg); el.checked = false; } } function doBaseCompare(url, alertMessage, elName) { var count = 0; var strVars = ""; var cBoxes = document.aspnetForm.elements[elName]; for (var i=0;i < cBoxes.length;i++){ if (cBoxes[i].checked) { count++; if (strVars != "") { strVars = strVars + "&"; } strVars = strVars + "id=" + cBoxes[i].value; } } if (count > 1) { window.location = url + strVars; } else { alert(alertMessage); } } // Does a comparison based on the product type. The only legal product type values are: // desktop, opteron, notebook, embedded, gpu, motherboard function doCompare(productType) { switch (productType) { case "desktop": doDesktopCPUCompare(); break; case "notebook": doNotebookCPUCompare(); break; case "opteron": doOpteronCPUCompare(); break; case "embedded": doEmbeddedCPUCompare(); break; case "motherboard": doMotherboardCompare(); break; case "gpu": doGraphicCardCompare(); break; case "workstationGpu": doWorkstationGraphicCardCompare(); break; case "mobilityGpu": doMobilityGPUCompare(); break; case "TVTuner": doTVTunerCompare(); break; case "DesktopTVTuner": doDesktopTVTunerCompare(); break; default: break; } } function doDesktopCPUCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'DesktopCPUSideBySide.aspx?'; /* var lblProcessor = $get("ctl00_cphBody_lblProcessor"); if (lblProcessor != null) url += "f1=" + escape(lblProcessor.textContent) + "&"; var lblModel = $get("ctl00_cphBody_lblModel"); if (lblModel != null) url += "f2=" + escape(lblModel.textContent) + "&"; var lblFrequency = $get("ctl00_cphBody_lblFrequency"); if (lblFrequency != null) url += "f3=" + escape(lblFrequency.textContent) + "&"; var lblL2CacheSize = $get("ctl00_cphBody_lblL2CacheSize"); if (lblL2CacheSize != null) url += "f4=" + escape(lblL2CacheSize.textContent) + "&"; var lblSocket = $get("ctl00_cphBody_lblSocket"); if (lblSocket != null) url += "f5=" + escape(lblSocket.textContent) + "&"; var lblStepping = $get("ctl00_cphBody_lblStepping"); if (lblStepping != null) url += "f6=" + escape(lblStepping) + "&"; var lblCMOS = $get("ctl00_cphBody_lblCMOS"); if (lblCMOS != null) url += "f7=" + escape(lblCMOS) + "&"; var lblWattage = $get("ctl00_cphBody_lblWattage"); if (lblWattage != null) url += "f8=" + escape(lblWattage) + "&"; var lblSystemBus = $get("ctl00_cphBody_lblSystemBus"); if (lblSystemBus != null) url += "f9=" + escape(lblSystemBus) + "&"; var lblBusinessClass = $get("ctl00_cphBody_lblBusinessClass"); if (lblBusinessClass != null) url += "f10=" + escape(lblBusinessClass) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnDesktop'); } function doNotebookCPUCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'NotebookCPUSideBySide.aspx?'; /* var lblProcessor = $get("ctl00_cphBody_lblProcessor"); if (lblProcessor != null) url += "f1=" + escape(lblProcessor.textContent) + "&"; var lblModel = $get("ctl00_cphBody_lblModel"); if (lblModel != null) url += "f2=" + escape(lblModel.textContent) + "&"; var lblFrequency = $get("ctl00_cphBody_lblFrequency"); if (lblFrequency != null) url += "f3=" + escape(lblFrequency.textContent) + "&"; var lblL2CacheSize = $get("ctl00_cphBody_lblL2CacheSize"); if (lblL2CacheSize != null) url += "f4=" + escape(lblL2CacheSize.textContent) + "&"; var lblSocket = $get("ctl00_cphBody_lblSocket"); if (lblSocket != null) url += "f5=" + escape(lblSocket.textContent) + "&"; var lblStepping = $get("ctl00_cphBody_lblStepping"); if (lblStepping != null) url += "f6=" + escape(lblStepping.textContent) + "&"; var lblCMOS = $get("ctl00_cphBody_lblCMOS"); if (lblCMOS != null) url += "f7=" + escape(lblCMOS.textContent) + "&"; var lblWattage = $get("ctl00_cphBody_lblWattage"); if (lblWattage != null) url += "f8=" + escape(lblWattage.textContent) + "&"; var lblSystemBus = $get("ctl00_cphBody_lblSystemBus"); if (lblSystemBus != null) url += "f9=" + escape(lblSystemBus.textContent) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnNotebook'); } function doOpteronCPUCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'OpteronCPUSideBySide.aspx?'; /* var lblProcessor = $get("ctl00_cphBody_lblProcessor"); if (lblProcessor != null) url += "f1=" + escape(lblProcessor.textContent) + "&"; var lblModel = $get("ctl00_cphBody_lblModel"); if (lblModel != null) url += "f2=" + escape(lblModel.textContent) + "&"; var lblFrequency = $get("ctl00_cphBody_lblFrequency"); if (lblFrequency != null) url += "f3=" + escape(lblFrequency.textContent) + "&"; var lblL2CacheSize = $get("ctl00_cphBody_lblL2CacheSize"); if (lblL2CacheSize != null) url += "f4=" + escape(lblL2CacheSize.textContent) + "&"; var lblSocket = $get("ctl00_cphBody_lblSocket"); if (lblSocket != null) url += "f5=" + escape(lblSocket.textContent) + "&"; var lblStepping = $get("ctl00_cphBody_lblStepping"); if (lblStepping != null) url += "f6=" + escape(lblStepping.textContent) + "&"; var lblCMOS = $get("ctl00_cphBody_lblCMOS"); if (lblCMOS != null) url += "f7=" + escape(lblCMOS.textContent) + "&"; var lblWattage = $get("ctl00_cphBody_lblWattage"); if (lblWattage != null) url += "f8=" + escape(lblWattage.textContent) + "&"; var lblSystemBus = $get("ctl00_cphBody_lblSystemBus"); if (lblSystemBus != null) url += "f9=" + escape(lblSystemBus.textContent) + "&"; var lblCores = $get("ctl00_cphBody_lblCores"); if (lblCores != null) url += "f10=" + escape(lblCores.textContent) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnOpteron'); } function doEmbeddedCPUCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'EmbeddedCPUSideBySide.aspx?'; /* var lblProcessor = $get("ctl00_cphBody_lblProcessor"); if (lblProcessor != null) url += "f1=" + escape(lblProcessor.textContent) + "&"; var lblModel = $get("ctl00_cphBody_lblModel"); if (lblModel != null) url += "f2=" + escape(lblModel.textContent) + "&"; var lblFrequency = $get("ctl00_cphBody_lblFrequency"); if (lblFrequency != null) url += "f3=" + escape(lblFrequency.textContent) + "&"; var lblL2CacheSize = $get("ctl00_cphBody_lblL2CacheSize"); if (lblL2CacheSize != null) url += "f4=" + escape(lblL2CacheSize.textContent) + "&"; var lblScalability = $get("ctl00_cphBody_lblScalability"); if (lblScalability != null) url += "f5=" + escape(lblScalability.textContent) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnEmbedded'); } function doMotherboardCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'MotherboardSideBySide.aspx?'; /* var lblChipset = $get("ctl00_cphBody_lblChipset"); if (lblChipset != null) url += "f1=" + escape(lblChipset.textContent) + "&"; var lblGraphics = $get("ctl00_cphBody_lblGraphics"); if (lblGraphics != null) url += "f2=" + escape(lblGraphics.textContent) + "&"; var lblHDMI = $get("ctl00_cphBody_lblHDMI"); if (lblHDMI != null) url += "f3=" + escape(lblHDMI.textContent) + "&"; var lblDVI = $get("ctl00_cphBody_lblDVI"); if (lblDVI != null) url += "f4=" + escape(lblDVI.textContent) + "&"; var lblFormFactor = $get("ctl00_cphBody_lblFormFactor"); if (lblFormFactor != null) url += "f5=" + escape(lblFormFactor.textContent) + "&"; var lblOverclockable = $get("ctl00_cphBody_lblOverclockable"); if (lblOverclockable != null) url += "f6=" + escape(lblOverclockable.textContent) + "&"; var lblManufacturer = $get("ctl00_cphBody_lblManufacturer"); if (lblManufacturer != null) url += "f8=" + escape(lblManufacturer.textContent) + "&"; var lblBusinessClass = $get("ctl00_cphBody_lblBusinessClass"); if (lblBusinessClass != null) url += "f9=" + escape(lblBusinessClass.textContent) + "&"; var lblATIHybridGraphicsSuppt = $get("ctl00_cphBody_lblATIHybridGraphicsSuppt"); if (lblATIHybridGraphicsSuppt != null) url += "f10=" + escape(lblATIHybridGraphicsSuppt.textContent) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnMotherboard'); } function doGraphicCardCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'GraphicCardSideBySide.aspx?'; /* var lblPlatform = $get("ctl00_cphBody_lblPlatform"); if (lblPlatform != null) url += "f1=" + escape(lblPlatform.textContent) + "&"; var lblGPU = $get("ctl00_cphBody_lblGPU"); if (lblGPU != null) url += "f2=" + escape(lblGPU.textContent) + "&"; var lblManufacturer = $get("ctl00_cphBody_lblManufacturer"); if (lblManufacturer != null) url += "f3=" + escape(lblManufacturer.textContent) + "&"; var lblBusType = $get("ctl00_cphBody_lblBusType"); if (lblBusType != null) url += "f4=" + escape(lblBusType.textContent) + "&"; var lblMemoryAmount = $get("ctl00_cphBody_lblMemoryAmount"); if (lblMemoryAmount != null) url += "f5=" + escape(lblMemoryAmount.textContent) + "&"; var lblCrossFire = $get("ctl00_cphBody_lblCrossFire"); if (lblCrossFire != null) url += "f6=" + escape(lblCrossFire.textContent) + "&"; var lblCompositeInput = $get("ctl00_cphBody_lblCompositeInput"); if (lblCompositeInput != null) url += "f7=" + escape(lblCompositeInput.textContent) + "&"; var lblSVideoInput = $get("ctl00_cphBody_lblSvideoInput"); if (lblSVideoInput != null) url += "f8=" + escape(lblSVideoInput.textContent) + "&"; var lblRFInput = $get("ctl00_cphBody_lblRFInput"); if (lblRFInput != null) url += "f9=" + escape(lblRFInput.textContent) + "&"; var lblCompositeOutput = $get("ctl00_cphBody_lblCompositeOutput"); if (lblCompositeOutput != null) url += "f10=" + escape(lblCompositeOutput.textContent) + "&"; var lblSVideoOutput = $get("ctl00_cphBody_lblSvideoOutput"); if (lblSVideoOutput != null) url += "f11=" + escape(lblSVideoOutput.textContent) + "&"; var lblDVIOutput = $get("ctl00_cphBody_lblDVIOutput"); if (lblDVIOutput != null) url += "f12=" + escape(lblDVIOutput.textContent) + "&"; var lblHDMIOutput = $get("ctl00_cphBody_lblHDMIOutput"); if (lblHDMIOutput != null) url += "f13=" + escape(lblHDMIOutput.textContent) + "&"; var lblComponentOutput = $get("ctl00_cphBody_lblComponentOutput"); if (lblComponentOutput != null) url += "f14=" + escape(lblComponentOutput.textContent) + "&"; var lblVGAOutput = $get("ctl00_cphBody_lblVGAOutput"); if (lblVGAOutput != null) url += "f15=" + escape(lblVGAOutput.textContent) + "&"; var lblADCOutput = $get("ctl00_cphBody_lblADCOutput"); if (lblADCOutput != null) url += "f16=" + escape(lblADCOutput.textContent) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnGraphicsCard'); } function doWorkstationGraphicCardCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'WorkstationGraphicCardSideBySide.aspx?'; /* var lblProductFamilyName = $get("ctl00_cphBody_lblProductFamilyName"); if (lblProductFamilyName != null) { var productFamilyName = lblProductFamilyName.textContent; var name2D = "FireMV"; var name3D = "FireGL"; if (productFamilyName == "FireMV™") productFamilyName = name2D; if (productFamilyName.indexOf(name3D) > 0) productFamilyName = name3D; url += "f1=" + escape(productFamilyName) + "&"; } var lblGraphicsCard = $get("ctl00_cphBody_lblGraphicsCard"); if (lblGraphicsCard != null) url += "f2=" + escape(lblGraphicsCard.textContent) + "&"; var lblBusInterface = $get("ctl00_cphBody_lblBusInterface"); if (lblBusInterface != null) url += "f3=" + escape(lblBusInterface.textContent) + "&"; var lblMemorySize = $get("ctl00_cphBody_lblMemorySize"); if (lblMemorySize != null) url += "f4=" + escape(lblMemorySize.textContent) + "&"; var lblDisplayOutputs = $get("ctl00_cphBody_lblDisplayOutputs"); if (lblDisplayOutputs != null) url += "f5=" + escape(lblDisplayOutputs.textContent) + "&"; var lblFormFactor = $get("ctl00_cphBody_lblFormFactor"); if (lblFormFactor != null) url += "f6=" + escape(lblFormFactor.textContent) + "&"; var lblRecMinSysPowerSupply = $get("ctl00_cphBody_lblRecMinSysPowerSupply"); if (lblRecMinSysPowerSupply != null) url += "f7=" + escape(lblRecMinSysPowerSupply.textContent) + "&"; var lblMaxOutputResolution = $get("ctl00_cphBody_lblMaxOutputResolution"); if (lblMaxOutputResolution != null) url += "f8=" + escape(lblMaxOutputResolution.textContent) + "&"; var lblMaxDVIResolution = $get("ctl00_cphBody_lblMaxDVIResolution"); if (lblMaxDVIResolution != null) url += "f9=" + escape(lblMaxDVIResolution.textContent) + "&"; var lblMaxAnalogResolution = $get("ctl00_cphBody_lblMaxAnalogResolution"); if (lblMaxAnalogResolution != null) url += "f10=" + escape(lblMaxAnalogResolution.textContent) + "&"; var lblMemoryBandwidth = $get("ctl00_cphBody_lblMemoryBandwidth"); if (lblMemoryBandwidth != null) url += "f11=" + escape(lblMemoryBandwidth.textContent) + "&"; var lblShaderProcessingUnits = $get("ctl00_cphBody_lblShaderProcessingUnits"); if (lblShaderProcessingUnits != null) url += "f12=" + escape(lblShaderProcessingUnits.textContent) + "&"; var lblThreeDStereoOutput = $get("ctl00_cphBody_lblThreeDStereoOutput"); if (lblThreeDStereoOutput != null) url += "f13=" + escape(lblThreeDStereoOutput.textContent) + "&"; var lblHDComponentVideoOutput = $get("ctl00_cphBody_lblHDComponentVideoOutput"); if (lblHDComponentVideoOutput != null) url += "f14=" + escape(lblHDComponentVideoOutput.textContent) + "&"; var lblMaxDualLinkDVIResolution = $get("ctl00_cphBody_lblMaxDualLinkDVIResolution"); if (lblMaxDualLinkDVIResolution != null) url += "f15=" + escape(lblMaxDualLinkDVIResolution.textContent) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnWorkstationGraphicsCard'); } function doMobilityGPUCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'MobilityGPUSideBySide.aspx?' /* var lblGraphicsCard = $get("ctl00_cphBody_lblGraphicsCard"); if (lblGraphicsCard != null) url += "f1=" + escape(lblGraphicsCard.textContent) + "&"; var lblBusType = $get("ctl00_cphBody_lblBusType"); if (lblBusType != null) url += "f2=" + escape(lblBusType.textContent) + "&"; var lblMemorySize = $get("ctl00_cphBody_lblMemorySize"); if (lblMemorySize != null) url += "f3=" + escape(lblMemorySize.textContent) + "&"; var lblMemoryType = $get("ctl00_cphBody_lbl"); if (lblMemoryType != null) url += "f4=" + escape(lblMemoryType.textContent) + "&"; var lblATICrossFireXReady = $get("ctl00_cphBody_lblATICrossFireXReady"); if (lblATICrossFireXReady != null) url += "f5=" + escape(lblATICrossFireXReady.textContent) + "&"; var lblMicrosoftDirectXVersion = $get("ctl00_cphBody_lblMicrosoftDirectXVersion"); if (lblMicrosoftDirectXVersion != null) url += "f6=" + escape(lblMicrosoftDirectXVersion.textContent) + "&"; var lblHybridGraphicsReady = $get("ctl00_cphBody_lblHybridGraphicsReady"); if (lblHybridGraphicsReady != null) url += "f7=" + escape(lblHybridGraphicsReady.textContent) + "&"; var lblATIHyperMemory = $get("ctl00_cphBody_lblATIHyperMemory"); if (lblATIHyperMemory != null) url += "f8=" + escape(lblATIHyperMemory.textContent) + "&"; var lblATIAvivoHD = $get("ctl00_cphBody_lblATIAvivoHD"); if (lblATIAvivoHD != null) url += "f9=" + escape(lblATIAvivoHD.textContent) + "&"; var lblHDDVDBluray1080p = $get("ctl00_cphBody_lblHDDVDBluray1080p"); if (lblHDDVDBluray1080p != null) url += "f10=" + escape(lblHDDVDBluray1080p.textContent) + "&"; var lblUnifiedVideoDecoder = $get("ctl00_cphBody_lblUnifiedVideoDecoder"); if (lblUnifiedVideoDecoder != null) url += "f11=" + escape(lblUnifiedVideoDecoder.textContent) + "&"; var lblDualLinkDVIwithHDCP = $get("ctl00_cphBody_lblDualLinkDVIwithHDCP"); if (lblDualLinkDVIwithHDCP != null) url += "f12=" + escape(lblDualLinkDVIwithHDCP.textContent) + "&"; var lblIntegratedHDMI = $get("ctl00_cphBody_lblIntegratedHDMI"); if (lblIntegratedHDMI != null) url += "f13=" + escape(lblIntegratedHDMI.textContent) + "&"; var lblDisplayPortWithHDCP = $get("ctl00_cphBody_lblDisplayPortWithHDCP"); if (lblDisplayPortWithHDCP != null) url += "f14=" + escape(lblDisplayPortWithHDCP.textContent) + "&"; var lblDualDisplaySupport = $get("ctl00_cphBody_lblDualDisplaySupport"); if (lblDualDisplaySupport != null) url += "f15=" + escape(lblDualDisplaySupport.textContent) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnMobilityGPU'); } function doTVTunerCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'TVTunerSideBySide.aspx?'; /* var lbltvtunerfamily = $get("ctl00_cphBody_lbltvtunerfamily"); if (lbltvtunerfamily != null) url += "f1=" + escape(lbltvtunerfamily.textContent) + "&"; var lbltvtunerline = $get("ctl00_cphBody_lbltvtunerline"); if (lbltvtunerline != null) url += "f2=" + escape(lbltvtunerline.textContent) + "&"; var lbltvtunerModel = $get("ctl00_cphBody_lbltvtunerModel"); if (lbltvtunerModel != null) url += "f3=" + escape(lbltvtunerModel.textContent) + "&"; var lblmanufacturer = $get("ctl00_cphBody_lblmanufacturer"); if (lblmanufacturer != null) url += "f4=" + escape(lblmanufacturer.textContent) + "&"; var lblplatformtype = $get("ctl00_cphBody_lblplatformtype"); if (lblplatformtype != null) url += "f5=" + escape(lblplatformtype.textContent) + "&"; var lblbustype = $get("ctl00_cphBody_lblbustype"); if (lblbustype != null) url += "f6=" + escape(lblbustype.textContent) + "&"; var lbltunertype = $get("ctl00_cphBody_lbltunertype"); if (lbltunertype != null) url += "f7=" + escape(lbltunertype.textContent) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnTVTuner'); } function doDesktopTVTunerCompare(){ var alertMsg = "Please select two to five products to compare."; var url = 'DesktopTVTunerSideBySide.aspx?'; /* var lblTVTunerFamily = $get("ctl00_cphBody_lbltvtunerfamily"); if (lblTVTunerFamily != null) url += "f2=" + escape(lblTVTunerFamily.textContent) + "&"; var lblTVTunerLine = $get("ctl00_cphBody_lbltvtunerline"); if (lblTVTunerLine != null) url += "f3=" + escape(lblTVTunerLine.textContent) + "&"; var lblTVTunerModel = $get("ctl00_cphBody_lbltvtunerModel"); if (lblTVTunerModel != null) url += "f4=" + escape(lblTVTunerModel.textContent) + "&"; var lblManufacturer = $get("ctl00_cphBody_lblmanufacturer"); if (lblManufacturer != null) url += "f5=" + escape(lblManufacturer.textContent) + "&"; var lblPlatformType = $get("ctl00_cphBody_lblplatformtype"); if (lblPlatformType != null) url += "f6=" + escape(lblPlatformType.textContent) + "&"; var lblBusType = $get("ctl00_cphBody_lblbustype"); if (lblBusType != null) url += "f7=" + escape(lblBusType.textContent) + "&"; var lblTunerType = $get("ctl00_cphBody_lbltunertype"); if (lblTunerType != null) url += "f8=" + escape(lblTunerType.textContent) + "&"; */ doBaseCompare(url, alertMsg, 'chkOpnTVTuner'); }