﻿// JScript File


//This is when HTML text gives th "UnKnown" error
//Put into a div only
    function InjectHTML(strText,ObjId)
    {
              //strText = 'Some Html Text';

            var oldDiv = document.getElementById(ObjId);

            var newDiv = document.createElement(oldDiv.tagName);

            newDiv.id = oldDiv.id;
            newDiv.className = oldDiv.className;
            newDiv.innerHTML = strText;

            oldDiv.parentNode.replaceChild(newDiv, oldDiv);     
    }

