Hola de nuevo.
Tu código un poco modificado:
Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin título</title>
<style type="text/css">
<!--
.Estilo1 {color: #FFFFFF}
-->
</style>
</head>
<body>
<form action="/comprobar.php" method="post" name="form" id="form" onsubmit="return validar_formulario();">
<div align="left">
<table border="0" width="697" height="200" bgcolor="#000080" cellspacing="0" cellpadding="0" style="float: left">
<tr>
<td height="1" width="695"><span class="Estilo1"> <b><u>Dirección Web pornográfica y Su
código de Cliente</u> :</b> </span></td>
</tr>
<tr>
<td width="693" height="1" bgcolor="#3130CE"><span class="Estilo1"> </span>
<p class="Estilo1">*Código de Cliente :
<input name="codigo_pasado" type="text" size="17">
</p>
<p class="Estilo1"> </p></td>
</tr>
<tr>
<td width="693" height="1" bgcolor="#3130CE"><span class="Estilo1"> Url Pornográfica : www.
<input name="url_pasada" type="text" size="17">
<SELECT NAME="dom">
<OPTION value="com" selected>.com
<OPTION value="net">.net
<OPTION value="org">.org
<OPTION value="biz">.biz
<OPTION value="info">.info
<OPTION value="es">.es
<OPTION value="uk">.uk
<OPTION value="museum">.museum
<OPTION value="cn">.cn
<OPTION value="name">.name
<OPTION value="us">.us
<OPTION value="ar">.ar
<OPTION value="ws">.ws
<OPTION value="tv">.tv
<OPTION value="com.es">.com.es
<OPTION value="nom.es">.nom.es
<OPTION value="org.es">.org.es
</SELECT>
<font face="Verdana" size="2"><br>
<br>
Ej de dirección web correcta:
[url]www.xxx.com[/url] ---- Ej de dirección Incorrecta:
www.xxx.com/adultos</font> </span></td>
</tr>
<tr>
<td height="22" width="695"><span class="Estilo1"> </span> <p align="center" class="Estilo1"><font face="Times New Roman" size="2">(</font><font size="2" face="Times New Roman">*) Este código le habrá llegado por correo electrónico cuando descargó ... </font></td>
</tr>
<tr>
<td height="31" width="695">
<p align="center">
<input type="submit" value="Enviar Web">
</p>
</td>
</tr>
</table>
</div>
</form>
</body>
<SCRIPT language="JavaScript">
<!--
function validar_formulario() {
// Validamos Relleno Campos
if (document.form.codigo_pasado.value.length < 5) {
alert("Debe insertar el Código correctamente");
document.form.codigo_pasado.focus();
return false;
}
else if (document.form.url_pasada.value.length < 9) {
alert("La Web debe tener el formato [url]www.dominio.com[/url] .es .org etc, sin las barras //");
document.form.url_pasada.focus();
return false;
}
//return true;
}
//-->
</SCRIPT>
</html>
Dos saludos.