Formulario de registro.
Código:
Funcion para llamar al formulario de registro y cargarlo en el DIV:<form method=post action ="scriptregistro.php">
<div align="center">
<br>
<table Style ="border: solid; border-width: 1px; border-color:blue;">
<tr>
<td colspan="3" align="center">
Datos de Usuario:
</td>
</tr>
<tr>
<td>Usuario:</td>
<td><input type = "text" maxlength="20" name = usuario></td>
<td><input type="button" value="Validar" onclick="scripvalidar.php"/></td>
</tr>
<noscript>no esta activado </noscript>
<script>
document.write("hola mundo");
</script>
<script language="javascript" type="text/javascript">
document.write("<tr><td colspan="3" align="center" Style="color:#FF0000;">Usuario muy corto.</td></tr>");
</script>
<tr>
<td>Contraseña:</td>
<td><input type = "password" maxlength="16" name=contrasena></td>
</tr>
<tr>
<td>Repite contraseña:</td>
<td><input type = "password"></td>
</tr>
<?php
echo '<tr><td colspan="3" align="center" Style="color:#FF0000;">Las contraseñas no coinciden.</td></tr>';
?>
<tr>
<td colspan="2" align="center">
Datos de Personales:
</td>
</tr>
<tr>
<td>Nombre:</td>
<td><input type = "text" name = nombre></td>
</tr>
<tr>
<td> Apellido:</td>
<td><input type = "text" name = apellido></td>
</tr>
<tr>
<td>Edad:</td>
<td><input type = "text" name = edad></td>
</tr>
<tr>
<td>Sexo:</td>
<td><input type = "text" name =sexo></td>
</tr>
<tr>
<td>Domicilio:</td>
<td><input type = "text" name = domicilio></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input type = "text" name = email></td>
</tr>
<tr>
<td>Telefono:</td>
<td><input type = "text" name = telefono></td>
</tr>
<tr>
<td colspan= 3; align="center"><input type = "submit" value = "Enviar"></td>
</tr>
</table>
</div>
</form>
Código:
El problema esque en el formulario no me escribe el document.write("<tr><td colspan="3" align="center" Style="color:#FF0000;">Usuario muy corto.</td></tr>"); y no se porquedocument.write("<p>Espere mientras carga la página.</p>");
function loadurl(url,id){
var pagecnx = createXMLHttpRequest();
pagecnx.onreadystatechange=function(){
if (pagecnx.readyState == 4 && (pagecnx.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(id).innerHTML=pagecnx.responseText;
}
pagecnx.open('GET',url,true)
pagecnx.send(null)
}
function loadurlkey(e,url,id){
tecla = (document.all) ? e.keyCode : e.which;
if (tecla==13)
loadurl(url,id);
}
function createXMLHttpRequest(){
var xmlHttp=null;
if (window.ActiveXObject)
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
else if (window.XMLHttpRequest)
xmlHttp = new XMLHttpRequest();
return xmlHttp;
}
Le agradecere eternamente a aquien me ayude.


