function More(control) 
{                           
  var value = control.options[control.options.selectedIndex].value;
  if (!value)        
  {                  
    document.location.href = '/converter.html';
  }                                                             
}

function ConvertTo(isoFrom, isoTo, amount)
{
  if (!isoFrom)
    isoFrom = 'JPY'; 
  if (!isoTo)
     isoTo = 'USD';
  if (!amount)
    amount = 1; 
  if (!strCheck(amount))  
  	  amount = 1; 
  document.location.href = '/rate/' + isoFrom.toLowerCase() + '/' + isoTo.toLowerCase() + '/' + amount +'.html';
}

var strCheck = function(str){
        var strFormat = "0123456789.";
        for(var i=0;i<str.length;i++)
        {
            if(strFormat.indexOf(str.substr(i ,1)) == -1)
            {
                return false;
            }
        }
        return true;
    };