function hideSelects(){
  for(i=0;i<document.all.length;i++){
    if (document.all[i].tagName=="SELECT"){
	  document.all[i].style.display="none"
	}  
  }
}

function showSelects(){
  for(i=0;i<document.all.length;i++){
    if (document.all[i].tagName=="SELECT"){
	  document.all[i].style.display="block"
	}  
  }
}


function checkNew(){  
    mySpan=event.srcElement.name + "New"
    mySpan="document.all.span_" + mySpan
    if (event.srcElement.value=="new") {
        eval(mySpan + ".style.display='block'")
    }
    else{
        eval("document.forms[0]." + event.srcElement.name + "New.value=''")
        eval(mySpan + ".style.display='none'")
    }
}

function display(id){
    return eval("document.all."+id+".style.display='block'")
}
function unDisplay(id){
    return eval("document.all."+id+".style.display='none'")
}


function show(el){
    myEl=eval("document.all." + el)
    myEl.style.visibility="visible"
}
function hide(el){
    myEl=eval("document.all." + el)
    myEl.style.visibility="hidden"
}

function getRealLeft(imgElem) {
	xPos = eval(imgElem).offsetLeft;
	tempEl = eval(imgElem).offsetParent;
  	while (tempEl != null) {
  		xPos += tempEl.offsetLeft;
  		tempEl = tempEl.offsetParent;
  	}
	return xPos;
}

function getRealTop(imgElem) {
	yPos = eval(imgElem).offsetTop;
	tempEl = eval(imgElem).offsetParent;
	while (tempEl != null) {
  		yPos += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
	return yPos;
}


