﻿
function replaceText(text) {
    while (text.lastIndexOf("&") > 0) {
        text = text.replace('&', '[i-Stats]');
    }
    return text;
}

var web_referrer = replaceText(document.referrer);
istat = new Image(1, 1);
//istat.src = "http://datebility.com/webstats/counter.php?sw=" + screen.width + "&sc=" + screen.colorDepth + "&referer=" + web_referrer + "&page=" + location.href;

var ShowForumMessage = function() {
    winForumMsg.load('/chat/boards/default.aspx');
    winForumMsg.show();
}


function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{

    var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ? document.getElementById(szDivID).style :
   document.all[szDivID].style;
    obj.visibility = document.layers ? (iState ? "show" : "hide") :
   (iState ? "visible" : "hidden");
}

var ShowChatMessage = function() {
    Ext.Msg.alert('Alert', 'This section is under construction.');
}
function testvalue() {
    winRecommend.show();
}




//  onerror = function() { return true; }


