/**
 * Sets the 'display' of an element to 'block' for a given element name.
 * Will also set the top/left values of the element.
 *
 * @param string elemName the name of the element to manipulate
 * @param int topval the 'top' value to set
 * @param int leftval the 'left' value to set
 */
function showDropdown(elemName, topval, leftval) {
	var elem = getElem(elemName);
	if (elem) {
		elem.style.display = 'block';
		elem.style.top = topval + "px";
		elem.style.left = leftval + "px";
	}
}
/**
 * Sets the 'display' of an element to 'none' for a given element name.
 *
 * @param string elemName the name of the element to manipulate
 */
function hideDropdown(elemName) {
	var elem = getElem(elemName);
	if (elem) {
		elem.style.display = 'none';
	}
}
/**
 * Retrieves a document element.  Will swallow any and all exceptions :-D
 * 
 * @param string id the id of the element to get
 * @return the element if it exists, false otherwise
 */
function getElem(id) {
	try {
		if (document.all) {
			return document.all(id);
		}
		else if (document.getElementById(id)) {
			return document.getElementById(id);
		}
	} catch(e) {}
	return false;
}