window.alert = function(txt)
{
        //document.write(txt);
        var shield = document.createElement("DIV");
        shield.style.position = "absolute";
        shield.style.left = "0px";
        shield.style.top = "0px";
        shield.style.width = document.body.clientWidth+"px";
        shield.style.height = document.body.clientHeight+"px";
        shield.style.background = "#000";
        shield.style.zIndex = "1";
        shield.style.filter = "alpha(opacity=0)";
        strhtm = "<iframe style=\"filter:chroma(color=white)\" width='"+ document.body.clientWidth +"px' height='" + document.body.scrollHeight + "px' src=\"about:blank\" ></iframe>";
        shield.innerHTML = strhtm;
        var alertFram = document.createElement("DIV");
        alertFram.style.position = "absolute";
        alertFram.style.left = "50%";
        alertFram.style.bottom = "50%";
        alertFram.style.marginLeft = "-190px";
        alertFram.style.marginTop = "-60px";
        alertFram.style.width = "300px";
        alertFram.style.height = "132px";
        alertFram.style.lineHeight = "132px";
        alertFram.style.zIndex = "2";
        strHtml  = "<table style=\" background-image:url(../images/alert_bg.gif);list-style:none;margin:0px;padding:0px;width:100%\">\n";
        strHtml += "        <tr><td style=\"text-align:left;padding-left:10px;font-weight:bold;height:30px;line-height:30px;border:0px solid;\"></td></tr>\n";
 strHtml += "        <tr><td style=\"text-align:center;font-weight:bold;font-size:14px;height:69px;line-height:20px;border-left:0px solid;border-right:0px solid;\">"+txt+"</td></tr>\n";       
        strHtml += "        <tr><td valign=\"top\" style=\"text-align:center;font-weight:bold;height:25px; border:0px solid;\"><input type=\"button\" style=\"background-image:url(../images/alert_enter.gif);width:53px;height:21px;border:0px;cursor: hand;\" onclick=\"doOk()\" /></td></tr>\n";
        strHtml += "</table>\n";
        alertFram.innerHTML = strHtml;
        document.body.appendChild(alertFram);
        document.body.appendChild(shield);
        var c = 0;
        this.doAlpha = function(){
                if (c++ > 10){clearInterval(ad);return 0;}
                shield.style.filter = "alpha(opacity="+c+");";
        }
        var ad = setInterval("doAlpha()",20);
        this.doOk = function(){
                alertFram.style.display = "none";
                shield.style.display = "none";
                
                //<img height=\"35\" width=\"65\" class=\"ComponentImage\" onmouseover=\"Highlight(this);\" onmouseout=\"UnHighlight(this);\" src=\"../../images/do_minamap.jpg\" />
        }
}
