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, scrollbars) { var scrollbars = (scrollbars == null) ? "no" : scrollbars; var newWindow = window.open(address, '', 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=no'); newWindow.focus(); } function ucpOpenWindow(address, width, height, scrollbars, resize) { var scrollbars = (scrollbars == null) ? "no" : scrollbars; var resize = (resize == null) ? "no" : resize; var newWindow = window.open(address, '', 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=' + resize + ',left=200,top=200' ); newWindow.focus(); } function openWindow1(address, width, height,resize ) { var newWindow = window.open(address, 'Popup_Window', 'width=' + width + ',height=' + height + ',toolbar=yes,location=yes,directories=no,status=no,menubar=no,scrollbars=no,resizable='+resize); newWindow.focus(); } function confirmWindow(url, text) { if (confirm(text)) { window.go = url; window.location = url; } } function popupDHTML(page, width, height) { var elem = document.getElementById('maildiv'); var maintableElem = document.getElementById('maintable'); //center div elem.style.marginLeft = (maintableElem.offsetWidth / 2) - (width / 2) + 'px'; elem.style.marginTop = maintableElem.offsetHeight / 2 + 'px'; inside = ""; elem.innerHTML = inside; elem.style.visibility = "visible"; } /** * This function will hide the button with id=myTestbutton and show the processing button */ function showProcessingButton() { document.getElementById("myTestButton").style.display = 'none'; document.getElementById("processing_button").style.display = 'inline'; } function submitOrder() { document.paymentForm.submit(); return true; }