var preloadFlag = 0;
var cookieString = "";
var currentPlanIndex = -1;

var searchParmMethod;
var searchParmPrimeCat;
var searchParmSecondCat;
var searchParmPlanType;
var searchParmFloors;
var searchParmBeds;
var searchParmSF;
var searchParmGarage;
var searchParmMaster;
var searchParmMinWidth;
var searchParmMaxWidth;
var searchParmMinDepth;
var searchParmMaxDepth;
var searchParmCookie = "";
var searchMatchCount = 0;
// ***************************
function toi_doItWithStyle()
// ***************************
{
  document.write( '<STYLE TYPE="text/css">');
  document.write( 'body,table,td,p,font,input{font:normal 12px Verdana;color:#000000;}');
	document.write( 'ol,ul,li{font:normal 12px Verdana;color:#000000;}');
	document.write( '  .indent10{margin-left: 10px;}');
	document.write( '  .indent15{margin-left: 15px;}');
	document.write( '  .indent20{margin-left: 20px;}');
	document.write( '  .indent60{margin-left: 60px;}');
	document.write( '  .colorblack {background:#000000;color:#000000;}');
	document.write( '  .colorwhite {background:#FFFFFF;color:#FFFFFF;}');
	document.write( '  .colorgreen1 {background:#C5E6D1;color:#C5E6D1;}');  /* lightest green */
	document.write( '  .colorgreen2 {background:#60B47F;color:#60B47F;}');  /* medium green */
	document.write( '  .colorgreen3 {background:#005826;color:#005826;}');  /* darkest green */
	document.write( '	 .f14{font-size:14px;background:transparent;color:#000000;text-decoration:none;}');
	document.write( '  .f13{font-size:13px;background:transparent;color:#000000;text-decoration:none;}');
	document.write( '  .f12{font-size:12px;background:transparent;color:#000000;text-decoration:none;}');
	document.write( '  .f11{font-size:11px;background:transparent;color:#000000;text-decoration:none;}');
	document.write( '  .f10{font-size:10px;background:transparent;color:#000000;text-decoration:none;}');
	document.write( '  .f9 {font-size:9px; background:transparent;color:#000000;text-decoration:none;}');
	document.write( '  .f8 {font-size:8px; background:transparent;color:#000000;text-decoration:none;}');
	document.write( '  .f7 {font-size:7px; background:transparent;color:#000000;text-decoration:none;}');

  document.write( '.f8ghost {text-decoration: none; color:#aaaaaa; font-size: 8px; line-height: 8px; font-family: verdana}');
  document.write( '.f10ghost {text-decoration: none; color:#aaaaaa; font-size: 10px; line-height: 11px; font-family: verdana}');

  document.write( '.f8link {text-decoration: none; color:#000000; font-size: 8pt; line-height: 9pt; font-family: verdana}');
  document.write( 'a.f8link:hover {text-decoration: bold; color:#FF0000}');
  document.write( '.f10red  { color: #FF0000; font-size: 10pt; line-height: 12pt; font-family: verdana, arial, helvetica; text-decoration: none }');
  document.write( 'a.f10red:hover  { color: FF0000; text-decoration: none; font-weight: bold }');
  document.write( '.f10link {text-decoration: none; color:#000000; font-size: 10px; line-height: 11px; font-family: verdana}');
  document.write( 'a.f10link:hover {text-decoration: bold; color:#FF0000}');

  document.write( '.f12white  { color: #FFFFFF; font-size: 10pt; line-height: 12pt; font-family: verdana, arial, helvetica; text-decoration: none }');
  document.write( 'a.f12white:hover  { color: FFFFFF; text-decoration: none; font-weight: bold }');
  document.write( '.f12link {text-decoration: none; color:#000000; font-size: 12px; line-height: 12px; font-family: verdana}');
  document.write( 'a.f12link:hover {text-decoration: bold; color:#FF0000}');
  document.write( '.panelwhite {BORDER-RIGHT: #5a8d6d solid; BORDER-TOP: #60b47f 1px solid; FONT-SIZE: 11px; MARGIN-LEFT: 6px; VERTICAL-ALIGN: center; BORDER-LEFT: #60b47f 1px solid; COLOR: #000000; LINE-HEIGHT: 11px; MARGIN-RIGHT: 12px; BORDER-BOTTOM: #5a8d6d solid; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #ffffff; TEXT-DECORATION: none }');
  document.write( '</STYLE>');
}

