function travel(From,To)
{	
/* Sun to Mercury Only for Zeropoint */
	var a=0;
/* Mercury to Venus */
	var b=Math.floor(Math.random()*6)+1+3;
/* Venus to Luna */
	var c=Math.floor(Math.random()*6)+1+3;
/* Luna to Mars */
	var d=Math.floor(Math.random()*10)+1+6;
/* Mars to Victoria */
	var e=Math.floor(Math.random()*4)+1+22;
/* Victoria to Jupiter */
	var f=Math.floor(Math.random()*10)+1+Math.floor(Math.random()*10)+1+15;
/* Jupiter to Saturn */
	var g=Math.floor(Math.random()*10)+1+Math.floor(Math.random()*10)+1+Math.floor(Math.random()*10)+1+28;
/* Saturn to Uranus */
	var h=Math.floor(Math.random()*20)+1+Math.floor(Math.random()*20)+1+66;
/* Uranus to Neptune */
	var i=Math.floor(Math.random()*100)+1+70;
/* Neptune to Pluto */
	var j=Math.floor(Math.random()*100)+1+60;
/* Pluto to Nero */
	var k=Math.floor(Math.random()*10)+1+3;

	times = new Array(a,b,c,d,e,f,g,h,i,j,k);
	partone = 0;
	parttwo = 0;
	
	for(i = 0; i < From; i++)
		{
		partone = partone + times[i];
		}
		
	for(i = 0; i < To; i++)
		{
		parttwo = parttwo + times[i];
		}
	document.Traveltimes.Time.value = Math.abs(parttwo-partone);

/* Sun to Mercury Only for Zeropoint */
	var ca=0;
/* Mercury to Venus */
	var cb=4990+(150*b);
/* Venus to Luna */
	var cc=3940+(100*c);
/* Luna to Mars */
	var cd=5940+(100*d);
/* Mars to Victoria */
	var ce=14990+(100*e);

	costs = new Array(ca,cb,cc,cd,ce);
	cpartone = 0;
	cparttwo = 0;
	
	if (From < 6 && To <6)
	{
	for(i = 0; i < From; i++)
		{
		cpartone = cpartone + costs[i];
		}
		
	for(i = 0; i < To; i++)
		{
		cparttwo = cparttwo + costs[i];
		}
	document.Traveltimes.Cost.value = Math.abs(cparttwo-cpartone);
	}
	else
	document.Traveltimes.Cost.value = "To be negotiated";
	
	if (From == To)
	{
	document.Traveltimes.Cost.value = "";
	document.Traveltimes.Time.value = "";
	}
}
