
var ae_cb = null;

function $( id ) { return document.getElementById(id); }

function modal_click( state ) 
{ var status;
  
  if ( ( state == null ) || ( state == 'show' ) )
    { status = 'block' }
  else
    { status = 'none' }
  
  $('modal_overlay').style.display = $('modal_modal').style.display = status;
  
  if( status == 'none') 
	{ $(returnTo).focus(); }
  
  return false;

}//-- end [ ae_click ]


function clickswitch( )
 { modal_click('close');   }


function $q( id )
{ return document.getElementById( id );  }

