amigos estou tentando usar esse codigo abaixo no hotspot, acontece o seguinte quando coloco ele p/ funcionar os usuarios nao logam fiz algo errado tentando personalizar mas nao sei onde esta o erro.

outro detalhe é que quando aperto o botao "teste gratis por 10 minutos" ele funciona mas escreve o mec do cliente no nome de usuario quando ele tenta retornar. ja no arquivo padrao isso nao acontece.

alguem pode me diser onde esta o erro no meu arquivo ?

OBS: nao entendo nada de htlm muito menos de java se der p/ detalhar fico muito grato obrigado.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>internet hotspot > login</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<style type="text/css">
body {
color: #737373;
font-size: 10px;
font-family: verdana;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}


textarea,input,select {
background-color: #FDFBFB;
border: 1px solid #BBBBBB;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}


a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 10px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 14px; color: #7A7A7A; }
.style1 {color: #F3A929}
.style2 {color: #F2B241}
</style>


</head>


<body>
$(if chap-id)
<form name="sendin" action="$(link-login-only)" method="post">
<input type="hidden" name="username" />
<input type="hidden" name="password" />
<input type="hidden" name="dst" value="http://www.google.com.br/" />
<input type="hidden" name="popup" value="true" />
</form>

<script type="text/javascript" src="/md5.js"></script>
<script type="text/javascript">
<!--
function doLogin() {
document.sendin.username.value = document.login.username.value;
document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
document.sendin.submit();
return false;
}
//-->
</script>
$(endif)


<table width="100%" style="margin-top: 1%;">
<tr>
<td align="center" valign="middle">
<div class="notice" style="color: #c1c1c1; font-size: 9px">$(if trial == 'yes')<span class="notice" style="color: #c1c1c1; font-size: 9px">Ainda não é cliente nosso?</span> teste grátis por 3 minutos, <a style="color: #FF8080"href="$(link-login-only)?dst=$(link-orig-esc)&amp;username=T-$(mac-esc)">click aqui</a>.$(endif)</div>
<br />
<table width="1024" height="944" style="border:; padding: 0x;" cellpadding="0" cellspacing="0">
<tr>
<td height="925" colspan="0" align="center" valign="middle" background="img/fundo1.gif">
<form name="login" action="$(link-login-only)" method="post"
$(if chap-id) onSubmit="return doLogin()" $(endif)>
<input type="hidden" name="dst" value="$(link-orig)" />
<input type="hidden" name="popup" value="true" />

<table width="950" border="0" cellpadding="2" cellspacing="2" style="background-color:">
<tr>
<td width="53" align="right"><span class="style1">Usuario</span></td>
<td width="172" align="left"><input style="width: 150px" name="username" type="text" value="$(username)"/></td>
<td width="44" align="left"><span class="style2">Senha</span></td>
<td width="154" align="left"><input style="width: 150px" name="password2" type="password"/></td>
<td width="96" align="left"><input type="submit" value="Conectar" /></td>
<td width="99" align="left"><span class="style2">Não é cliente?</span></td>
<td width="288" align="left"><input type="button" name="btTrial" value="Teste Grátis por 10 minutos!" onclick="parent.location.href='$(link-login-only)?dst=$(link-orig-esc)&amp;username=T-$(mac-esc)';" /></td>
</tr>
</table>
<br />
<br />
<br />
</form>
</td>
</tr>
<tr><td width="592" align="center">&nbsp;</td>
</tr>
</table>

<br /><div style="color: #c1c1c1; font-size: 9px"></div>
$(if error)<br /><div style="color: #FF8080; font-size: 9px">$(error)</div>$(endif)
</td>
</tr>
<tr>
<td align="center" valign="middle">&nbsp;</td>
</tr>
</table>


<script type="text/javascript">
<!--
document.login.username.focus();
//-->
</script>
</body>
</html>