  //��֤�Ƿ�Ϊ����
  function isNumber(oNum)
  {
    if(!oNum) return false;
    var strP=/^\d+(\.\d+)?$/;
    if(!strP.test(oNum)) return false;
    try{
      if(parseFloat(oNum)!=oNum) return false;
    }
    catch(ex)
    {
      return false;
    }
    return true;
  }
   
  function TransToAmt(amt)//divide by 1000 with 3 decimal fraction
  {
  	if (isNumber(amt)==true){
	    var n=new Number(amt/1000.00);
	    document.write(n.toFixed(3));
	  }
	  else{
	  	document.write(amt);
	  }
	  return;
  }
  
  function TransToWeight(weight)//divide by 1000 with 3 decimal fraction
  {
  	if (isNumber(weight)==true){
	    var n=new Number(weight/1000.00);
	    document.write(n.toFixed(3));
	  }
	  else{
	  	document.write(weight);
	  }
	  return;
  }

  function TransToVol(vol)//divide by 1000 with 3 decimal fraction
  {
  	if (isNumber(vol)==true){
	    var n=new Number(vol/1000.00);
	    document.write(n.toFixed(3));
	  }
	  else{
	  	document.write(vol);
	  }
	  return;
  }
  
  function TransToExchRate(vol)//divide by 1000 with 6 decimal fraction
  {
  	if (isNumber(vol)==true){
	    var n=new Number(vol/1000000.00);
	    document.write(n.toFixed(6));
	  }
	  else{
	  	document.write(vol);
	  }
	  return;
  }
    
