function stDesc( id ) {

  if ( id == 'inst' ) {

    var instDisp = 'block';
    var itDisp = sgtDisp = lgtDisp = ogcrDisp = teeDisp = tbtDisp = 'none';


  } else if ( id == 'it' ) {

    var itDisp = 'block';
    var instDisp = sgtDisp = lgtDisp = ogcrDisp = teeDisp = tbtDisp = 'none';


  } else if ( id == 'sgt' ) {

    var sgtDisp = 'block';
    var instDisp = itDisp = lgtDisp = ogcrDisp = teeDisp = tbtDisp = 'none';

  } else if ( id == 'lgt' ) {

    var lgtDisp = 'block';
    var instDisp = itDisp = sgtDisp = ogcrDisp = teeDisp = tbtDisp = 'none';

  } else if ( id == 'ogcr' ) {

    var ogcrDisp = 'block';
    var instDisp = itDisp = sgtDisp = lgtDisp = teeDisp = tbtDisp = 'none';

  } else if ( id == 'tee' ) {

    var teeDisp = 'block';
    var instDisp = itDisp = sgtDisp = ogcrDisp = lgtDisp = tbtDisp = 'none';

  } else if ( id == 'tbt' ) {

    var tbtDisp = 'block';
    var instDisp = itDisp = sgtDisp = lgtDisp = ogcrDisp = teeDisp = 'none';

  }

  document.getElementById( 'inst' ).style.display = instDisp;
  document.getElementById( 'it' ).style.display = itDisp;
  document.getElementById( 'sgt' ).style.display = sgtDisp;
  document.getElementById( 'lgt' ).style.display = lgtDisp;
  document.getElementById( 'ogcr' ).style.display = ogcrDisp;
  document.getElementById( 'tee' ).style.display = teeDisp;
  document.getElementById( 'tbt' ).style.display = tbtDisp;

}



var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}




/*------------------------------------------------------------
  Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
  Coded by: Taewook Kang (txkang.REMOVETHIS@hotmail.com)
  Web Site: http://txkang.com
  Script featured on Dynamic Drive (http://www.dynamicdrive.com)

  Please retain this copyright notice in the script.
  License is granted to user to reuse this code on
  their own website if, and only if,
  this entire copyright notice is included.
--------------------------------------------------------------*/

//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr');

//Specify spectrum of different font sizes:
var szs = new Array( "50%","75%","100%","125%","150%","175%","200%" );
var startSz = 2;

function ts( trgt,inc ) {
  if (!document.getElementById) return
  var d = document,cEl = null,sz = startSz,i,j,cTags;

  sz = sz + inc;
  if ( sz < 1 ) sz = 0;
  if ( sz > 6 ) sz = 6;
  startSz = sz;

  if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

  cEl.style.fontSize = szs[ sz ];

  for ( i = 0 ; i < tgs.length ; i++ ) {
    cTags = cEl.getElementsByTagName( tgs[ i ] );
    for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
  }
}





function calcPrice() {
  var priceHolder = document.getElementById('total_cost_holder');
  var ogcrHolder = document.getElementById('ogcr_cost');

  var theBasePrice = 0.00;
  var thePrice = 0;

  if ( document.getElementById( 'st[it][0]' ).checked )
    thePrice += 0.00;
  else if ( document.getElementById( 'st[it][1]' ).checked )
    thePrice += 70.00;
  else if ( document.getElementById( 'st[it][2]' ).checked )
    thePrice += 500.00;

  if ( document.getElementById( 'st[sgt][0]' ).checked )
    thePrice += 0.00;
  else if ( document.getElementById( 'st[sgt][1]' ).checked )
    thePrice += 35.00;
  else if ( document.getElementById( 'st[sgt][2]' ).checked )
    thePrice += 250.00;

  if ( document.getElementById( 'st[lgt][0]' ).checked )
    thePrice += 0.00;
  else if ( document.getElementById( 'st[lgt][1]' ).checked )
    thePrice += 15.00;

  if ( document.getElementById( 'st[tee][0]' ).checked )
    thePrice += 0.00;
  else if ( document.getElementById( 'st[tee][1]' ).checked )
    thePrice += 150.00;

  if ( document.getElementById( 'st[tbt][0]' ).checked )
    thePrice += 0.00;
  else if ( document.getElementById( 'st[tbt][1]' ).checked )
    thePrice += 125.00;
  else if ( document.getElementById( 'st[tbt][2]' ).checked )
    thePrice += 1000.00;

  var ogcrPrice = ( thePrice > 1.00 ? 5.00 : 10.00 );

  if ( document.getElementById( 'st[ogcr][0]' ).checked )
    thePrice += 0.00;
  else if ( document.getElementById( 'st[ogcr][1]' ).checked )
    thePrice += ogcrPrice;


  if ( thePrice.toFixed )
    priceHolder.innerHTML = addCommas( thePrice.toFixed( 2 ) );
  else
    priceHolder.innerHTML = addCommas( thePrice );

  if ( ogcrPrice.toFixed )
    ogcrHolder.innerHTML = addCommas( ogcrPrice.toFixed( 2 ) );
  else
    ogcrHolder.innerHTML = addCommas( ogcrPrice );

}
function addCommas( nStr ) {
  nStr += '';
  x = nStr.split( '.' );
  x1 = x[0];
  x2 = x.length > 1 ? '.' + x[1] : '';
  var rgx = /(\d+)(\d{3})/;
  while ( rgx.test( x1 ) )
    x1 = x1.replace( rgx, '$1' + ',' + '$2' );
  return x1 + x2;
}