function getByID( id, doc )
{
    if ( doc == null ) doc = document;

    if (doc.getElementById) {
	// Newer browsers
	return doc.getElementById(id);
    } else if (doc.all) {
	// IE4
	return doc.all[id];
    } else if (doc.layers) {
	// NS4
	return doc.layers[id];
    } else {
	alert( 'We couldn\'t recognize your browser.  Please use a different one or upgrade to the newest version.' );
	window.close();
    }
}

