// JavaScript Document
function count(){
	var strF,strFN,strT,strTN
	strF=document.converseform.fromm.value;
	strFN=document.converseform.from_num.value;
	strT=document.converseform.to.value;
	//strTN=document.form.to_num.value;
	//strFN=parseInt(strFN);
	if(!isNaN(strFN)){
		strFN=parseFloat(strFN);
		strF=parseFloat(strF);
		if(strF==strT){
			strTN=strFN;
		}else{
			strTN=strFN*1000000*strF/(strT*1000000);
		}
		document.getElementById("to_num").value = strTN;
	}else{
		alert("The number you input is incorrect, please check.");
		document.converseform.from_num.select();
	}
}
