/*
* File: dynamic_element.js
* Defines methods for writing text to a DHTML object
* regardless of browser.
* include in <head> element of html page with:
* <script language="javascript"  src="../../_global/js/dynamic_element.js"></script>
*/

function setbody(thisid,thistext){
	//alert("hello from 'setbody' and '"+thisid+"'.");
	//alert(thistext);
	if (document.getElementById) {     // If this is a DOM-compliant browser
		element = document.getElementById(thisid); 
		element.innerHTML=thistext;
		//alert("dom compliant");
	}
	else if (document.all) {           // Otherwise, if the IE API is supported
		element = document.all[thisid]; 
		element.innerHTML=thistext;   
		//alert("microsoft browser");
	}
	else if (document.layers) {        // Else if the Netscape API is supported
		element = document.layers[thisid]; 
		element.document.write(thistext);
		element.document.close;
		//alert("Old Netscape browser");
	}

}

//end dynamic_element.js
