
  function smallPopup( url )   // open asset in new window (smaller than default 800x600 size) - return false so the link that is clicked on doesn't go anywhere
  {
     window.open( url, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=420,left=150,top=100,screenX=150,screenY=100' );
  }


  function qsValue( name )
  {
    var value;

    try { value = unescape( location.search.match( new RegExp( name + "=+([^&]*)" ) )[ 1 ] ); }
    catch( e ) { value = ""; }

    return value;
  }


  function printPage()
  {
    try
    { document.body.offsetHeight; window.print(); }
    catch( e )
    { alert( 'Sorry, your browser does not support automatic printing.  Please try printing from the File menu of your browser.' ); }
  }


  function checkForAutomaticPrinting()
  {
    var autoPrint = qsValue( "print" );
    if( autoPrint != "" && autoPrint == "true" ) { printPage(); }
  }
