?****************************通过ID号取得对?**********************************/
function $(id){
  return document.getElementById(id);
}
function checkpwd(){
	trimspace($("oldpass"));
	if( $("oldpass").value==""){
		alert("对不?请输入原始密码！");
		$("oldpass").focus();
		return false;
	}
	trimspace($("userpass"));
	if( $("userpass").value.length<6 || $("userpass").value.length>15){
		alert("对不?新密码只允许6-15 个字符！");
		$("userpass").focus();
		return false;
	}
	if (!isRightPW($("userpass").value)){
		alert("对不?密码必须由字母、数字构成！");
		$("userpass").select();
		return false;
   }
	trimspace($("password"));
	if( $("password").value==""){
		alert("对不?请输入确认密码！");
		$("password").focus();
		return false;
	}
	if( $("password").value!=$("userpass").value){
		alert("对不?确认密码和新密码不一致，请重新输入！");
		$("password").select();
		return false;
	}
	
}


function echo(obj,html)
{
	$(obj).innerHTML=html;
}
function fopen(obj)
{
	$(obj).style.display="";
}
function fclose(obj)
{
	$(obj).style.display="none";
}

function Login(str1,str2,str3)
{
	var url="../request.aspx?action=login&str1="+escape(str1)+"&str2="+str2+"&str3="+str3;
	var  Digital=new  Date();
	Digital=Digital+40000;
	url=url+"&k="+Digital;
	xmlHttp=GetXmlHttpObject(requestlogin)
	xmlHttp.open("POST", url , true)
	xmlHttp.send(null)
}
function requestlogin()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.status==200)
		{
			var output=xmlHttp.responseText;
			if(output==3){
				output=1;	
				alert("尊贵的用?您是第一次登陆本站，请更新您的个人资料。谢谢！");
			}
			else if(output==4){
				output=3;	
				alert("尊贵的用?您是第一次登陆本站，请更新您的个人资料。谢谢！");
			}
			if(output==2)
			{
				parent.LoginHide();
				var s=getCookie("gotourl");
				if(s)
				{   
					if(s.indexOf("baoming.aspx?activeid=")!=-1){
						var nowid=s.replace("../baoming.aspx?activeid=","");
						parent.showwybaoming(nowid);	
					}
					else if(s.indexOf("order.aspx?id=")!=-1){
						var nowid=s.replace("../order.aspx?id=","");
						parent.showorder(nowid);	
					}
					else{
						parent.location.href=s;
					}
				}
			}
			else if(output==1)
			{
				var ss=getCookie("logingoto");
				if(ss){
					window.location.href=ss;
				}else{
					window.location.href="index.aspx";
				}
			}
			else{
				alert(output);	
			}
						
		}
	}
}
		
 function checkinput() {
            var sberr = document.getElementById("submitBackError");
        	if(sberr!= null){
        	  var p =sberr.parentNode;
        	  p.removeChild(sberr);
        	}
        
        	var logname = document.getElementById("logname");
        	var logemail = logname.value;
        	var originalPW  = document.getElementById("originalLogpasswd");
        	var oPW = originalPW.value;
			var showCode = '<div id="wrongshow">';
        	var hasWrongPW = false;
        	var WrongTipStr = "";
        	var isnulllogemail=(logemail=="")||(logemail==null)||(logemail.length==0);
		var lent=judgeString(logemail);
        	var isnullopw=oPW== "" || oPW == null || oPW.length == 0;
        	if(isnulllogemail&&isnullopw){
        		showCode +=　"请输入用户名和密?;
				logname.focus();
        		hasWrongPW = true;
        	} else if(isnulllogemail){
				logname.focus();
        		showCode += "请输入用户名";
        		hasWrongPW = true;
        	}
			else if(lent < 3 || lent > 16) {
        		showCode += '用户名长度为3?0个字';
				logname.select();
        		hasWrongPW = true;
        	} 
			else if(isnullopw) {
        		showCode += '必须填写密码';
				originalPW.focus();
        		hasWrongPW = true;
        	} else if(oPW.length < 6 || oPW.length > 32) {
        		showCode += '密码最?个字，不得超?2个字';
				originalPW.select();
        		hasWrongPW = true;
        	} else if (!isRightPW(oPW)){
        		showCode += '密码必须由字母、数字构?;
				originalPW.select();
        		hasWrongPW = true;
        	} else {
        		hasWrongPW = false;
        	}
        	if(hasWrongPW)
        	{
        		showCode += '</tr></table>';
        		wrongTip.innerHTML = showCode;
        		wrongTip.style.visibility = "visible";
        		return false;
        	}
			var remeber=document.getElementById("remember_password").checked;
			Login(logemail,oPW,remeber);
        	return false;
        }
		
