// JavaScript Document
var str1 = 'testing';
var str2 = "testing 2";
function swapText(what) {
    document.getElementById("MyLayer").firstChild.nodeValue=what; //this will change the text in mydiv to the text you specified when calling the function
}