function calc1()
{
	var elInput = GetByIDCustom('txtInput1');
	var elResult = GetByIDCustom('txtResult1');
	elResult.value = '';
	
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var lngResult = 300 / lngInput;
		elResult.value = lngResult.toFixed(2);
	}
}

function calc2()
{
	var elInput = GetByIDCustom('txtInput2');
	var elResult = GetByIDCustom('txtResult2');
	elResult.value = '';
	
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var lngResult = Math.round(20 * (custLog((lngInput * 1000000), 10)));
		elResult.value = lngResult.toFixed(2);
	}
}

function calc3()
{
	var elInput = GetByIDCustom('txtInput3');
	var elResult = GetByIDCustom('txtResult3');
	elResult.value = '';
	
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var lngResult = (lngInput + 107);
		elResult.value = lngResult.toFixed(2);
	}
}

function calc4()
{
	var elInput = GetByIDCustom('txtInput4');
	var elResult = GetByIDCustom('txtResult4');
	elResult.value = '';
	
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var lngResult = 10 * lngInput;
		elResult.value = lngResult.toFixed(2);
	}
}

function calc5()
{
	var elInput = GetByIDCustom('txtInput5');
	var elResult = GetByIDCustom('txtResult5');
	elResult.value = '';
	
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var lngResult = Math.sqrt(3770 * lngInput);
		elResult.value = lngResult.toFixed(2);
	}
}

function calc6()
{
	var elInput = GetByIDCustom('txtInput6');
	var elResult = GetByIDCustom('txtResult6');
	elResult.value = '';
	
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var lngResult = (Math.sqrt(3770 * lngInput)) / 377;
		elResult.value = lngResult.toFixed(2);
	}
}

function calc7()
{
	var elInput = GetByIDCustom('txtInput7');
	var elResult = GetByIDCustom('txtResult7');
	elResult.value = '';
	
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var lngResult = lngInput * 0.0333333;
		elResult.value = lngResult.toFixed(2);
	}
}

function calc8()
{
	var elInput = GetByIDCustom('txtInput8');
	var elResult = GetByIDCustom('txtResult8');
	elResult.value = '';
	
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var lngResult = 10 * (custLog((1000 * lngInput), 10));
		elResult.value = lngResult.toFixed(2);
	}
}

function calc9()
{
	var elInput = GetByIDCustom('txtInput9');
	var elResult = GetByIDCustom('txtResult9');
	elResult.value = '';
	
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var tempVal = lngInput / 10;
		var lngResult = Math.sqrt( ( (Math.pow(10, tempVal)) / 1000 ) * 50 );
		elResult.value = lngResult.toFixed(2);
	}
}

function calc10()
{
	var elInput = GetByIDCustom('txtInput10');
	var elResult = GetByIDCustom('txtResult10');
	if (ValidateInput(elInput))
	{
		var lngInput = parseFloat(elInput.value);
		var tempVal = ((lngInput * lngInput) / 50) * 1000;
		var lngResult = 10 * (custLog(tempVal, 10));
		elResult.value = lngResult.toFixed(2);
	}
}

function ResetTable1()
{
	for(var i=1; i<11; i++)
	{
		var elInput = eval("GetByIDCustom('txtInput" + i + "');");
		var elResult = eval("GetByIDCustom('txtResult" + i + "');");
		elInput.value = '';
		elResult.value = '';
	}
}
