<?php
include("includes/site_info.php");
include_once __INCLUDE_CLASS_PATH."/class.ItemManager.php";
$option_manager = new OptionManager();
$sec = $option_manager->GetValue('security_registration');

$Sess_UserName=$_SESSION['Sess_UserName'];
$uri = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$client_ip = $_SERVER["REMOTE_ADDR"]." ".$_SERVER["HTTP_X_FORWARDED_FOR"];

$query="SELECT blacklist_ip from blacklist where blacklist_ip='$client_ip'";
$getIP=mysql_query($query);
$countIP = mysql_num_rows($getIP);
if($countIP>0){
                echo "<script> location.href='$CONST_LINK_ROOT/login.php?error_msg=ip_blacklisted'</script>";
}

//print_r($_SESSION["reg_post1"]);
//print_r ($_SESSION["reg_post2"]);
//
//$_SESSION["inv_id"] = '';
//
//$_SESSION["ref_id"] = '';
//echo $_SESSION['ref_id'];

if (isset($_SESSION["inv_id"]) && !empty($_SESSION["inv_id"])) {
$inv_id=$_SESSION["inv_id"];
$referrer_query=mysql_query("SELECT Email, mem_userid, mem_username, mem_fullname, mem_mobile FROM networkinvite LEFT JOIN members ON (User_id=mem_userid) WHERE inv_id = '$inv_id'");
$count_referrer=mysql_num_rows($referrer_query);
if ($count_referrer > 0) {
$referrer = mysql_fetch_object($referrer_query);
$WIntroducer=$referrer->mem_mobile;
$RUserID=$referrer->mem_userid;
$RUserName=$referrer->mem_username;
$_SESSION['reg_post1']['WAuthEmail'] = $referrer->Email;
}
} else {
if (isset($_SESSION["ref_id"]) && !empty($_SESSION["ref_id"])) {
$ref_id=$_SESSION["ref_id"];
$referrer_query=mysql_query("SELECT mem_userid, mem_username, mem_fullname, mem_mobile FROM members WHERE mem_referCode = '$ref_id'");
$count_referrer=mysql_num_rows($referrer_query);
if ($count_referrer > 0) {
$referrer = mysql_fetch_object($referrer_query);
$WIntroducer=$referrer->mem_mobile;
$RUserID=$referrer->mem_userid;
$RUserName=$referrer->mem_username;
}
}
}

function GetProPic ($userid, $username){

$photo_query=mysql_query("SELECT * FROM pictures WHERE pic_userid = '$userid' and pic_default='Y' and pic_private='N'") or die(mysql_error());
$pics_count = mysql_num_rows($photo_query);
$aPicture = mysql_fetch_object($photo_query);
if ($pics_count > 0) {
	$medium = $aPicture->pic_picture."_ps.".$aPicture->ext;
	$male1_picture1 = "$CONST_LINK_ROOT/members/$username/picture/$medium";
             }else{
$male1_picture1=$CONST_LINK_ROOT."/".GetProfilePicture($userid);
}
return $male1_picture1;
}

