<!--
/*
 * common.js
 * Copyright ©2007 MatchPlay Tennis
 */

/*
 * Finds an object by within the document.
 */
function getObject(name) {
	if ( document.getElementById )
		return document.getElementById(name);
	else if ( document.all )
		return document.all[name];
	else if ( document.layers )
		return document.layers[name];
}

/*
 * Opens the lookup window.
 */
function openLookup(url) {
	var width = 300;
	var left = screen.width - width;
	var height = screen.height - 400;
	var top = 100;
	var lookup = window.open(url, "lookup", "toolbar=0,location=0,directories=0,menubar=0,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left);
	lookup.focus();
}
// -->