// JavaScript Document
//The function is quite simple, it takes one argument, "newBgColor" 
//and passes it as the value of the "bgColor" property of the "document" object

function changeBgColor(newBgColor) {
	if (window.document && window.document.bgColor) 
	{  
	document.bgColor = newBgColor;
	}
	}