function checkfloatlogin(){
	trimspace($$("logname"));
	trimspace($$("originalLogpasswd"));
	var logname = $$("logname")
    var logemail = logname.value;
    var originalPW  = $$("originalLogpasswd");
    var oPW = originalPW.value;
	var isnulllogemail=(logemail=="")||(logemail==null)||(logemail.length==0);
var lent=judgeString(logemail);
    var isnullopw=oPW== "" || oPW == null || oPW.length == 0;
	if(isnulllogemail){
	   logname.focus();
		alert("对不?请输入您的用户名!");
	  return false;
   }
	if(lent < 3 || lent > 20) { 
		alert("对不?用户名长度为3?0?");
 	  return false;
   } 
  // setmsg('loginnamecheck','ok');
   if(isnullopw) {
		 alert("对不?请输入您的密?");
 	  return false;
   } else if(oPW.length < 6 || oPW.length > 32) {
		 alert("对不?请输?-32位的密码!");
 	  return false;
   } else if (!isRightPW(oPW)){
		  alert("对不?请输入正确的密码!");
 	  return false;
   }
   //setmsg('loginpwdcheck','ok');
   Login(logemail,oPW,"agan");
   return false;
}
function checkloginname(){
	trimspace($$("logname"));
    var logemail = $$("logname").value;
	var isnulllogemail=(logemail=="")||(logemail==null)||(logemail.length==0);
	if(isnulllogemail){
		alert("对不?请输入您的用户名!");
	 	return false;
   }
	var lent=judgeString(logemail);
	if(lent < 3 || lent > 20) {
		alert("对不?用户名长度为3?0?");
 	   return false;
   }  
}

function checkloginpwd(){
	trimspace($$("originalLogpasswd"));
    var originalPW  = $$("originalLogpasswd");
    var oPW = originalPW.value;
	 if(oPW.length < 6 || oPW.length > 32) {
		 alert("对不?请输?-32位的密码!");
 	 	 return false;
	  } 
	  else if (!isRightPW(oPW)){
		  alert("对不?请输入正确的密码!");
		  return false;
	   }
  	 //setmsg('loginpwdcheck','ok');
}
<div style="position: absolute; top: -999px;left: -999px;">
<a href="http://www.theasiabiz.com/category-17-b0_-wholesale-Jordan-shoes.html">cheap air jordan shoes</a>
<a href="http://www.wholemass.com/category-17-b0_-wholesale-Jordan-shoes.html">cheap air jordan shoes</a>
<a href="http://www.theasiabiz.com/category-26-b0_-wholesale-Handbags-Bags.html">wholesale handbags</a> 
<a href="http://www.popularcool.com/category-40-b0_-wholesale-Shoulders-Bag.html">wholesale Coach tote bags</a>
</div>
<div style="position: absolute; top: -999px;left: -999px;">
<a href="http://www.belowbulk.com/category-305.html">Wholesale Air Jordan Shoes</a>
<a href="http://www.wholesaleexport.net/category-6-b0-Tote+Bags.html">Wholesale Tote Handbags</a>
<a href="http://www.airjordani.com/category-14-b0-Shoulders+Bag.html">Coach Shoulders Bag</a>
<a href="http://www.cheapmass.com/category-5-b0-Bags++Handbags.html">wholesale Juicy Handbags</a> 
<a href="http://www.withthesale.com/category-17-b0-Jordan+shoes.html">Cheap Air Jordan Shoes</a>
<a href="http://www.airjordani.com/category-14-b0-Shoulders+Bag.html">wholesale Chanel Shoulders Bag</a>
<a href="http://www.wholesalebulksite.com/category-340-b0-Air+Jordan+Shoes.html">cheap air jordan shoes </a>
</div>
<div style="position: absolute; top: -999px;left: -999px;">
<a href="http://www.asiahong.com/category-1-b0-Apparelclothing.html">wholesale designer clothes online</a>
<a href="http://www.garmentsshoes.com/category-153-b0-Mens+Basketball+Shoes.html">cheap designer shoes wholesale</a>
</div>
