function getStyleObject(objectId) {
	// checkW3C DOM, then MSIE 4, then NN 4.
	
	if(document.getElementById && document.getElementById(objectId)) {
		return document.getElementById(objectId).style;
	}
	else if (document.all && document.all(objectId)) { 
		return document.all(objectId).style;
	} 
	else if (document.layers && document.layers[objectId]) { 
		return document.layers[objectId];
	} 
	else {
		return false;
	}
}

function changeVisibility(newVisibility) {
	// first get a reference to the cross-browser style object // and make sure the object exists
	var styleObject = getStyleObject("review_form");
	if(styleObject) {
		styleObject.visibility = newVisibility;
		return true;
	} 
	else {
		// we couldn't find the object, so we can't change its visibility
		return false;
	}
}
