// JavaScript Document
function count(){
	var strF,strFN,strT,strTN
	strF=document.form.fromm.value;
	strFN=document.form.from_num.value;
	strT=document.form.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_n").innerHTML="To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' name='to_num' class='txt4' value="+strTN+">";
	}
	else{
		alert("The number you input is incorrect, please check.");
		document.form.from_num.select();
		}
	}
