  var isDHTML = (document.getElementById || document.all || document.layers );

  //---------------------------------------------------------------------------
  function cssSetStatus( msg ) {
    window.status = msg;
    return true;
  }

  //---------------------------------------------------------------------------
  function cssBool2TF( val, t, f ) {
    result = "";
    
    if( (val == 'yes') || (val == 'YES') ||
        (val == 1) || (val == 'true') || (val == 'TRUE') ) {
      result = t;
    } else {
      result = f;
    }

    return result;
  }

  //---------------------------------------------------------------------------
  function cssPopUp( url, name ) {
    // Params... width, height, menubar, toolbar, location, resize, scroll
    var param = new String();
    var features = new String();

    // Params[2] : width
    if( param = arguments[2] ) {
      if( param.substring( param.length - 1, param.length ) == '%' ) {
        percent = Number( param.substring( 0, param.length - 1 ) );
        features += "width=" + Math.round(document.body.clientWidth * (percent/100));
      } else { 
        features += "width=" + param;
      }
    } else {
      features += "width=" + Math.round(document.body.clientWidth * 0.95);
    }
    features += ",";

    // Params[3] : height
    if( param = arguments[3] ) {
      if( param.substring( param.length - 1, param.length ) == '%' ) {
        percent = Number( param.substring( 0, param.length - 1 ) );
        features += "height=" + Math.round(document.body.clientWidth * (percent/100));
      } else { 
        features += "height=" + param;
      }
    } else {
      features += "height=" + Math.round(document.body.clientWidth * 0.95);
    }
    features += ",";

    // Params[4] : menubar
    if( param = arguments[4] ) {
      features += "menubar=" + cssBool2TF( param, 'yes', 'no' );        
    } else {
      features += "menubar=no";
    }
    features += ",";
    
    // Params[5] : toolbar
    if( param = arguments[5] ) {
      features += "toolbar=" + cssBool2TF( param, 'yes', 'no' );        
    } else {
      features += "toolbar=no";
    }
    features += ",";
    
    // Params[6] : location
    if( param = arguments[6] ) {
      features += "location=" + cssBool2TF( param, 'yes', 'no' );        
    } else {
      features += "location=no";
    }
    features += ",";

    // Params[7] : resizable
    if( param = arguments[7] ) {
      features += "resizable=" + cssBool2TF( param, 'yes', 'no' );        
    } else {
      features += "resizable=no";
    }
    features += ",";

    // Params[8] : scrollable
    if( param = arguments[8] ) {
      features += "scrollbars=" + cssBool2TF( param, 'yes', 'no' );        
    } else {
      features += "scrollbars=no";
    }
    //features += ",";

    //alert( features );

    // Open the window
    hdl = window.open( url, name, features );
    hdl.focus(); 
  }