function GetProfilePicture($USERID){
$quer=mysql_query("select mem_sex from members where mem_userid='$USERID'");
$show=mysql_fetch_object($quer);

if($show->mem_sex=='M') $main_pic='images/hahaper_ms.jpg'; else $main_pic='images/hahaper_fs.jpg';

return $main_pic; 
        
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="noodp,noydir" />
<meta name="description" content="Wauhaha web is a social interaction media that gives people power to create demand and get value while connected with the world." />
<link rel="alternate" media="handheld" href="http://www.wowdoyou.com/" />
<title>Register | Wauhaha</title>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="main.css">
<![endif]-->
<![if !IE]>
<link rel="stylesheet" type="text/css" href="main.css">
<![endif]>
<script type="text/javascript">
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function prepareInputsForHints() {
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++){
		// test to see if the hint span exists first
		if (inputs[i].parentNode.getElementsByTagName("span")[0]) {
			// the span exists!  on focus, show the hint
			inputs[i].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			}
			// when the cursor moves away from the field, hide the hint
			inputs[i].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";
//				var hideSpan=this.parentNode.getElementsByTagName("span")[0];
//				hideSpan.isfocus=false;
//				window.setTimeout(function(e){
//					if(!hideSpan.isfocus)
//						hideSpan.style.display="none"
//					},1000);
			}
		}
	}
	// repeat the same tests as above for selects
	var selects = document.getElementsByTagName("select");
	for (var k=0; k<selects.length; k++){
		if (selects[k].parentNode.getElementsByTagName("span")[0]) {
			selects[k].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			}
			selects[k].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";
			}
		}
	}
}
addLoadEvent(prepareInputsForHints);
</script>
<script type="text/javascript">
function callWau(url, pageElement, callMessage, errorMessage) {
     document.getElementById(pageElement).innerHTML = callMessage;
     try {
     req = new XMLHttpRequest(); /* e.g. Firefox */
     } catch(e) {
       try {
       req = new ActiveXObject("Msxml2.XMLHTTP");  /* some versions IE */
       } catch (e) {
         try {
         req = new ActiveXObject("Microsoft.XMLHTTP");  /* some versions IE */
         } catch (E) {
          req = false;
         } 
       } 
     }
     req.onreadystatechange = function() {responseWau(pageElement, errorMessage);};
     req.open("POST",url,true);
     req.send(null);
  }
function responseWau(pageElement, errorMessage) {
   var output = '';
   if(req.readyState == 4) {
      if(req.status == 200) {
         output = req.responseText;
         document.getElementById(pageElement).innerHTML = output;
         } else {
         document.getElementById(pageElement).innerHTML = errorMessage+"\n"+output;
         }
      }
  }
function validate_username(check_id, check_value, url, update_element) { 
	callWau(url+'?check_id='+check_id+'&check_value='+escape(check_value), update_element , '', 'Error');
} 
</script>
<script type="text/javascript">
function Validate_WRegister(){

	if (document.WRegister.WUsername.value.length > 50)
    {
      document.getElementById("register_username").innerHTML = "<font color=\"red\">Limit between 5-20 characters.</font>";
		document.WRegister.WUsername.focus();
      return (false);
    }
    
	if (document.WRegister.WUsername.value.length < 5)
    {
      document.getElementById("register_username").innerHTML = "<font color=\"red\">Limit between 5-20 characters.</font>";
      document.WRegister.WUsername.focus();
      return (false);
    }

    if (document.WRegister.WUsername.value.match(/[^a-zA-Z0-9]/))
    {
      document.getElementById("register_username").innerHTML = "<font color=\"red\">Limit to Alphanumeric character set only.</font>";
      document.WRegister.WUsername.focus();
      return (false);
    }
	if (document.WRegister.WNickname.value.length < 5)
    {
      document.getElementById("register_nickname").innerHTML = "<font color=\"red\">Limit between 5-20 characters.</font>";
      document.WRegister.WNickname.focus();
      return (false);
    }

    if (document.WRegister.WNickname.value.match(/[^a-zA-Z0-9]/))
    {
      document.getElementById("register_nickname").innerHTML = "<font color=\"red\">Limit to Alphanumeric character set only.</font>";
      document.WRegister.WNickname.focus();
      return (false);
    }
           
   if ((document.WRegister.WRPassword.value.length < 6) || (document.WRegister.WRPassword.value.length > 20))
   {
		document.getElementById("pwd_info").innerHTML = "<font color=\"red\">Limit between 6-20 characters.</font>";
     document.WRegister.WRPassword.focus();
     return (false);
   }

  if (document.WRegister.WAuthEmail.value.length < 5)
   {
     document.getElementById("register_email").innerHTML = "<font color=\"red\">Limit to 5 characters and above.</font>";
     document.WRegister.WAuthEmail.focus();
     return (false);
   }

   if (document.WRegister.WAuthEmail.value.indexOf("@") < 0 || document.WRegister.WAuthEmail.value.indexOf(".") < 0)
   {
     document.getElementById("register_email").innerHTML = "<font color=\"red\">Invalid Authorize Email!</font>";
     document.WRegister.WAuthEmail.focus();
     return (false);
   }
   
     if (document.WRegister.WMyMobile.value.match(/[^0-9+]/))
     {
     document.getElementById("register_mobile").innerHTML = "<font color=\"red\">Limit to digits only.</font>";
     document.WRegister.WMyMobile.focus();
     return (false);
   }

   if ((document.WRegister.WMyMobile.value.length < 9) || (document.WRegister.WMyMobile.value.length > 20)){
     document.getElementById("register_mobile").innerHTML = "<font color=\"red\">Invalid Mobile Number.</font>";
     document.WRegister.WMyMobile.focus();
     return (false);
   }

   if (document.WRegister.WMyMobileCode2.value == '') {
     document.getElementById("register_mobile").innerHTML = "<font color=\"red\">Invalid Country Code.</font>";
     document.WRegister.WMyMobileCode2.focus();
     return (false);
   }

   if ((document.WRegister.WMyMobileCode2.value == 60) && (document.WRegister.WMyMobile.value.length > 11)) {
     document.getElementById("register_mobile").innerHTML = "<font color=\"red\">Invalid Mobile Number.</font>";
     document.WRegister.WMyMobile.focus();
     return (false);
   }

}

