function getAnch(n) {
	if (HM_NS4) {
		for (i=0;i<document.anchors.length;i++) {
			anch = document.anchors[i];
			if(anch.name == n) break;
		}
		menX = anch.x;
		menY = anch.y;
	}
	if (HM_IE || HM_DOM) {
		menX	= calculateTrueOffsetLeft(eval(n))
		menY	= calculateTrueOffsetTop(eval(n))
	}
	return [menX,menY];
}


function calculateTrueOffsetLeft(node) {
	if (node.tagName == "BODY") return 0;
	else return (node.tagName == "TABLE" || node.tagName == "TD" ? node.offsetLeft : 0) + calculateTrueOffsetLeft(node.parentElement);
}

function calculateTrueOffsetTop(node) {
	if (node.tagName == "BODY") return 0;
	else return (node.tagName == "TABLE" || node.tagName == "TD" ? node.offsetTop : 0) + calculateTrueOffsetTop(node.parentElement);
}


function f_toggleCombos( showHow )
{
	var i; var j;
	for (i=0;i<document.forms.length;i++)
		for (j=0;j<document.forms[i].elements.length;j++)
			if (document.forms[i].elements[j].tagName == "SELECT")
				if (document.forms[i].name != "spiffyCal")
					document.forms[i].elements[j].style.visibility=showHow;
}
