function getID ( id ) {
  if (( typeof document.getElementById(id)) == 'object' )
    return document.getElementById(id);
  else
    return eval ( 'document.' + id );
}
function HoldClicks () {
  document.body.style.cursor = 'wait';
  d = getID ( 'procHold' );
  d.style.visibility      = 'visible';
}
function PopWin (url,t,h,w,f){
  if (f) stats = 'location=no,menubar=no,status=no,scrollbars=no,toolbar=no,resizable=no';
  else stats = 'location=yes,menubar=yes,status=yes,scrollbars=yes,toolbar=yes,resizable=yes';
  window.open(url,t,'width='+w+',height='+h+','+stats);
}
function FormErrorHandling ( element, error_msg ) {
    if (( typeof error_msg ) != 'undefined' ) {
    	getID('td_'+element).className	= 'formError';
    	getID('span_'+element).innerHTML	= '<font color=red>'+error_msg+'</font><br>';
    } else {
    	getID('td_'+element).className	= '';
    	getID('span_'+element).innerHTML	= '';
    }
}	