function checkpwd(){
	var pwd = document.getElementById("WRPassword").value;
	if ((pwd.length<6) || (pwd.length>20)){
		document.getElementById("pwd_info").innerHTML = "<font color=\"red\">Limit between 6-20 characters.</font>";
	} else {
		document.getElementById("pwd_info").innerHTML = "<font color=\"green\">Password OK!</font>";
	}
}

function update_code(selectobj, element){
	var input = document.getElementById(element);
		input.value = selectobj.value;
}

function checkMobileC(input1, input2, input2Name){
	var value2 = document.getElementById(input2).value;
	if ((value2 == '') || (value2 == 0)) {
	} else {
	var total = input1 + value2;
	validate_username(input2Name, total, 'register_validate.php', 'register_mobile');
	}
}

function checkMobile(input1, input2, input2Name){
	var value1 = document.getElementById(input1).value;
	if ((value1 == '') || (value1 == 0)) {
     document.getElementById("register_mobile").innerHTML = "<font color=\"red\">Please enter Country Code.</font>";
	} else {
	var total = value1 + input2;
	validate_username(input2Name, total, 'register_validate.php', 'register_mobile');
	}
}
// -->

</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="top">
	<tr>
		<td><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="bottom">
				<tr>
					<td><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="header">
							<tr>
								<td width="353" valign="top"><a href="http://www.wowdoyou.com"> <img src="images/logo.gif" alt="wauhaha" border="0" > </a></td>
								<td width="647" valign="top"><div id="menu-float-main"><span class="lang_button">English</span></div>
									<div style="float:right; padding-top:135px; height: 20px;"><span class="logout_button">Beta Versions</span></div></td>
							</tr>
						</table>
						<div class="middle-float">
							<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td width="100%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td valign="top" class="link_top_t"><img src="images/home.gif" alt="home" width="23" height="21" hspace="0" vspace="0" border="0"> <a href="index.php" target="_self">Home</a> </td>
												<td rowspan="4" width="374" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
														<tr>
															<td><img src="images/spacer.gif" width="30" height="1"></td>
															<td><?php
					   $act_sess=mysql_query("select * from active_users where username='$Sess_UserName'");
 $active = mysql_num_rows($act_sess);
	if($active=='0'){
include ("register_login_box.php");
					  	}
						?>
															</td>
														</tr>
													</table></td>
											</tr>
											<tr>
												<td><img src="images/spacer.gif" width="1" height="40"></td>
											</tr>
											<tr>
												<td class="red_12_t">Registration</td>
											</tr>
											<tr>
												<td align="left"><table width="100%" border="0" cellpadding="0" cellspacing="0">
														<tr>
															<td width="12" valign="bottom"><img src="images/big-box_01.jpg" width="12" height="12"></td>
															<td width="100%" valign="bottom" style="background-image:url(images/big-box_02.jpg); background-repeat:repeat-x; background-position:bottom">&nbsp;</td>
															<td width="12" valign="bottom"><img src="images/big-box_04.jpg" width="12" height="12"></td>
														</tr>
														<tr>
															<td style="background-image:url(images/big-box_05.jpg); background-repeat:repeat-y">&nbsp;</td>
															<td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="white_back_t">
																	<tr>
																		<td width="100%" class="purple_back">Registration Process </td>
																	</tr>
																	<tr>
																		<td><form method="post" action="<?php echo $CONST_LINK_ROOT?>/register2.php" name="WRegister" onsubmit="return Validate_WRegister();" >
																				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="10" class="grey_12_xb table_input_large">
																					<!--																					<tr>
																						<td colspan="2" align="left" class="purple_14">Account&nbsp;Information - Step 1 </td>
																					</tr>
