 // function returns a the object for the given id, or false if none was found
function getObject(objectId, frame) {
	
	if(frame==""){
		if(top.document.getElementById && top.document.getElementById(objectId))
			return document.getElementById(objectId); // W3C DOM
		else if (top.document.all && top.document.all(objectId))
			return top.document.all(objectId); // MSIE 4 DOM
		else return false;

	}
	else{
		if(top[frame].document.getElementById && top[frame].document.getElementById(objectId))
			return top[frame].document.getElementById(objectId); // W3C DOM
		else if (top[frame].document.all && top[frame].document.all(objectId))
			return top[frame].document.all(objectId); // MSIE 4 DOM
		else return false;

	}
}