/*
* Plugins JS scripts
/*/
function changeAttributesPrice( ){
  var fPriceAdd = 0;
  var aSelects = gEBI( 'attributes' ).getElementsByTagName( 'select' );
  for( var i = 0; i < aSelects.length; i++ ){
    var aSelect = aSelects[i];
    if( aSelect.className == 'attributes' ){
      var aSelectValue = aSelect.options[aSelect.options.selectedIndex].value;
      if( aSelectValue != '' )
        var aAttribute = aSelectValue.split( "|" );
      else
        var aAttribute = Array( 0, 0 );
      if( aAttribute[1] != '' ){
        fPriceAdd += ( generatePrice( fPrice, aAttribute[1] ) - fPrice );
      }
    }
  } // end for

			//var str="Visit Microsoft!";
			//document.write(str.replace(/Microsoft/, "W3Schools"));
       rubah = changePriceFormat( fix( fPrice * 1 + fPriceAdd ) );
     //pinal = rubah.replace(/.00/,"");
	 //result = num.toPrecision(4);
  gEBI( 'priceValue' ).innerHTML = rubah;
} // end function changeAttributesPrice