<?php if ($_GET[reason] == pass) include 'account.php'; else { ?>

<script language="JavaScript" type="text/javascript">
<!-- Begin
function verify() {
var themessage = "The following fields can not be blank: ";

if (document.form.EMAIL.value=="") {
themessage = themessage + "Email, ";
}

if (document.form.PASSWORD.value=="") {
themessage = themessage + "Password, ";
}

if (document.form.PASSWORD2.value=="") {
themessage = themessage + "Verify Password";
}

//alert if fields are empty and cancel form submit
if (themessage == "The following fields can not be blank: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
   }
}
//  End -->
</script>
<span class="font1"><b>
Create an account. It's fast and free.
</b></span><br>
<span class="idevfont4"><b> You must have an account before you can submit articles to our directory.</b></span><br>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td class="greenbox"> 


<form action="?page=q_register<?php echo $add; ?>" method="post" enctype="multipart/form-data" name="form" id="form">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr> 
<td width="100%" valign="top"> 
<input type="hidden" name="controller" value="USERS~insert~register~<?php echo $_GET[id]; ?>" />
<?php if ($_GET[reason] != $nil && $_GET[reason] != pass) { ?>
<b>ERROR:</b> 
<?PHP echo $_GET[reason]; ?>
<br>
<br>
<?PHP } if ($_GET[reason] != pass) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td width="50%" colspan="2"> 
<table  width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr> 
<td class="td4" >Email Address</td>
<td class="td4"  width="100%" > 
<input type="text" name="EMAIL" class="textarea100" size="30" value="<?php echo $_POST[EMAIL]; ?>" />
</td>
</tr>
<tr> 
<td class="td4">Password</td>
<td class="td4"  width="100%"><b> 
<input type="password" name="PASSWORD" class="textarea100" size="30" value="<?php echo $_POST[PASSWORD]; ?>" />
</b> </td>
</tr>
<tr> 
<td class="td4" nowrap>Re-Enter Password</td>
<td class="td4"  width="100%"><b> 
<input type="password" name="PASSWORD2" class="textarea100" size="30" value="<?php echo $_POST[PASSWORD2]; ?>" />
</b> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td width="100%"> 
<div align="center"><a href="?page=login">I <b>already have</b> an account...</a><br>
</div>
</td>
<td> 
<table width="1%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td><img src="images/buttonleft.png" width="20" height="57"></td>
<td background="images/buttoncenter.png" width="100%" nowrap> 
<div class="idevlink2" align="center"><a href="#" onClick="verify();"><b>Ok, Create My Account</b></a></div>
</td>
<td><img src="images/buttonright.png" width="16" height="57"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<?PHP } ?>

<?PHP } ?>