<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>Sounit | The web text messaging (SMS) tool for businesses and groups. Market | Communicate | Connect almost instantly via text messaging (SMS) at once with all the people you care about. | Sounit.com</title>
    <meta name="keywords" content="Sounit, sounit.com, group text, text sms, group sms, sms messaging, markteting with SMS, online sms, twilio, app, iphone, blackberry, windows mobile, android, group texting, text messaging, start-up, unique phone numbers, New York" />
    <meta name="description" content="Sounit. The web text messaging tool for businesses and groups. You can utilize Sounit as a text messaging marketing SMS, communication or connection tool. Sounit can be utilized as a Group sms messaging tool to connect almost instantly with the people you care about." />
  
    <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
    <link rel="stylesheet" type="text/css" href="<?=base_url()?>css/style.css">
	<script type="text/javascript">
<!--
var letters=' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
var numbers='1234567890'
var signs=',.:;@-\''
var mathsigns='+-=()*/'
var custom='<>#$%&?'
var none = ''
 
function alpha(e,allow) {
     
	 var k;
     k=document.all?parseInt(e.keyCode): parseInt(e.which);
     //alert(k);
	 if(k==8 || k==8)
	 return true;
	 else
	 return (allow.indexOf(String.fromCharCode(k))!=-1);
}

// -->
				
function Inint_AJAX() {
   try { return new ActiveXObject("Msxml2.XMLHTTP");  } catch(e) {} //IE
   try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
   try { return new XMLHttpRequest();          } catch(e) {} //Native Javascript
   alert("XMLHttpRequest not supported");
   return null;
};

							
function checkAvb(f,div,val) {
	
	if(val.length>1)
	{
     var req = Inint_AJAX();
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
                    document.getElementById(div).innerHTML=req.responseText;
               } 
          }
     };
     req.open("GET", "<?=base_url()?>welcome/checkavb/"+f+"/"+div+"/"+val+"/"); 
	 
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); // set Header
     req.send(null); 
	}
}

		function validateEmpty(fld,dfn) {
		var error = "";	

		
						 
		if(fld)
			if (fld.value.length == 0 )
			{
				error = "Field is empty : "+ dfn +"\n"
		    }
			return error; 
		}

		function checkForm()
			{
					var reason='';
					
					if(document.getElementById('password').value!=document.getElementById('rpassword').value || document.getElementById('password').value=='')
				{
					document.getElementById('password').value='';
					document.getElementById('rpassword').value=''
					reason = "Fields `Password` and `Retype Password` do not match"+"\n";
			   	}
		   	
					reason +=validateEmpty(document.getElementById('fullname'),'Full Name');
					reason +=validateEmpty(document.getElementById('username'),'Username');
					reason +=validateEmpty(document.getElementById('email'),'Email address');
					reason +=validateEmpty(document.getElementById('password'),'Password');
					reason +=validateEmpty(document.getElementById('rpassword'),'Retype Password');
					reason +=validateEmpty(document.getElementById('number'),'Mobile Number');
					

					
					if(reason !="")
						{
							alert("Error\n---------------------------------------------------------------\n" +reason);
							return false;	
						}
					else
						{
							document.getElementById('myform').submit();
						}
			}
					
</script>

</head>
<body>
<? $this->load->view('header1'); ?>
 <div id="front_center">
     <div class="constrain">
				
									
<form method="post" name="signup" action="<?=base_url();?><?=index_page();?>/welcome/signup/" onSubmit="return checkForm();" />
<input type="hidden" value="<?= (isset($membertype)?$membertype:1) ?>" name="membertype">
<table width="100%" cellpadding="3" cellspacing="3">
<tr>
    <td align="center">
    <b>STEP 2: Enter your personal info</b>
    </td>
</tr>
<tr>
<td align="center"> 
                <table class="textheading" border="0" cellspacing="0" cellpadding="0">
                         <tr>
                                <td  valign="top">
                                    Full name:
                                </td>
                                <td class="hspacing">
                                </td>
                                <td>
                                    <input type="text" class="txtbox1" name="fullname" id="fullname" />
									 
                                </td>
                            </tr>
                            <tr>
                                <td class="spacing">
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    Username:
                                </td>
                                <td class="hspacing">
                                </td>
                                <td>
                                    <input type="text" class="txtbox1" name="username" id="username"  onKeyUp="checkAvb('username','d1',this.value);" onblur="checkAvb('username','d1',this.value);"   />
									<div id="d1"></div>
									 
                                </td>
                            </tr>
                            <tr>
                                <td class="spacing">
                                </td>
                            </tr>
                            <tr>
                                <td  valign="top">
                                    Email:
                                </td>
                                <td class="hspacing">
                                </td>
                                <td>
                                   <input type="text" class="txtbox1" name="email" id="email"  onKeyUp="checkAvb('email','d2',this.value);" onblur="checkAvb('email','d2',this.value);" />
										
									 <div id="d2"></div>
                               </td>
                            </tr>
                            <tr>
                                <td class="spacing">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Password:
                                </td>
                                <td class="hspacing">
                                </td>
                                <td>
                                    <input type="password" class="txtbox1" name="password" id="password" />
                                </td>
                            </tr>
                            <tr>
                                <td class="spacing">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Retype Password:
                                </td>
                                <td class="hspacing">
                                </td>
                                <td>
                                    <input type="password" class="txtbox1" name="rpassword" id="rpassword" />
                                </td>
                            </tr>
                            <tr>
                                <td class="spacing">
                                </td>
                            </tr>

                            <tr>
                                <td valign="top">
                                    Mobile:
                                </td>
                                <td class="hspacing">
                                </td>
                                <td>
                                    <strong>+1</strong><input type="text" class="txtbox1" name="number"  onkeypress="return alpha(event,numbers)"  onKeyUp="checkAvb('number','d3',this.value);" onblur="checkAvb('number','d3',this.value);" maxlength="10" id="number"/>
									 <br>
									 <div id="d3"></div>
                                </td>
                            </tr> 
                            <tr><td colspan="3">
									<small style="font-size:12px">E.g. (+1)9163204455</small>
							</td></tr>
                            <tr>
                                <td valign="top">
                                    Affilate By:
                                </td>
                                <td class="hspacing">
                                </td>
                                <td>
                                    <input type="text" class="txtbox1" name="affid" value="<?= $this->session->userdata('reff_id'); ?>"  onkeypress="return alpha(event,numbers)"  maxlength="10" id="affid"/>
									 <br>
									 <div id="d4"></div>
                                </td>
                            </tr>
							
                            <tr>
                                <td class="spacing">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3" align="right">
                                    <table border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td>
                                             <?php /*?>   <a href="<?=base_url();?><?=index_page();?>/welcome/signup/">
												</a><?php */?>
                                                  <input type="image" src="<?=base_url()?>images/btnsignup.jpg" onClick="signup.submit"> 
												
                                            </td>
                                            <td class="hspacing">
                                            </td>
                                            <td>
                                                <?php /*?><a href="#">
                                                    <img src="<?=base_url()?>images/btnreset.jpg" /></a><?php */?>
													<input type="image" src="<?=base_url()?>images/btnreset.jpg" onClick="signup.reset"> 
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
              </form>
  </td>
</tr>
</table>
    </div>
</div>

    <? $this->load->view('footer1'); ?>
</body>
</html>