function ViewProperties(displayFormat, sortOn, groupOn, reverseSort, collapseAll, pageSize, lockThreads, showColumnTitles, font, size, useColour, colour, showRowNumbers, showVerticalGridlines, showHorizontalGridlines, lockIcons, singleClick, hideIconTitles, bgImage, useBg, tileBg, transparentText,use24HrDates) { this.format = displayFormat?displayFormat:0; this.sortOn = (!isNaN(parseInt(sortOn)) && parseInt(sortOn) >=0)?parseInt(sortOn):-1; this.sortOn = (this.sortOn%2147483648); this.groupOn = (!isNaN(parseInt(groupOn)) && parseInt(groupOn) >=0)?parseInt(groupOn):-1; this.sortOrder = (reverseSort?-1:1); this.collapseAll = collapseAll?true:false; this.pageSize = !isNaN(parseInt(pageSize))?parseInt(pageSize):20; this.lockThreads = lockThreads?true:false; this.font = font?font:""; this.size = (isNaN(parseInt(size))?0:parseInt(size)); this.useColour = useColour?true:false; this.colour = colour?colour:"#000000"; this.cTitles = showColumnTitles?true:false; this.rNums = showRowNumbers?true:false; this.vLine = showVerticalGridlines?true:false; this.hLine = showHorizontalGridlines?true:false; this.lock = lockIcons?true:false; this.oneClick = singleClick?true:false; this.hideTitles = hideIconTitles?true:false; this.bg = bgImage?bgImage:""; this.useBg = useBg?true:false; this.tileBg = tileBg?true:false; this.seeThrough = transparentText?true:false; this.use24Hr = (use24HrDates?true:false); this.styles = new Array("rowText","bRowText","iRowText","biRowText","uRowText","buRowText","iuRowText","biuRowText"); }; new ViewProperties();