 function Calculate(){
  box = document.forms['clc'].elements['ctry'];
  if (box.options[box.selectedIndex].value == "XX"){
   alert('Please select your country');
   return;
  }
  
  var tx1= "<span class=c1>processing ...</span>";
  var tx2= "";
  var tx3= "<table><tr><td class=biggreen2 align=center nowrap>YES!</td><td width=10></td><td class=c1 align=center>If you join today,<br>you can start earning with us!</td></tr></table>";
  
  var tm= 200;
  for (i=1; i<12; i=i+2){
   setTimeout("InText('calc_result_div', '"+tx1+"')", tm*i);
   setTimeout("InText('calc_result_div', '"+tx2+"')", tm*(i+1));
  }
  bs = 270;
  hours = document.forms['clc'].elements['hours'].value;
  ew = hours*bs;
  ed = ew/7;
  em = ed*30;
  ey = ed*365;
  
  setTimeout("InText('calc_result_div', '"+tx3+"')", tm*13);
  setTimeout("InText('calc_daily', '"+formatCurrency(ed)+"')", tm*13);
  setTimeout("InText('calc_weekly', '"+formatCurrency(ew)+"')", tm*13);
  setTimeout("InText('calc_monthly', '"+formatCurrency(em)+"')", tm*13);
  setTimeout("InText('calc_yearly', '"+formatCurrency(ey)+"')", tm*13);
  
 }
function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
kl = (((sign)?'':'-') + '$' + num + '.' + cents);
return '<span class=calc_result2>'+kl+'</span>';
}

 function InText(d_id, txt){
  document.getElementById(d_id).innerHTML = txt;
 }