  function getPageOffsetLeft(el) {
  var x;
  // Return the x coordinate of an element relative to the page.
  x = el.offsetLeft;
  if (el.offsetParent != null)
    x += getPageOffsetLeft(el.offsetParent);
  return x;
}

function getPageOffsetTop(el) {
  var y;
  // Return the x coordinate of an element relative to the page.
  y = el.offsetTop;
  if (el.offsetParent != null)
    y += getPageOffsetTop(el.offsetParent);
  return y;
}

function showMenu(el) {
//Takes PARENT item of menu box as argument
	for(i=0;i<el.childNodes.length;i++) {
		if(el.childNodes[i].className=="DropMenuHeadItem") {
			el.childNodes[i].style.top=getPageOffsetTop(el)-1;
			el.childNodes[i].style.left=getPageOffsetLeft(el)-1;
			el.childNodes[i].style.visibility="visible";
		}else if(el.childNodes[i].className=="DropMenuBody"){
			el.childNodes[i].style.top=(getPageOffsetTop(el)-1)+23;
			el.childNodes[i].style.left=(getPageOffsetLeft(el)-1);
			el.childNodes[i].style.visibility="visible";
		}
	}
}
function hideMenu(el) {
//Takes the menu box PARENT as argument
	for(i=0;i<el.childNodes.length;i++) {
		if(el.childNodes[i].className=="DropMenuHeadItem" || el.childNodes[i].className=="DropMenuBody") {
			el.childNodes[i].style.visibility="hidden";
		}
	}
}

function expandIt(getIt){
//used to expand list, style in hidden divs is set display:none, onclick changes state
	getIt.style.display=(getIt.style.display=="none")?"block":"none";
}
//-->

function init(){
	CurrentAwardDiv="";
}

function outputIt(getIt){
//used to expand list, style in hidden divs is set display:none, onclick changes state
	if (CurrentAwardDiv!=""){
		document.getElementById(CurrentAwardDiv).style.display="none";
	}
	CurrentAwardDiv=getIt.id;
	getIt.style.display=(getIt.style.display=="none")?"block":"none";
}
//-->


function blurRoutine(inputfield){
	if (inputfield.value==""){
		inputfield.className="needsinput";
	}else{
		inputfield.className="satisfied";
	}
}
