// FileTransfer.com - JavaScript Library
// Coders: JR, TT, AT
// Last MOD 2007 09 13


function ShowExtraText(DivName)
{
	document.getElementById(DivName).style.display = 'inline';
}

function calc_Total_Storage()
{
document.Account_SetUp.Total_Storage.value = document.Account_SetUp.Storage_Block.value * .1;

}

function calc_Total_Transfer()
{
document.Account_SetUp.Total_Transfer.value = document.Account_SetUp.Transfer_Block.value * .2;

}


function calc_Total_Account()
{
calc_Total_Storage();
calc_Total_Transfer();


var Total_Price = eval(document.Account_SetUp.Base_Price.value)
                                           + eval(document.Account_SetUp.Total_Storage.value)
										   + eval(document.Account_SetUp.Total_Transfer.value);
document.Account_SetUp.Total_Account.value     = Total_Price;

var Total_Storage = eval(document.Account_SetUp.Base_Storage.value)
                    + eval(document.Account_SetUp.Storage_Block.value  );

document.Account_SetUp.Total_Storage_All.value = Total_Storage;

var Storage_Height = 0 + Math.round(Math.round(Math.log( Total_Storage /5)*2.5)*4)-6;

if (Storage_Height < 0 ) Storage_Height = 4;





var Storage_Height_Top = 70 - Math.round(Storage_Height);
var Storage_Height_Bot = 1 + Math.round(Storage_Height);
document.getElementById("Container_Storage_Image_Top").style.height = Storage_Height_Top + "px";
document.getElementById("Container_Storage_Image_Bot").style.height = Storage_Height_Bot + "px";
//document.getElementById("TestingText").innerHTML = Storage_Height;


var Total_Transfer = eval(document.Account_SetUp.Base_Transfer.value  )
                   + eval(document.Account_SetUp.Transfer_Block.value  );


document.Account_SetUp.Total_Transfer_All.value = Total_Transfer;

//var Transfer_Width = 0 + Math.round(Math.round(Math.log( Total_Transfer /10))*10) *2 -20 ;
var Transfer_Width = 0 + Math.round(Math.round(Math.log( Total_Transfer /5)*3)*5) - 15  ;

if (Transfer_Width < 0 ) Transfer_Width = 4;

document.getElementById("Container_Transfer_Image_Slide").style.width = Transfer_Width + "px";
//document.getElementById("TestingText").innerHTML = Transfer_Width + " H: " + Storage_Height;
//alert (Transfer_Width);
}


function do_image_Rev()
{
	var ImageState = document.Account_SetUp.ImageSize.value;
	//alert(ImageState);
	if ( ImageState == '1' )
	{
	document.getElementById("Container_Storage_Image_Top").style.height = '70';
	document.getElementById("Container_Storage_Image_Bot").style.height = '1';
//	document.getElementById("Container_Transfer_Image_Slide").style.width = '1';
	}
	else if ( ImageState == '2')
	{
	document.getElementById("Container_Storage_Image_Top").style.height = '40';
	document.getElementById("Container_Storage_Image_Bot").style.height = '31';
//	document.getElementById("Container_Transfer_Image_Slide").style.width = '40';
	}
	else 
	{
	document.getElementById("Container_Storage_Image_Top").style.height = '25';
	document.getElementById("Container_Storage_Image_Bot").style.height = '46';
//	document.getElementById("Container_Transfer_Image_Slide").style.width = '77';
	}

}

// END of .JS File