function debugtxt(input)
{
    var txt = document.createTextNode(input);
    document.getElementById('home').appendChild(txt); 
}
function hello()
{
    document.writeln('Hello World!');
}

	// Example of swap() & locateImage():
	// <a id="targetLink" href="images/image0.jpg" target="_blank"><img id="targetIMG" src="images/image0.jpg" width="300" alt="Caption Zero" /></a>
	// <a href="javascript:void(0)" onClick="swap('targetIMG', 'targetLink', document.images['thumb1'].src,  document.images['thumb1'].alt)"><img name="thumb1" src="images/image1.jpg" height="50" alt="Caption"/></a>
function swap(oldIMG, newIMG, newALT)
{
		var theImage = locateImage(oldIMG);
		if (theImage)
		{
				theImage.src = newIMG;
				theImage.alt = newALT;
		}
}

function locateImage(name)
{
		var theImage = false;
		if (document.images)
		{
				theImage = document.images[name];
		}
		if (theImage)
		{
				return theImage;
		}
		return (false);
}

