function formatTime() { now = new Date(); hour = now.getHours() - 1; min = now.getMinutes(); sec = now.getSeconds(); if (min <= 9) { min = "0" + min; } if (sec <= 9) { sec = "0" + sec; } if (hour < 10) { hour = "0" + hour; } document.getElementById("clock").innerHTML = hour + '.' + min + ' '; setTimeout("formatTime()", 1000); } function checkWidth(){ var divWidth = 870; if ( (screen.width == 1280) && (screen.height == 1024) ) //1280 x 1024 { divWidth = 870; if(document.getElementById('left_content')){ document.getElementById('left_content').style.width = 415 + "px"; } if(document.getElementById('right_content')){ document.getElementById('right_content').style.width = 415 + "px"; } } else if ( (screen.width == 1152) && (screen.height == 864) ) //1152 x 864 { divWidth = 745; if(document.getElementById('left_content')){ document.getElementById('left_content').style.width = 357 + "px"; } if(document.getElementById('right_content')){ document.getElementById('right_content').style.width = 370 + "px"; } } else if ( (screen.width == 1024) && (screen.height == 768) ) //1024 x 768 { divWidth = 618; if(document.getElementById('left_content')){ document.getElementById('left_content').style.width = 286 + "px"; } } document.getElementById('main_content_box').style.width = divWidth + "px"; }