function ScalePrice() {
//alert('ScalePrice in');
 this.Price      = new Array();
 this.offerPrice = new Array();
 this.rangeBeg   = new Array();

 this.Price[0]      = 0.00;
 this.offerPrice[0] = 0.00;
 this.rangeBeg[0]   = 0;

 // -------------------------------------------
 // isRatePrice(bOfferPrice)
 // -------------------------------------------
 this.isRatePrice = function isRatePrice(bOfferPrice) {
  return (!bOfferPrice && (this.Price.length > 1)) || (bOfferPrice && (this.offerPrice.length > 1));
 }

 // -------------------------------------------
 // getRateArray(bOfferPrice)
 // -------------------------------------------
 this.getRateArray = function getRateArray(bOfferPrice) {
   var arrR = new Array(this.rangeBeg,this.Price);

   if ( bOfferPrice ) {
     arrR[1] = this.offerPrice;
   }
   return arrR;
 }

 //alert('ScalePrice out');
 return this;
}
