var compositeOptions = '' +
'' +
'' +
'' +
'' +
'';
function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
function OptionsArray() { this.writeOptionsArray = writeOptionsArray; }
function writeOptionsArray() {
document.write(compositeOptions);
}
function homepageJumper(prodSelect) {
var selectedProduct = prodSelect.options[prodSelect.selectedIndex].value;
var gartnercomUrl = 'http://www.gartner.com/?expHomePage=wcw';
if (selectedProduct != null && "" != selectedProduct) {
if(isNumber(selectedProduct)) {
var productSwitchUrl = 'http://my.gartner.com/portal/server.pt?gr=ci&product=' + selectedProduct;
window.location = productSwitchUrl;
} else {
window.location = selectedProduct;
}
}
prodSelect.selectedIndex = 0;
}