function processJoinNow()
{
  selectBox = $("fromCntry");
  var fromCntry = selectBox.options[selectBox.selectedIndex].value;
  var fromPhone = $('fromNumber').value;

  var name = $('fromName').value;

  var email = $('email').value;

  var pass = $('pass').value;
  var passC = $('passC').value;

  if(name == '')
  {
    alert("Please enter your name");
    return false;
  }

  if(email == '')
  {
    alert("Please enter your email address");
    return false;
  }

  if(pass == '')
  {
    alert("Please choose a password");
    return false;
  }

  if(passC == '' || pass != passC)
  {
    alert("Password and confirm Password should match. Please enter again");
    return false;
  }

  if(fromPhone == '')
  {
    alert("Please enter your phone number");
    return false;
  }

  new Ajax.Request('/my/affiliate/processRequest',
    {
      method:'post',
      parameters: { cmd: 'createAffAcct', name:name, fromPhone:fromPhone, fromCntry:fromCntry, email:email, pass:pass, random: random_int() },
      onSuccess: function(transport)
      {
        var response = transport.responseText || "ERROR:: Please refresh the page and submit the information again";

        if(response.match('ERROR') || response.match('error'))
        {
          var resp = response.split("::");
          if(resp[1] !== undefined)
          {
            alert(resp[1]);
          }
          else
          {
            alert(response);
          }
        }
        else if(response.match('REDIRECT'))
        {
          var resp = response.split("::");
          if(resp[2] !== undefined)
          {
            alert(resp[2]);
          }
          if(resp[1] !== undefined)
          {
            window.location = resp[1];
          }
          else
          {
            window.location = "/my/afflogin?done='/my/affhome'";
          }
        }
        else if(response.match('Success'))
        {
          //alert(response);
          //alert($('mainContentTd'));
          //$('mainContentTd').innerHTML = response;
          window.location = "/my/affhome?newAcct=1";
        }
        else
        {
          alert('Some problem occured, try again...' + response);
        }
      },
      onFailure: function(){ alert('Some problem occured, try again...'); window.location.reload(true);}
    });
}