代码可能有点乱 求高手解答
<script type="text/javascript">
function  mailbox(strEmail){     var xmlHttp;
 
 try
    {
   // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
 catch (e)
    { // Internet Explorer
   try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
   catch (e)
      {     try
         {
         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
      catch (e)
         {
         alert("您的浏览器不支持AJAX!");
         return false;
         }
      }
    }
 
 
       xmlHttp.onreadystatechange=function()
      {
   var xx = document.getElementsByName("email")[0].value;
if (xx == ""){document.getElementById("mailbox_msg").innerHTML='<div><font color=red>邮箱不能为空!</font></div>';}
else if(strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) {if(xmlHttp.readyState==4)
        {
       var x = xmlHttp.responseText;//获取传过来的值
   
        if(x == 1)
{

ee = "1";
document.getElementById("mailbox_msg").innerHTML='<div><font color=green>邮箱可以使用!</font></div>';}
else
{document.getElementById("mailbox_msg").innerHTML='<div><font color=red>邮箱已经被注册</font></div>';}

}
     
 }
 
 else{document.getElementById("mailbox_msg").innerHTML='<div><font color=red>邮箱地址不正确</font></div>';}
 
 }  var name=document.blooger.email.value;//这里老是错误 显示获取不到值
  xmlHttp.open("get","<?php echo "http://".$_SERVER['HTTP_HOST']."/Login/"; ?>mail.php?youx="+name,true);
    xmlHttp.send(null);
alert(name);
}
</script>
<div style="margin-left:30px;">
<form name="blooger" action="blogger.php?action=update" method="post" id="blooger" enctype="multipart/form-data" >
<div class="item_edit">
<li>
<?php echo $icon; ?><input type="hidden" name="photo" value="<?php echo $photo; ?>"/><br />
头像<br />
    <input name="photo" type="file" /> (支持JPG、PNG格式图片)
</li>
<li>昵称<br /><input maxlength="50" style="width:185px;" value="<?php echo $nickname; ?>" name="name" /> </li>
<li>电子邮件<br /><input name="email" value="<?php echo $email; ?>" id="id_mailbox" style="width:185px;" maxlength="200" onBlur="mailbox(this.value);" /><span id="mailbox_msg"></span></li>
<li>个人描述<br /><textarea name="description" style="width:300px; height:65px;" type="text" maxlength="500"><?php echo $description; ?></textarea></li>
<li><input type="submit" value="保存资料" class="button" /></li>
</div>
</form>
<div style="margin:30px 0px 10px;"><a href="javascript:displayToggle('chpwd', 2);" class="care">修改密码及登录名+</a></div>
<form action="blogger.php?action=update_pwd" method="post" name="blooger" id="blooger">
<div id="chpwd" class="item_edit">
<li><input type="password" maxlength="200" style="width:185px;" value="" name="oldpass" /> 当前密码</li>
<li><input type="password" maxlength="200" style="width:185px;" value="" name="newpass" /> 新密码(不小于6位)</li>
<li><input type="password" maxlength="200" style="width:185px;" value="" name="repeatpass" /> 重复新密码</li>
<li><input maxlength="200" style="width:185px;" name="username" /> 登录名</li>
<li><input type="submit" value="确认修改" class="button" /></li>
</div>
</form>
</div>显示错误结果是网页错误详细信息用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.2; .NET4.0C; .NET4.0E)
时间戳: Fri, 11 Oct 2013 09:46:20 UTC
消息: 'document.blooger.email.value' 为空或不是对象
行: 161
字符: 3
代码: 0
URI: http://127.0.0.1/admin/blogger.php?active_edit=1
实在看不出错误了 求高手解答