utilityBrowserVer = parseInt(navigator.appVersion); function imgOn(imgName) { if (utilityBrowserVer >= 3) { imgOnString = eval(imgName + "_on.src"); document.images[imgName].src = imgOnString; } } function imgOff(imgName) { if (utilityBrowserVer >= 3) { imgOffString = eval(imgName + "_off.src"); document.images[imgName].src = imgOffString; } } function goToLink(address) { var linkURL = address.options[address.selectedIndex].value; window.top.location.href = linkURL; address.selectedIndex=0; } function openWindow(address, width, height) { var newWindow = window.open(address, 'Popup_Window', 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0'); newWindow.focus(); } function openScrollWindow(address, width, height) { var newWindow = window.open(address, 'Popup_Window', 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no'); newWindow.focus(); } function openSecurityCodeWindow() { var newWindow = window.open('http://www.fao.com/checkout/security-card2.html', 'Popup_Window', 'width=620,height=620,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,left=0,top=0'); newWindow.focus(); } function confirmWindow(url, text) { if (confirm(text)) { window.go = url; window.location = url; } } function clearKeywordSearch() { if(document.frmKeywordSearch_ln.keyword.value.indexOf('Keyword') == 0) { document.frmKeywordSearch_ln.keyword.value=''; } } function verifyKeyword() { if(document.frmKeywordSearch_ln.keyword.value.indexOf('Keyword') == 0 || document.frmKeywordSearch_ln.keyword.value == '') { alert("Please enter a keyword to search for and click Go."); document.frmKeywordSearch_ln.keyword.value=''; } else { document.frmKeywordSearch_ln.submit(); } } function isNumeric(sText) { var ValidChars = "0123456789"; var IsNumber=true; var Char; for (i = 0; i < sText.length && IsNumber == true; i++) { Char = sText.charAt(i); if (ValidChars.indexOf(Char) == -1) { IsNumber = false; } } return IsNumber; } function containsSecurityCode(aTextField, aTextField2) { if ( ((aTextField.value=='') || (aTextField.value==null)) && ((aTextField2.value=='') || (aTextField2.value==null)) ) { return false; } else { return true; } }