function showClock() {
var obj = document.getElementById('clocks');
var req;

if (window.XMLHttpRequest)	req = new XMLHttpRequest();
else if(window.ActiveXObject) {
    try {
        req = new ActiveXObject('Msxml2.XMLHTTP');  
    } catch (e){}									
    try {											
        req = new ActiveXObject('Microsoft.XMLHTTP');
    } catch (e){}
}

if (req) {
    req.onreadystatechange = function() {
    	if (req.readyState == 4 && req.status == 200)  
		{ obj.innerHTML = req.responseText; }        
    };  
    req.open("POST", '/bitrix/clocks.php', true);
    req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    req.send('clock=1&ajax=1');
} 
}
$(document).ready(function(){
        $(".login").focus(function () { if (jQuery(this).attr("value") == "логин") { jQuery(this).attr("value",""); } return false;  });
        $(".password").focus(function () { if (jQuery(this).attr("value") == "пароль") { jQuery(this).attr("value",""); } return false; });
        $(".menu-bot li:last").addClass('last');$(".menu-sect li:last").addClass('last');
        $(".leftmenu li").click(function () { var catcher = $(this).children('a').attr('href'); location.href=catcher;  });
        $(".confirmMoney").click(function () { window.confirm("Внимание! С вашего счета будет произведено списание денег."); return true; });
        $("#deleteTipOfTheDay").click(function () { window.location = ("/personal/disabletips.php"); });
        setInterval(showClock, 1000); 

});



