function refreshcoll(){    if (document.getElementById)    {   if (document.getElementById('colThree') && document.getElementById('colOne'))            {                 var contensWidth = document.getElementById('contens').offsetWidth;                var colThreeElement = document.getElementById('colThree');                var colOneElement = document.getElementById('colOne');                   var colTwoElement = document.getElementById('colTwo');                var colThreeWidth = document.getElementById('colThree').offsetWidth;                var colOneWidth = document.getElementById('colOne').offsetWidth;                                               if (colThreeWidth <= 25){                         colThreeElement.style.display = 'none';                        colTwoElement.style.width = (contensWidth-(colOneWidth+colThreeWidth-3))+ 'px';                }                                else{                        colTwoElement.style.width = (contensWidth-(colOneWidth+colThreeWidth+10))+ 'px';                        var colTwoWidth = document.getElementById('colTwo').offsetWidth;                }                           //alert("DOM script run, colThree and colOne present. Textcol is ="+colTwoWidth);                  }        else if (document.getElementById('colThree'))         {                 var contensWidth = document.getElementById('contens').offsetWidth;                var colThreeElement = document.getElementById('colThree');                var colTwoElement = document.getElementById('colTwo');                var colThreeWidth = document.getElementById('colThree').offsetWidth;                colTwoElement.style.width = (contensWidth-(colThreeWidth+10))+ 'px';                var colTwoWidth = document.getElementById('colTwo').offsetWidth;                //alert("DOM script run, Imagecoll present. colTwo is ="+colTwoWidth);           }            else if (document.getElementById('colOne'))          {                 var contensWidth = document.getElementById('contens').offsetWidth;                var colOneElement = document.getElementById('colOne');                   var colTwoElement = document.getElementById('colTwo');                var colOneWidth = document.getElementById('colOne').offsetWidth;                colTwoElement.style.width = (contensWidth-(colOneWidth+10))+ 'px';                var colTwoWidth = document.getElementById('colTwo').offsetWidth;                 //alert("DOM script run, colOne present. colTwo is ="+colTwoWidth);            }            else if (document.getElementById('colTwo'))            {                 var contensWidth = document.getElementById('contens').offsetWidth;                var colTwoElement = document.getElementById('colTwo');                colTwoElement.style.width = (contensWidth-20)+ 'px';                var colTwoWidth = document.getElementById('colTwo').offsetWidth;                 alert("DOM script run, colTwo present. colTwo is ="+colTwoWidth);             }        else           {                //alert("DOM script run, no divs pressent. colTwo is ="+colTwoWidth);             }      //  if (document.getElementById('footer'))     //   {                 //   document.getElementById('footer').style.cssFloat = 'left';     //   } }}