javascript/general.js
// swaps text in a layer.

swaps text in a layer.
swaps text in a layer .
function swapText(text, divID, innerDivID) {
		var content = "<span class=\"commandDesc\">" + text + "</span>";
		if (w3c) {
			var theObj = getObject(divID);
			if (theObj) theObj.innerHTML = text;
		}
    else if (ns4) {
			var innerObj = divID + ".document." + innerDivID;
			var theObj = getObject(innerObj);
			if (theObj) {
				theObj.document.open();
				theObj.document.write(content);
				theObj.document.close();
			}
		}
	}
function swapText ( text , divID , innerDivID ) { var content = "<span class=\"commandDesc\">" + text + "</span>" ; if ( w3c ) { var theObj = getObject ( divID ) ; if ( theObj ) theObj . innerHTML = text ; } else if ( ns4 ) { var innerObj = divID + ".document." + innerDivID ; var theObj = getObject ( innerObj ) ; if ( theObj ) { theObj . document . open ( ) ; theObj . document . write ( content ) ; theObj . document . close ( ) ; } } }
swaps text in a layer.
swaps text in a layer .