-->
																					<?php if (isset($_REQUEST["error_msg"]) && ($_REQUEST["error_msg"]=="Invalid_Verification_Code")) { ?>
																						<tr>
																							<td colspan="2"><div class="red_10">Invalid Verification Code.</div></td>
																						</tr>
																						<?php } elseif (isset($_REQUEST["error_msg"]) && ($_REQUEST["error_msg"]=="Database_Error")) { ?>
																							<tr>
																								<td colspan="2"><div class="red_10">Database Error.</div></td>
																							</tr>
																							<?php } else { ?>
																							<tr>
																								<td colspan="2"><div class="red_10">
																										<?=$_SESSION['reg_post1']['error']?>
																									</div></td>
																							</tr>
																							<?php } ?>
																						<?php if ($_SESSION['reg_post2']['WFullname'] && $_SESSION['reg_post2']['facebook_uid']) {?>
																						<tr>
																							<td colspan="2" align="left"><img src="http://graph.facebook.com/<?=$_SESSION['reg_post2']['facebook_uid']?>/picture?type=small" alt="" name="fb_profile" hspace="10" vspace="0" border="0" align="left" />
																								<?=$_SESSION['reg_post2']['WFullname']?></td>
																						</tr>
																						<?php } ?>
																					<tr>
																						<td align="left"><label for="WUsername">Username*</label></td>
																						<td width="100%"><input name="WUsername" type="text" class="input_large" id="WUsername" tabindex='1' onchange="validate_username(this.name, this.value, 'register_validate.php', 'register_username')" onkeyup="validate_username(this.name, this.value, 'register_validate.php', 'register_username')" value="<?=$_SESSION['reg_post1']['WUsername']?>" size="20" maxlength='50'>
																							<span class="hint">
																							<div id="register_username" class="grey_10">Limit to 5 characters and above.</div>
																							<span class="hint-pointer">&nbsp;</span></span></td>
																					</tr>
																					<tr>
																						<td align="left" nowrap="nowrap">Prefer Display Name</td>
																						<td><input name="WNickname" type="text" class="input_large" id="WNickname" tabindex='1' value="<?=$_SESSION['reg_post1']['WNickname']?>" size="20" maxlength='50'>
																							<span class="hint">
																							<div id="register_nickname" class="grey_10">Limit to 5 characters and above.</div>
																							<span class="hint-pointer">&nbsp;</span></span></td>
																					</tr>
																					<tr>
																						<td align="left"><label for="WRPassword">Password*</label></td>
																						<td><input name="WRPassword" type="password" class="input_large" id="WRPassword" tabindex='2' onchange="checkpwd();" onkeyup="checkpwd();" size="20" maxlength="20">
																							<span class="hint">
																							<div id="pwd_info" class="grey_10">Limit to 6 characters and above.</div>
																							<span class="hint-pointer">&nbsp;</span></span></td>
																					</tr>
																					<tr>
																						<td align="left"><label for="WAuthEmail">Authorize E-mail*</label></td>
																						<td><input id="WAuthEmail" name="WAuthEmail" type="text" class="input_large" tabindex='3' onkeyup="validate_username(this.name, this.value, 'register_validate.php', 'register_email')" onchange"validate_username(this.name, this.value, 'register_validate.php', 'register_email')" value="<?=$_SESSION['reg_post1']['WAuthEmail']?>" size="30" maxlength='200' />
																							<span class="hint">
																							<div id="register_email" class="grey_10">All important message or newsletter will be sent out through this email!</div>
																							<span class="hint-pointer">&nbsp;</span></span></td>
																					</tr>
																					<tr>
																						<td align="left"><label for="WMyMobileCode">Mobile No*</label>																						</td>
																						<td><select name="WMyMobileCode" class="input_med" id="WMyMobileCode" tabindex="4" onchange="javascript: update_code(this, 'WMyMobileCode2');">
																								<option value="">Country Code:</option>
																								<option value="213">Algeria (+213)</option>
																								<option value="376">Andorra (+376)</option>
																								<option value="244">Angola (+244)</option>
																								<option value="1264">Anguilla (+1264)</option>
																								<option value="1268">Antigua &amp; Barbuda (+1268)</option>
																								<option value="599">Antilles (Dutch) (+599)</option>
																								<option value="54">Argentina (+54)</option>
																								<option value="374">Armenia (+374)</option>
																								<option value="297">Aruba (+297)</option>
																								<option value="247">Ascension Island (+247)</option>
																								<option value="61">Australia (+61)</option>
																								<option value="43">Austria (+43)</option>
																								<option value="994">Azerbaijan (+994)</option>
																								<option value="1242">Bahamas (+1242)</option>
																								<option value="973">Bahrain (+973)</option>
																								<option value="880">Bangladesh (+880)</option>
																								<option value="1246">Barbados (+1246)</option>
																								<option value="375">Belarus (+375)</option>
																								<option value="32">Belgium (+32)</option>
																								<option value="501">Belize (+501)</option>
																								<option value="229">Benin (+229)</option>
																								<option value="1441">Bermuda (+1441)</option>
																								<option value="975">Bhutan (+975)</option>
																								<option value="591">Bolivia (+591)</option>
																								<option value="387">Bosnia Herzegovina (+387)</option>
																								<option value="267">Botswana (+267)</option>
																								<option value="55">Brazil (+55)</option>
																								<option value="673">Brunei (+673)</option>
																								<option value="359">Bulgaria (+359)</option>
																								<option value="226">Burkina Faso (+226)</option>
																								<option value="257">Burundi (+257)</option>
																								<option value="855">Cambodia (+855)</option>
																								<option value="237">Cameroon (+237)</option>
																								<option value="1">Canada (+1)</option>
																								<option value="238">Cape Verde Islands (+238)</option>
																								<option value="1345">Cayman Islands (+1345)</option>
																								<option value="236">Central African Republic (+236)</option>
																								<option value="56">Chile (+56)</option>
																								<option value="86">China (+86)</option>
																								<option value="57">Colombia (+57)</option>
																								<option value="269">Comoros (+269)</option>
																								<option value="242">Congo (+242)</option>
																								<option value="682">Cook Islands (+682)</option>
																								<option value="506">Costa Rica (+506)</option>
																								<option value="385">Croatia (+385)</option>
																								<option value="53">Cuba (+53)</option>
																								<option value="90392">Cyprus North (+90392)</option>
																								<option value="357">Cyprus South (+357)</option>
																								<option value="42">Czech Republic (+42)</option>
																								<option value="45">Denmark (+45)</option>
																								<option value="2463">Diego Garcia (+2463)</option>
																								<option value="253">Djibouti (+253)</option>
																								<option value="1809">Dominica (+1809)</option>
																								<option value="1809">Dominican Republic (+1809)</option>
																								<option value="593">Ecuador (+593)</option>
																								<option value="20">Egypt (+20)</option>
																								<option value="353">Eire (+353)</option>
																								<option value="503">El Salvador (+503)</option>
																								<option value="240">Equatorial Guinea (+240)</option>
																								<option value="291">Eritrea (+291)</option>
																								<option value="372">Estonia (+372)</option>
																								<option value="251">Ethiopia (+251)</option>
																								<option value="500">Falkland Islands (+500)</option>
																								<option value="298">Faroe Islands (+298)</option>
																								<option value="679">Fiji (+679)</option>
																								<option value="358">Finland (+358)</option>
																								<option value="33">France (+33)</option>
																								<option value="594">French Guiana (+594)</option>
																								<option value="689">French Polynesia (+689)</option>
																								<option value="241">Gabon (+241)</option>
																								<option value="220">Gambia (+220)</option>
																								<option value="7880">Georgia (+7880)</option>
																								<option value="49">Germany (+49)</option>
																								<option value="233">Ghana (+233)</option>
																								<option value="350">Gibraltar (+350)</option>
																								<option value="30">Greece (+30)</option>
																								<option value="299">Greenland (+299)</option>
																								<option value="1473">Grenada (+1473)</option>
																								<option value="590">Guadeloupe (+590)</option>
																								<option value="671">Guam (+671)</option>
																								<option value="502">Guatemala (+502)</option>
																								<option value="224">Guinea (+224)</option>
																								<option value="245">Guinea - Bissau (+245)</option>
																								<option value="592">Guyana (+592)</option>
																								<option value="509">Haiti (+509)</option>
																								<option value="504">Honduras (+504)</option>
																								<option value="852">Hong Kong (+852)</option>
																								<option value="36">Hungary (+36)</option>
																								<option value="354">Iceland (+354)</option>
																								<option value="91">India (+91)</option>
																								<option value="62">Indonesia (+62)</option>
																								<option value="98">Iran (+98)</option>
																								<option value="964">Iraq (+964)</option>
																								<option value="972">Israel (+972)</option>
																								<option value="39">Italy (+39)</option>
																								<option value="225">Ivory Coast (+225)</option>
																								<option value="1876">Jamaica (+1876)</option>
																								<option value="81">Japan (+81)</option>
																								<option value="962">Jordan (+962)</option>
																								<option value="7">Kazakhstan (+7)</option>
																								<option value="254">Kenya (+254)</option>
																								<option value="686">Kiribati (+686)</option>
																								<option value="850">Korea North (+850)</option>
																								<option value="82">Korea South (+82)</option>
																								<option value="965">Kuwait (+965)</option>
																								<option value="996">Kyrgyzstan (+996)</option>
																								<option value="856">Laos (+856)</option>
																								<option value="371">Latvia (+371)</option>
																								<option value="961">Lebanon (+961)</option>
																								<option value="266">Lesotho (+266)</option>
																								<option value="231">Liberia (+231)</option>
																								<option value="218">Libya (+218)</option>
																								<option value="417">Liechtenstein (+417)</option>
																								<option value="370">Lithuania (+370)</option>
																								<option value="352">Luxembourg (+352)</option>
																								<option value="853">Macao (+853)</option>
																								<option value="389">Macedonia (+389)</option>
																								<option value="261">Madagascar (+261)</option>
																								<option value="265">Malawi (+265)</option>
																								<option value="60">Malaysia (+60)</option>
																								<option value="960">Maldives (+960)</option>
																								<option value="223">Mali (+223)</option>
																								<option value="356">Malta (+356)</option>
																								<option value="692">Marshall Islands (+692)</option>
																								<option value="596">Martinique (+596)</option>
																								<option value="222">Mauritania (+222)</option>
																								<option value="269">Mayotte (+269)</option>
																								<option value="52">Mexico (+52)</option>
																								<option value="691">Micronesia (+691)</option>
																								<option value="373">Moldova (+373)</option>
																								<option value="377">Monaco (+377)</option>
																								<option value="976">Mongolia (+976)</option>
																								<option value="1664">Montserrat (+1664)</option>
																								<option value="212">Morocco (+212)</option>
																								<option value="258">Mozambique (+258)</option>
																								<option value="95">Myanmar (+95)</option>
																								<option value="264">Namibia (+264)</option>
																								<option value="674">Nauru (+674)</option>
																								<option value="977">Nepal (+977)</option>
																								<option value="31">Netherlands (+31)</option>
																								<option value="687">New Caledonia (+687)</option>
																								<option value="64">New Zealand (+64)</option>
																								<option value="505">Nicaragua (+505)</option>
																								<option value="227">Niger (+227)</option>
																								<option value="234">Nigeria (+234)</option>
																								<option value="683">Niue (+683)</option>
																								<option value="672">Norfolk Islands (+672)</option>
																								<option value="670">Northern Marianas (+670)</option>
																								<option value="47">Norway (+47)</option>
																								<option value="968">Oman (+968)</option>
																								<option value="680">Palau (+680)</option>
																								<option value="507">Panama (+507)</option>
																								<option value="675">Papua New Guinea (+675)</option>
																								<option value="595">Paraguay (+595)</option>
																								<option value="51">Peru (+51)</option>
																								<option value="63">Philippines (+63)</option>
																								<option value="48">Poland (+48)</option>
																								<option value="351">Portugal (+351)</option>
																								<option value="1787">Puerto Rico (+1787)</option>
																								<option value="974">Qatar (+974)</option>
																								<option value="262">Reunion (+262)</option>
																								<option value="40">Romania (+40)</option>
																								<option value="7">Russia (+7)</option>
																								<option value="250">Rwanda (+250)</option>
																								<option value="378">San Marino (+378)</option>
																								<option value="239">Sao Tome &amp; Principe (+239)</option>
																								<option value="966">Saudi Arabia (+966)</option>
																								<option value="221">Senegal (+221)</option>
																								<option value="381">Serbia (+381)</option>
																								<option value="248">Seychelles (+248)</option>
																								<option value="232">Sierra Leone (+232)</option>
																								<option value="65">Singapore (+65)</option>
																								<option value="421">Slovak Republic (+421)</option>
																								<option value="386">Slovenia (+386)</option>
																								<option value="677">Solomon Islands (+677)</option>
																								<option value="252">Somalia (+252)</option>
																								<option value="27">South Africa (+27)</option>
																								<option value="34">Spain (+34)</option>
																								<option value="94">Sri Lanka (+94)</option>
																								<option value="290">St. Helena (+290)</option>
																								<option value="1869">St. Kitts (+1869)</option>
																								<option value="1758">St. Lucia (+1758)</option>
																								<option value="249">Sudan (+249)</option>
																								<option value="597">Suriname (+597)</option>
																								<option value="268">Swaziland (+268)</option>
																								<option value="46">Sweden (+46)</option>
																								<option value="41">Switzerland (+41)</option>
																								<option value="963">Syria (+963)</option>
																								<option value="886">Taiwan (+886)</option>
																								<option value="7">Tajikstan (+7)</option>
																								<option value="66">Thailand (+66)</option>
																								<option value="228">Togo (+228)</option>
																								<option value="676">Tonga (+676)</option>
																								<option value="1868">Trinidad &amp; Tobago (+1868)</option>
																								<option value="216">Tunisia (+216)</option>
																								<option value="90">Turkey (+90)</option>
																								<option value="7">Turkmenistan (+7)</option>
																								<option value="993">Turkmenistan (+993)</option>
																								<option value="1649">Turks &amp; Caicos Islands (+1649)</option>
																								<option value="688">Tuvalu (+688)</option>
																								<option value="256">Uganda (+256)</option>
																								<option value="44">UK (+44)</option>
																								<option value="380">Ukraine (+380)</option>
																								<option value="971">United Arab Emirates (+971)</option>
																								<option value="598">Uruguay (+598)</option>
																								<option value="1">USA (+1)</option>
																								<option value="7">Uzbekistan (+7)</option>
																								<option value="678">Vanuatu (+678)</option>
																								<option value="379">Vatican City (+379)</option>
																								<option value="58">Venezuela (+58)</option>
																								<option value="84">Vietnam (+84)</option>
																								<option value="84">Virgin Islands - British (+1284)</option>
																								<option value="84">Virgin Islands - US (+1340)</option>
																								<option value="681">Wallis &amp; Futuna (+681)</option>
																								<option value="969">Yemen (North) (+969)</option>
																								<option value="967">Yemen (South) (+967)</option>
																								<option value="381">Yugoslavia (+381)</option>
																								<option value="243">Zaire (+243)</option>
																								<option value="260">Zambia (+260)</option>
																								<option value="263">Zimbabwe (+263)</option>
																							</select>
																							<input name="WMyMobileCode2" type="text" class="input_sma" id="WMyMobileCode2" maxlength="5" value="<?=$_SESSION['reg_post1']['WMyMobileCode2']?>" tabindex="5" onchange="checkMobileC(this.value, 'WMyMobile', 'WMyMobile')" onkeyup="checkMobileC(this.value, 'WMyMobile', 'WMyMobile')" readonly="readonly"/>
																							.
																							<input name="WMyMobile" type="text" class="input_med2" id="WMyMobile" tabindex="6" onchange="checkMobile('WMyMobileCode2', this.value, this.name)" onkeyup="checkMobile('WMyMobileCode2', this.value, this.name)" value="<?=$_SESSION['reg_post1']['WMyMobile']?>" maxlength="20" />
																							<span class="hint">
																							<div id="register_mobile" class="grey_10">Format:
																								[Country code . Area code + Phone Number] E.g. <font color="red">60.127654321</font>. <br />
																								(<font color="red">Do not</font> enter any special characters (+ or -) or leading zeros at the front of the number)</div>
																							<span class="hint-pointer">&nbsp;</span></span> </td>
																					</tr>
																					<tr>
																						<td align="left">&nbsp;</td>
																						<td><input name="submit" type="submit" id="submit" value="Sign Up" tabindex="7" /></td>
																					</tr>
																				</table>
																			</form></td>
																	</tr>
																</table></td>
															<td style="background-image:url(images/big-box_07.jpg); background-repeat:repeat-y">&nbsp;</td>
														</tr>
														<tr>
															<td valign="top"><img src="images/big-box_10.jpg" width="12" height="12"></td>
															<td valign="top" style="background-image:url(images/big-box_11.jpg); background-repeat:repeat-x; background-position:top">&nbsp;</td>
															<td valign="top"><img src="images/big-box_12.jpg" width="12" height="12"></td>
														</tr>
													</table></td>
											</tr>
										</table></td>
								</tr>
								<tr>
									<td align="center"><table border="0" cellpadding="10" cellspacing="0" class="menu_bottom_t">
											<tr>
												<td><a href="wauhhBiz.php" target="_self" title="WAUHHBIZ">WAUHHBIZ</a></td>
												<td><a href="http://marketer.wowdoyou.com/wauhhHot.php" target="_self" title="WAUHHHOT">WAUHHHOT</a></td>
												<td><a href="http://socializer.wowdoyou.com/wauhhSoc.php" target="_self" title="WAUHHSOCIETY">WAUHHSOCIETY</a></td>
												<td><a href="index.php" target="_self">HOME</a></td>
												<td><a href="about.php" target="_self">ABOUT</a></td>
												<td><a href="contactus.html" target="_self">CONTACT</a></td>
												<td><a href="career.php" target="_self">CAREERS</a></td>
												<td><a href="terms.html" target="_self">TERMS</a></td>
												<td><a href="privacy.html" target="_self">PRIVACY</a></td>
												<td><a href="invmsg.php" title="Investor Message" target="_self">INVESTOR</a></td>
												<td><a href="http://www.facebook.com/pages/Wauhaha/125760707473366" target="_blank" title="Facebook Page">FB PAGE</a></td>
											</tr>
										</table></td>
								</tr>
							</table>
						</div></td>
				</tr>
			</table></td>
	</tr>
	<tr>
		<td><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="copyright">
				<tr>
					<td align="center">Copyright &copy; 2011 Wauhaha.com. All Rights Reserved. Reproduction strictly prohibited.<br>
						All brand names and products are registered trademarks and patent pending of their respective companies.</td>
				</tr>
			</table></td>
	</tr>
</table>
</body>
</html>
