<script language="JavaScript" type="text/javascript">
<!--
function checkForm() {
	formErrors = false;    

	if (document.linkdata.link_title.value == '') {
		formErrors = '{L_LINK_TITLE}';	
	} else if (document.linkdata.link_url.value == 'http://') {
		formErrors = '{L_LINK_URL}';	
	} else if (document.linkdata.link_logo_src.value == 'http://' ) {
		formErrors = '{L_LINK_LOGO_SRC}';	
	} else if (document.linkdata.link_category.value == '' ) {
		formErrors = '{L_LINK_CATEGORY}';	
	} else if (document.linkdata.link_desc.value == '' ) {
		formErrors = '{L_LINK_DESC}';	
	}

	if (formErrors) {
		alert('{L_PLEASE_ENTER_YOUR}' + formErrors);
		return false;
	} 
	
	return true;
}
//-->
</script>

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
	  <td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> &raquo; <a href="{U_SITE_LINKS}" class="nav">{L_SITE_LINKS}</a></td>
	</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr> 
	  <td width="10%" nowrap="nowrap" valign="top">
		<form name="linkdata" method="post" action="link_register.php">
		  <table border="0" cellpadding="2" cellspacing="0" width="100%" class="forumline">
			<tr>
			  <th class="thHead" align="left">{L_LINK_US}</th>
			</tr>
			<tr> 
			  <td class="row1">
			  	<br /><span class="gensmall"><img src="{U_SITE_LOGO}" border="0" alt="{SITENAME}" /><br /><br />
			  	{L_LINK_US_EXPLAIN}</span><br />
			  	<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" style="table-layout:fixed;background-color:#B2C5D9">
				  <tr> 
					<td style="left:0px;width:100%;word-wrap:break-word;background-color:#FFFFFF" class="gensmall">{LINK_US_SYNTAX}</td>
				  </tr>
				</table>
			  </td>
			<tr> 
			  <th class="thHead" align="left">{L_LINK_REGISTER}</th>
			</tr>
			<tr> 
			  <td class="row1"><br /><span class="gensmall">{L_LINK_REGISTER_RULE}</span></td>
			</tr>			
			<tr> 
			  <td class="row1"><br /><span class="gensmall">{L_LINK_TITLE}</span><br /><input type="text" name="link_title" value="" size="15" maxlength="20" class="post" style="width:160px"></td>
			</tr>
			<tr> 
			  <td class="row1"><span class="gensmall">{L_LINK_URL}</span><br /><input type="text" name="link_url" value="http://" size="15" maxlength="100" style="width:160px" class="post"></td>
			</tr>
			<tr> 
			  <td class="row1"><span class="gensmall">{L_LINK_LOGO_SRC}</span><br /><input type="text" name="link_logo_src" value="http://" size="15" maxlength="120" style="width:160px" class="post"></td>
			</tr>
			<tr> 
			  <td class="row1">
			  	<span class="gensmall">{L_LINK_CATEGORY}</span><br />
				<select name="link_category" style="width:160px">
				  <option value="" selected>----------------</option>{LINK_CAT_OPTION}
				</select>
			  </td>
			</tr>
			<tr> 
			  <td class="row1"><span class="gensmall">{L_LINK_DESC}</span><br /><textarea name="link_desc" cols="15" rows="4" class="post" style="width:160px" maxsize="120" wrap="VIRTUAL"></textarea></td>
			</tr>
			<tr> 
			  <td class="catBottom" align="center"><input type="submit" name="addlink" value="{L_SUBMIT}" class="liteoption"></td>
			</tr>
		  </table>
		</form>
	  </td>
	  <td width="10" nowrap="nowrap">&nbsp;</td>
	  <td width="85%" nowrap="nowrap" valign="top">
		<table border="0" cellpadding="4" cellspacing="1" width="100%">
			<!-- BEGIN linkrow -->
			<tr>
				<td valign="top" width="10%"><a href="{linkrow.LINK_URL}" alt="{linkrow.LINK_DESC}" target="_blank"><img src="{linkrow.LINK_LOGO_SRC}" alt="{linkrow.LINK_TITLE}" width="88" height="31" border="0" /></a></td>
				<td class="genmed" valign="top" width="75%"><a href="{linkrow.LINK_URL}" class="genmed" target="_blank">{linkrow.LINK_TITLE}</a><br />{linkrow.LINK_DESC}</td>
				<td nowrap="nowrap" nowrap="nowrap" width="5%">&nbsp;</td>
				<td class="gensmall" valign="top" nowrap="nowrap" width="10%">{L_LINK_CATEGORY}: {linkrow.LINK_CATEGORY}<br />{L_LINK_JOINED}: {linkrow.LINK_JOINED}<br />{L_LINK_HITS}: {linkrow.LINK_HITS}</td>
			</tr>
			<tr>
				<td colspan="4"><hr /></td>
			</tr>
			<!-- END linkrow -->
		</table>
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
		  <tr> 
			<td valign="top"><span class="nav">{PAGE_NUMBER}</span></td>
			<td align="right"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span></td>
		  </tr>
		</table>	  
	  <td>
	</tr> 
</table>
