	<?  
	require 'templates/'.$tfold.'/header.php';  ?>
	<table width="980" cellpadding="0" cellspacing="0" align="center">
	<tr>
<tr><td width="1%" height="24" valign="top"><img src=templates/<?=$tfold?>/img_files/t_header_l_bl.gif></td>
<td class="tdhead_main_bl" width="30%" height="24" valign="middle">

<table width="250" cellpadding="0" cellspacing="0" >
<tr><td width="1%" height="24" valign="top"><img src=templates/<?=$tfold?>/img_files/heading-left-reg.gif></td>
<td class="head_main_bl" width="98%" height="24" valign="middle">&nbsp;<B><? echo "$lang_593" ?></b></td>
<td width="1%" height="24" valign="top"><img src=templates/<?=$tfold?>/img_files/heading-right-bl.gif></td></tr>
	</table>
</td>
<td class="tdhead_main_bl" width="68%" height="24" valign="middle">&nbsp;</td>
<td width="1%" height="24" valign="top"><img src=templates/<?=$tfold?>/img_files/t_header_r_bl.gif></td></tr>
	</table>


<table border="0" align="center" cellpadding="3" cellspacing="0" width="980" class="ft_right_bl">
<tr class="sub_tr_border">
  <td colspan="2">
<? echo "$r_steps" ?>
</td><td align="right" colspan="2" style="padding-right:5px">
<font color=red size="+1" style="text-align:center"><b>*</b></font> <? echo "$lang_16" ?>
</td>
</tr>
 <tr><td class="ft2" colspan="4"> 
<? if($err_flag==1)
{ 
?>
<table width="980" align="center">
<tr>
<td>
<img src="templates/<? echo "$tfold" ?>/img_files/xclabid.gif"></td>
<td>
<font class="head_font" color="red"><? echo "$lang_17" ?></font></td>
<? if(!empty($err_user))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="account_reg.php#txtusername"><? echo "$lang_18" ?></a> - <?= $err_user; ?></td></tr>
<? 
}
?>
<? if(!empty($err_pass))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="account_reg.php#txtpass"><? echo "$lang_19" ?></a> - <?= $err_pass; ?></td></tr>
<? 
}
?>
<? if(!empty($err_repass))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="account_reg.php#txtrepass"><? echo "$lang_20" ?><? echo "$lang_19" ?></a> - <?= $err_repass; ?></td></tr>
<? 
}
?>
<? if(!empty($passmatch))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="account_reg.php#txtrepass"><? echo "$lang_19" ?></a> - <?= $passmatch; ?></td></tr>
<? 
}
?>
<tr><td colspan="2"><hr noshade class="hr_color" size="1"></td></tr>

</table>
<?
} 
?>
</td></tr>
   <tr><td><form action="account_reg.php" method="post" name=acount_reg>
   <table width="100%" cellpadding="2" cellspacing="0" align=center>
   
 <? if(!empty($err_user))
 {?>
 <tr><td width=250><img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_user ?></font>
 <br>
 <b><font class="head_font" color=red><? echo "$lang_18" ?> * </font></b></td>
   </tr>
<?
  }
 ?>
<TR><TD><b><font class="head_font" ><? echo "$lang_18" ?></font></b>  *</td>
 
<td width=250><div class="h_text_cell_mid"><input type="text" name="txtusername" class="h_text_mid" value=<?= "$username"; ?>></div></td></tr>
 
 <? if(!empty($err_pass))
 {?>
 <tr>
 <td><img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_pass ?></font>
 <br>
 <b><font class="head_font" color=red><? echo "$lang_19" ?></font></b>
 <b><font size="2" color="red">*</font></b></td>
 </tr>
 <?
  }
 ?>
<TR><TD><b><font class="head_font"><? echo "$lang_19" ?></font></b>
* </td><td width=250><div class="h_text_cell_mid"><input type="password" name="txtpass" class="h_text_mid" value=<?= $pass; ?>></div>&nbsp;&nbsp;
  <? echo "$lang_21" ?></td>
 </tr>
 
 <? if(!empty($err_repass))
 {
 ?>
  <tr><td colspan="2"> <img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_repass ?></font>
 <br>
 <b><font class="head_font" color=red><? echo "$lang_20" ?><? echo "$lang_19" ?> *</font></b></td>
 </tr>
 <?
  }
 ?>
<TR><TD><b><font class="head_font"><? echo "$lang_20" ?><? echo "$lang_19" ?></font></b>
*</td><td colspan="2"><div class="h_text_cell_mid"><input type="password" name="txtrepass" class="h_text_mid" value=<?= $repass; ?>></div></td></tr>
<?
if($payment_status == "no")
     {
?>
<tr><td><? echo "$lang_613" ?></td></tr><tr><td><? diplay_payments(); ?>
	</td></tr>
<?
}
?>

  <tr><td width=100% colspan="2"><hr noshade class="hr_color" size="1"><br></td></tr>
 <input type="hidden" name=step value=2>
 <input type="hidden" name=user_id value="<?= $user_id;?>">
 <tr><td colspan="2" align="center"><input class="submit_button" type="submit" value="Continue" name=submit1 ></td></tr>
 </table>
 </form>
 </td></tr>
 </table>
<table width="980" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="98%" height="5" align="center"><img src=templates/<?=$tfold?>/img_files/t_bot_bl.gif border="0"></b></td>
</tr>
	</table>
 <? require 'templates/'.$tfold.'/footer.php'; ?>
</table>