/** * Custom site-wide JavaScript functions and classes for the Cellular South site. * * NOTES: * - Some functions in this file rely heavily on other libraries, so make sure that * this JavaScript library is loaded last * * @author Sam Lee * @version $Id: global.js,v 1.40 2006/10/27 17:18:19 slee Exp $$Revision: 1.40 $ * @updated $Date: 2006/10/27 17:18:19 $$Author: slee $ */ /** * Open a pop-up window. * Usage: helpDoc is the name of a file within '/popups/popup_win_content/', minus the '.jsp' extension. */ function helpWindow(helpDoc, pixelWidth, pixelHeight) { if (!pixelWidth) { pixelWidth = 450; } if (!pixelHeight) { pixelHeight = 450; } id = helpDoc; window.open('/cscommerce/fragments/popup_win.jsp?pop=' + helpDoc, id , 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + pixelWidth + ',height=' + pixelHeight + ',left = 0,top = 0'); } /** * AY: Returns list of multiple tag types */ function getElementsByTagNames(list,obj) { if (!obj) { obj = document; } var tagNames = list.split(','); var resultArray = new Array(); for (var i=0;i