var strText = "";  
function showtext(i) {
    var HTMLtag = 0;   
    for (count=4; i < strText.length && count > 0; i++) {
        if (strText.charAt(i) == "<" || strText.charAt(i) == ">") HTMLtag = !HTMLtag;
        if (!HTMLtag) count--;
    }
    document.all["myBlock"].innerHTML = strText.substr(0, i);
    if (i < strText.length) setTimeout("showtext(" + i + ")", 20);
}
function doit() {
    strText = document.all["myBlock"].innerHTML;
    document.all["myBlock"].innerHTML = "";
    document.all["myBlock"].style.visibility = "visible";
    setTimeout("showtext(0)", 100);
}