// JavaScript Document

var switchMilliseconds = 30000;
var timerID = null
var timerRunning = false

function refreshGuestbook() {
loadPage('../templates/include/guestbook.asp','','content','loadPage(\'../templates/include/gbcomment.asp\',\'stat=1\',\'gbComment\');loadPage(\'../templates/include/gbcomment.asp\',\'stat=0\',\'gbCommentU\')');
timerRunning = true
timerID = self.setTimeout('refreshGuestbook()',switchMilliseconds);
}

function StopClockGB()
{
    if(timerRunning) {
        clearTimeout(timerID)
    timerRunning = false;}
	//loadPage('../templates/include/guestbook.asp','','content','loadPage(\'../templates/include/gbcomment.asp\',\'stat=1\',\'gbComment\');loadPage(\'../templates/include/gbcomment.asp\',\'stat=0\',\'gbCommentU\')');
}
function StartClockGB()
{
    refreshGuestbook();
}