        function addEvent(elm, evType, fn, useCapture)
		{
		   // addEvent and removeEvent
		   // cross-browser event handling for IE5+, NS6 and Mozilla
		   // By Scott Andrew
		   if (elm.addEventListener)
		   {
		      elm.addEventListener(evType, fn, useCapture);
		      return true;
		   }
		   else

		   if (elm.attachEvent)
		   {
		      var r = elm.attachEvent("on"+evType, fn);
		      return r;
		   }
		   else
		   {
		    alert("Handler could not be removed");
		   }
		}

        function highlightImage(theobjIdHighlightImage, theColor)
        { 
           var theIdHighlightImage = document.getElementById(theobjIdHighlightImage);
           theIdHighlightImage.style.borderColor = theColor;
        }


        function deHighlightImage(theobjIdDeHighlightImage, theColor)
        {  
           var theIdDeHighlightImage = document.getElementById(theobjIdDeHighlightImage);
           theIdDeHighlightImage.style.borderColor = theColor;
        }

        function highlightBackgroundCell(theobjIdHighlightBackgroundCell, theColor)
        {
           var theIdHighlightBackgroundCell = document.getElementById(theobjIdHighlightBackgroundCell);
           theIdHighlightBackgroundCell.style.backgroundColor = theColor;
        }

        function deHighlightBackgroundCell(theobjIdDeHighlightBackgroundCell, theColor)
        {
           var theIdDeHighlightBackgroundCell = document.getElementById(theobjIdDeHighlightBackgroundCell);
           theIdDeHighlightBackgroundCell.style.backgroundColor = theColor;
        }


        function setSizes(){
        /* Table Dimensions */
        var mainTableWidth = document.getElementById("mainTableId").offsetWidth; /*786*/
        var outerArchLHS_Width = document.getElementById("outer_arch_LHS_id").offsetWidth;/*56*/
        var innerArchLHS_Width = document.getElementById("inner_arch_LHS_id").offsetWidth;/*132*/
        /*var horizontal_arch_extendor = document.getElementById("horizontal_arch_extendor_id");
        horizontal_arch_extendor.style.width = (mainTableWidth - (2 * (outerArchLHS_Width + innerArchLHS_Width)));
alert("horizontal_arch_extendor "+horizontal_arch_extendor.offsetWidth);*/

        /* Script to stretch the column */
        var leftStretchCell = document.getElementById("leftStretchColId");
        var documentContentCellHeight = document.getElementById("pageContentId").offsetHeight;
        var upperColHeadImgHeight = document.getElementById("upperColHeadImgId").offsetHeight;
        var upperColBodyImgHeight = document.getElementById("upperColBodyImgId").offsetHeight;
        var lowerColImgHeight = document.getElementById("lowerColImgId").offsetHeight;
        leftStretchCell.style.height = (documentContentCellHeight - upperColBodyImgHeight - lowerColImgHeight) + "px";
        }

        window.onResize = setSizes;
        window.onLoad = setSizes;

        addEvent(window, "resize", setSizes);
        addEvent(window, "load", setSizes);