/*****************************************
(C) http://www.calculator.net all right reserved.  
*****************************************/
function calc(){var B=trimAll(gObj("erate").value+"");var A=trimAll(gObj("eamount").value+"");if(!isNumber(B)){showquickmsg("the exchange rate need to be numeric",true);return }if(!isNumber(A)){showquickmsg("the amount need to be numeric",true);return }outPutStr="currency A "+A+" = currency B <font color=green><b>"+formatNum2(A*B,2,0.005)+"</b></font><br>";outPutStr+="currency B "+A+" = currency A <font color=green><b>"+formatNum2(A/B,2,0.005)+"</b></font>";showquickmsg(outPutStr,false)};