// ************************
function toi_mainPreLoad()
// ************************
{
	if (document.images)
	{
    p1 = toi_newImage( "images/red_main_03MO.gif" );
    p2 = toi_newImage( "images/red_main_04MO.gif" );
    p3 = toi_newImage( "images/red_main_05MO.gif" );
    p4 = toi_newImage( "images/red_main_08MO.gif" );
    p5 = toi_newImage( "images/red_main_09MO.gif" );
    p6 = toi_newImage( "images/red_main_10MO.gif" );
    p7 = toi_newImage( "images/red_main_11MO.gif" );
    m1 = toi_newImage( "images/red_sub_02mo.gif" );
    m2 = toi_newImage( "images/red_sub_03mo.gif" );
    m3 = toi_newImage( "images/red_sub_04mo.gif" );
    m4 = toi_newImage( "images/red_sub_05mo.gif" );

		preloadFlag = 1;
	}
}

// ************************
function toi_newImage(arg)
// ************************
{
	if (document.images)
	{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

// **************************
function toi_changeImages()
// **************************
{
	if (document.images && (preloadFlag > 0))
	{
		for (var i=0; i<toi_changeImages.arguments.length; i+=2)
		{
			document[toi_changeImages.arguments[i]].src = toi_changeImages.arguments[i+1];
		}
	}
}

// *********************************************************
function toi_getCookieVar( forString )
// This function gets the value associated with "forString"
// from the cookie. Return value is numeric
// *********************************************************
{
  var testString = "";
  testString = toi_getCookieStr(forString);
  if( testString == "" )
    return 0;
  else
    return testString.valueOf();
}

// ************************************************************************
function toi_getCookieStr( forString )
// This function gets the value associated with "forString"
// from the cookie. Return value is alpa string.
// Example: to retrieve the value of a cookie named
// NUMBEROFHOUSES: var numberOfHouses = toi_getCookieStr("NUMBEROFHOUSES");
// Note that numberOfHouses will be "24" (string) not 24.0 number.
// To get a numeric value, see function toi_getCookieVar.
// ************************************************************************
{
  var index;
  var namestart;
  var nameend;
  // if this function fails to get a valid string retString
  // will be returned with NULL value.
  var retString = "";
  if(document.cookie)  // is there a cookie?
  {
    // if the cookie exists, get the character position of
    // the first occurance of "forString" in the cookie and
    // assign it to the index variable. -1 is the result
    // when the string is not found within the cookie.
    index = document.cookie.indexOf(forString);
    if (index != -1)
    {
      namestart = (document.cookie.indexOf("=", index) + 1);
      if( namestart == -1 )
        retString = "";
      else
      {
        nameend = document.cookie.indexOf(";", index);
        if (nameend == -1)
        {
          nameend = document.cookie.length;
          retString = document.cookie.substring(namestart, nameend);
        }
        else if ( nameend > namestart )
        {
          retString = document.cookie.substring(namestart, nameend);
        }
      }
    }
  }
  return unescape(retString);
}

// ******************************************************
function toi_putCookieVar( forString, sVal, perma )
//
// Save a temporary cookie.
// Example: to save the value of 24 as numberOfHouses
// var numberOfHouses = 12;
// toi_putCookieVar( "NUMBEROFHOUSES", numberOfHouses );
// ******************************************************
{
  if( perma > 0)
  {
    //create a cookie expiration date variable
    var expdate = new Date ();
    expdate.setTime (expdate.getTime() + (365 * 24 * 60 * 60 * 1000));
    document.cookie = forString+ "=" +sVal+ "; expires=" + expdate.toGMTString();
  }
  else if( perma < 0 )
    {document.cookie = forString+ "=" +sVal+ "; expires=Thu, 01-Jan-70 00:00:01 GMT";}
  else
    {document.cookie = forString+ "=" +sVal}
}

// ************************************
function toi_deleteCookie( forString )
// ************************************
{
  toi_putCookieVar( forString, "expired", -1 );
  //document.cookie = forString+ "=''; expires=Thu, 01-Jan-70 00:00:01 GMT";
}

// *****************************************
function toi_textLinkTable( whereToPut )
// *****************************************
{
  if( whereToPut == "bartop" )
  { document.write('<a class="f10link">'); }
  else
  {
    document.write(' <table width=700 border="0" cellpadding="0" cellspacing="0">');
    document.write('   <tr>');
    document.write('     <td valign="top" align="center" class="links"><HR width=70% align=center>');
    document.write('       <a href="index.html" class="f10link" >Home</a>&nbsp;|');
    document.write('       <a href="red_allbout.htm" class="f10link" >About Us</a>&nbsp;|');
    document.write('       <a href="red_plansearch.htm" class="f10link" >Browse/Search</a>&nbsp;|');
    document.write('       <a href="red_contacts.htm" class="f10link" >Contacts</a>&nbsp;<br>');
  }

  document.write('       <a href="red_priceguide.htm" class="f10link" >Price Guide</a>&nbsp;|');
  document.write('       <a href="red_stockplans.htm" class="f10link">Stock Plans</a>&nbsp;|');
  document.write('       <a href="red_customplans.htm" class="f10link">Custom Plans</a>&nbsp;');
  if( whereToPut == "bartop" )
  { document.write('</a>'); }
  else
  {
//  document.write('       <a href="#" class="f10link">My Portfolio</a>');
    document.write('     </TD>');
    document.write('   </TR>');
    //document.write('   <tr><TD class="f10red" align="center"><B>This site is under Construction&nbsp;-&nbsp;Last Update: 1/09/05</TD></TR>');
    document.write(' </TABLE> ');
  }

}

// **************************************
function toi_copyAndDesign()
// copy right notice and design credit.
// **************************************
{
		document.write('<table width=700 border="0" cellpadding="0" cellspacing="0">');
			document.write('<tr>');
				document.write('<td valign="top" align="center" class="blacktext"><br>Copyright &copy; 2010&nbsp;Raleigh East Design, Inc ');
						document.write('All Rights Reserved. <br>');
					  document.write('<font class="f8ghost"><br><i>Design:<b><a href="http://www.3rdorigin.com" target="top" class="f8ghost">3rd Origin</a></b></i> </font><br>');
					document.write('<br>');
				document.write('</td>');
			document.write('</tr>');
		document.write('</table>');
}

// ****************************
function toi_format(val, post)
// ****************************
{
  var decpoint;
  var begin;
  var end;
  var valstr;
	var temp_char;

  valstr = "" + val;
  decpoint = valstr.indexOf(".")
  if (decpoint != -1)
  {
    begin = valstr.substring(0,decpoint);
    end = valstr.substring(decpoint+1,valstr.length);
  }
  else
  {
    begin = valstr;
    end = "";
  }
	if (end.length < post)
	{
	  while (end.length < post)
	  {
      end += "0";
    }
  }
	end = end.substring(0,post);
  return (begin+"."+end);
}

// *******************************
function toi_returnToSender()
// *******************************
{
  eval( "location.href='" +senderURL+ ".htm'" );
}

// **********************************
function toi_lightsOn(onOff)
// **********************************
{
  var addonStr = "";
  if( onOff )
    addonStr = "MO"

  var fp1 = "images/red_main_08" + addonStr + ".gif";
  var fp2 = "images/red_main_09" + addonStr + ".gif";
  var fp3 = "images/red_main_10" + addonStr + ".gif";
  var fp4 = "images/red_main_11" + addonStr + ".gif";

  toi_changeImages("iWin08", fp1, "iWin09", fp2, "iWin10", fp3, "iWin11", fp4 );
}

// ************************
function toi_subPageMenu()
// ************************
{
  document.write('	<TR>');
  document.write('	  <TD><A HREF="index.html" onMouseOver="toi_changeImages(\'iHome\', \'images/red_sub_02mo.gif\');" onMouseOut="toi_changeImages(\'iHome\', \'images/red_sub_02.gif\');" onClick="if(this.blur)this.blur();"><img Name="iHome" src="images/red_sub_02.gif" border=0 width=183 height=19></td>');
  document.write('		<TD><A HREF="red_allabout.htm" onMouseOver="toi_changeImages(\'iAbout\', \'images/red_sub_03mo.gif\');" onMouseOut="toi_changeImages(\'iAbout\', \'images/red_sub_03.gif\');" onClick="if(this.blur)this.blur();"><IMG Name="iAbout" SRC="images/red_sub_03.gif" BORDER=0 WIDTH=116 HEIGHT=19 ALT=""></A></TD>');
  document.write('		<TD><A HREF="red_plansearch.htm" onMouseOver="toi_changeImages(\'iPlans\', \'images/red_sub_04mo.gif\');" onMouseOut="toi_changeImages(\'iPlans\', \'images/red_sub_04.gif\');" onClick="if(this.blur)this.blur();"><IMG Name="iPlans" SRC="images/red_sub_04.gif" BORDER=0 WIDTH=184 HEIGHT=19 ALT=""></TD>');
  document.write('  	<TD><A HREF="red_contacts.htm" onMouseOver="toi_changeImages(\'iContact\', \'images/red_sub_05mo.gif\');" onMouseOut="toi_changeImages(\'iContact\', \'images/red_sub_05.gif\');" onClick="if(this.blur)this.blur();"><IMG Name="iContact" SRC="images/red_sub_05.gif" BORDER=0 WIDTH=251 HEIGHT=19 ALT=""></TD>');
  document.write('	</TR>');
}

// *********************************************
function toi_getBathNumber( batSize, dbIndex )
// *********************************************
{
  var fb = numBaths[dbIndex].substring(0, numBaths[dbIndex].indexOf("."));
  var hb = numBaths[dbIndex].substring(numBaths[dbIndex].indexOf(".")+1);
  if( batSize == "FULL" )
    return fb;
  else if( batSize == "HALF" )
    return hb;
  else
    return Number(fb)+Number(hb);
}

// *********************************
function toi_getTotalSF( dbIndex )
// *********************************
{
  var tsf = Number(f0_sf[dbIndex]) + Number(f1_sf[dbIndex]) + Number(f2_sf[dbIndex]) + Number(f3_sf[dbIndex]);
  var pcode = Number(priceCode[dbIndex]);
  if( planType[currentPlanIndex] == "MF" ||
      planType[currentPlanIndex] == "DP" ||
      planType[currentPlanIndex] == "TC"    )
  {
    if( pcode )
      tsf = pcode;
  }
  return tsf;
}

// ***************************************
function getIndexFromNumber( pNumString )
// ***************************************
{
  var i;
  for( i=1; i<=totalPlansAvailable; i++ )
  {
    if( planNumber[i] == pNumString )
      break;
  }

  return i;
}
// *******************************
function GetSearchMatchCount()
// *******************************
{
  searchMatchCount = 0;
  for( var i=1; i<=totalPlansAvailable; i++ )
  {
    if( searchCriteriaMatch( i ) )
      searchMatchCount++;
  }
  return( searchMatchCount );
}
// ***********************************
function searchCriteriaMatch( iNdex )
// ***********************************
{
  matchYes = 1;
  if( searchParmFloors.length && Number(searchParmFloors) != Number(numFloors[iNdex]) )
    matchYes = 0;


  if( searchParmBeds.length && Number(searchParmBeds) != Number(numBedrooms[iNdex]) )
    matchYes = 0;
  if( searchParmSF.length && searchParmSF != GetSFRange(iNdex) )
    matchYes = 0;
  if( searchParmGarage.length && Number(searchParmGarage) != Number(numCars[iNdex]) )
    matchYes = 0;
  if( searchParmMaster.length )
  {
    if( searchParmMaster == "1" && masterDown[iNdex] != "1" )
      matchYes = 0;
    else if( searchParmMaster != "1" && masterDown[iNdex] == "1" )
      matchYes = 0;
  }
  //alert(searchParmPlanType);
  //alert(iNdex);
  var ptype = planType[iNdex];
  if( planType[iNdex]  == "TC" || planType[iNdex] == "DP" )
    ptype = "MF";
  if( searchParmPlanType.length && searchParmPlanType != ptype )
    matchYes = 0;
  if(searchParmPrimeCat.length && searchParmPrimeCat != ptype)
  {
    if(searchParmSecondCat.length && searchParmSecondCat != ptype)
      matchYes = 0;
  }

  var pw = GetDecimalFeet(planWidth[iNdex]);
  var pd = GetDecimalFeet(planDepth[iNdex]);
  //alert("379: "+pw);
  //alert("380: "+pd);
  if( searchParmMinWidth.length && pw < Number(searchParmMinWidth) )
    matchYes = 0;
  if( searchParmMaxWidth.length && pw > Number(searchParmMaxWidth) )
    matchYes = 0;
  if( searchParmMinDepth.length && pd < Number(searchParmMinDepth) )
    matchYes = 0;
  if( searchParmMaxDepth.length && pd > Number(searchParmMaxDepth) )
    matchYes = 0;

   return (Number(matchYes));
}
// ************************
function GetSFRange(iNdex)
// ************************
{
  var tsf = toi_getTotalSF( iNdex );
  if( Number(tsf) <= 1000 )
    return "A";
  if( Number(tsf) <= 1200 )
    return "B";
  if( Number(tsf) <= 1400 )
    return "C";
  if( Number(tsf) <= 1600 )
    return "D";
  if( Number(tsf) <= 1800 )
    return "E";
  if( Number(tsf) <= 2000 )
    return "F";
  if( Number(tsf) <= 2500 )
    return "G";
  if( Number(tsf) <= 3000 )
    return "H";
  if( Number(tsf) <= 3500 )
    return "I";

  return "J";

}
// *********************************
function GetDecimalFeet( ftString )
// *********************************
{
  var di = ftString.indexOf(".");
  var p1 = ftString.substring(0, di);
  var p2 = ftString.substring(di+1);
//alert("ftString = "+ftString+ " di = "+di+" p1 = "+p1+" p2 = "+p2);
  p2 = Number(p2) / 12.0;
  p1 = Number(p1) + p2;
//alert("429: "+p1);
  return( Math.round(p1) );

}
// **************************
function makeSearchCookie()
// **************************
{
  GetSearchParmsFromForm();
  searchMatchCount = GetSearchMatchCount();
  searchParmCookie = searchMatchCount +","+ searchParmFloors +","+ searchParmBeds +","+ searchParmSF +","+ searchParmGarage +","+ searchParmMaster +","+ searchParmMinWidth +","+  searchParmMaxWidth +","+ searchParmMinDepth +","+ searchParmMaxDepth +","+ searchParmPlanType +","+ searchParmPrimeCat +","+ searchParmSecondCat;
  toi_putCookieVar( "SPARM", searchParmCookie );
}
// ******************************
function GetSearchParmsFromForm()
// ******************************
{
  if( searchParmMethod == 2 )
  {
    searchParmFloors = document.fSearchForm.sf_numfloors.value;
    searchParmBeds = document.fSearchForm.sf_numBeds.value;
    searchParmSF = document.fSearchForm.sf_sfRange.value;
    searchParmGarage = document.fSearchForm.sf_garage.value;
    searchParmMaster = document.fSearchForm.sf_master.value;
    searchParmPlanType = document.fSearchForm.sf_plantype.value;
    searchParmMinWidth = document.fSearchForm.sf_minwidth.value;
    searchParmMaxWidth = document.fSearchForm.sf_maxwidth.value;
    searchParmMinDepth = document.fSearchForm.sf_mindepth.value;
    searchParmMaxDepth = document.fSearchForm.sf_maxdepth.value;
    searchParmPrimeCat = "";
    searchParmSecondCat = "";
  }
  else
  {
    searchParmFloors = "";
    searchParmBeds = "";
    searchParmSF = "";
    searchParmGarage = "";
    searchParmMaster = "";
    searchParmPlanType = "";
    searchParmMinWidth = "";
    searchParmMaxWidth = "";
    searchParmMinDepth = "";
    searchParmMaxDepth = "";
    searchParmPrimeCat = document.fSearchForm.sf_primecatg.value;
    searchParmSecondCat = document.fSearchForm.sf_secondcatg.value;
  }
}
// ***********************************************
function GetSearchParmsFromCookie( cookieString )
// ***********************************************
{
  var pos1 = cookieString.indexOf(",");
  searchMatchCount = Number(cookieString.substring(0, pos1));
  pos1++;
  var pos2 = cookieString.indexOf(",", pos1 );
  searchParmFloors = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmBeds = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmSF = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmGarage = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmMaster = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmMinWidth = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmMaxWidth = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmMinDepth = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmMaxDepth = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmPlanType = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  pos2 = cookieString.indexOf(",", pos1 );
  searchParmPrimeCat = cookieString.substring(pos1, pos2);
  pos1 = pos2+1;
  searchParmSecondCat = cookieString.substring(pos1);
}
// *************************************
function GetNextMatchingIndex( fnDex )
// *************************************
{
  retVal = totalPlansAvailable+1;
  for( var i=Number(fnDex)+1; i<=totalPlansAvailable; i++ )
  {
    if( searchCriteriaMatch( i ) )
    {
      retVal = i;
      break;
    }
  }
  return( retVal );
}
// *************************************
function GetPrevMatchingIndex(fnDex)
// *************************************
{
  retVal = 0;
  for( var ii=Number(fnDex)-1; ii; ii-- )
  {
    if( searchCriteriaMatch( ii ) )
    {
      retVal = ii;
      break;
    }
  }
  return( retVal );
}
// ********************************************
function searchForPartialNum( partialString )
// ********************************************
{
  var nFound = getIndexFromPartialNumber( partialString );
  if( nFound <= totalPlansAvailable )
  {
    toi_putCookieVar("VIEWPLANINDEX", nFound );
    toi_putCookieVar("PVPREVPAGE", "red_plansearch.htm");
    this.location.href="red_planview.htm";
  }
  else
    alert( "No plans were found to match your input.");
}
// **********************************************
function getIndexFromPartialNumber( pNumString )
// **********************************************
{
  var i;
  var ii;
  var uStr = pNumString.toUpperCase();
  for( i=1; i<=totalPlansAvailable; i++ )
  {
    ii = planNumber[i].indexOf(uStr);
    if( ii >= 0 )
      break;
  }
  return i;
}
// *********************************************
function getStockPrice(dbIndex)
// *********************************************
{
  var tsf = toi_getTotalSF( dbIndex );
  if( planType[dbIndex] == "TC" )
  {
    if( tsf > 6000 )
      return "3000.00";
    else if( tsf > 5000 )
      return "2500.00";
    else if( tsf > 4000 )
      return "2000.00";
    else if( tsf > 3000 )
      return "1500.00";
    else if( tsf > 2000 )
      return "1100.00";
    else if( tsf > 0 )
      return "900.00";
    else
      return " ";
  }
  else if( planType[dbIndex] == "DP" )
  {
    if( tsf > 3000 )
      return "900.00";
    else if( tsf > 2000 )
      return "750.00";
    else if( tsf > 0 )
      return "600.00";
    else
      return " ";
  }
  else if( planType[dbIndex] == "GR" )
  {
    return "200.00";
  }
  else
  {
    if( tsf > 4000 )
      return "950.00";
    else if( tsf > 3500 )
      return "775.00";
    else if( tsf > 3000 )
      return "650.00";
    else if( tsf > 2500 )
      return "595.00";
    else if( tsf > 2000 )
      return "545.00";
    else if( tsf > 1500 )
      return "495.00";
    else if( tsf > 0 )
      return "425.00";
    else
      return " ";
  }
}

