<%@ Page language="c#" Codebehind="53KFREG.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.Admin._53KFREG" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<style> #table {width:95%;height:100%;text-align:center;float:left;font-size:12px;FONT-FAMILY: tahoma;}
	#body {float:left;clear:both;width:100%;height:auto;}
	.content {float:left;clear:both;width:100%;height:35px;}
	.names {float:left;clear:left;width:100px;height:19px;text-align:right;font-size:12px;padding-top:5px;}
	.inputs {float:left;clear:none;width:380px;height:24px;margin-top:2px;text-align:left;font-size:12px;}
	.info{float:right;clear:right;width:300px;height:28px;text-align:left;font-size:12px;padding-top:5px;padding-right:12px;color:#9C9A9C;}
	#button {float:left;clear:both;height:30px;width:95%;text-align:center;margin-top:6px;}
	#show {float:left;clear:left;width:130px;height:24px;text-align:center;margin-top:10px;font-size:12px;}
	#botton1 {float:right;clear:right;height:30px;text-align:left;width:420px;margin-top:6px;}
	#goup{float:left;clear:both;width:100%;height:auto;}
	a:link{text-decoration : none ;color : #000000;}
	a:visited {text-decoration : none ;color : #000000 ;}
	a:hover {text-decoration : underline ;color : #f60 ;}
	a:active {text-decoration : none ;color : #F90 ;}
	.reg_input1 { height:18px; width:250px; line-height:18px; border:1px solid #000;}
	.color1{ color:#ea3700;}
		</style>
		<script>
  String.prototype.IsEmail = function(){
    var myReg = /[\u4e00-\u9fa5]/;
    if(!myReg.test(this)){
      myReg = /^[_a-zA-Z0-9][-._a-zA-Z0-9]*@[-._a-zA-Z0-9]+\.[-._a-zA-Z0-9]+(\.[-._a-zA-Z])*$/;
      if (myReg.test(this)) return true;
    }else{
      myReg = /^[_a-zA-Z0-9\u4e00-\u9fa5][-_.a-zA-Z0-9\u4e00-\u9fa5]*@[-._a-zA-Z0-9\u4e00-\u9fa5]+(\.[-._0-9a-zA-Z\u4e00-\u9fa5]+)*$/;
      if (myReg.test(this)) return true;
    }
    return false;
  }
  String.prototype.IsDomain = function(){
      var myReg = /^[0-9a-zA-Z\-]+$/;
      if(myReg.test(this)) return true;
      return false;
  }
  String.prototype.IsNumber = function(){
    var myReg = /^[0-9]+$/;
    if(!myReg.test(this)) return false;
    ActRd=parseInt(this)	
    return true;
  }
  String.prototype.Trim = function(){
    var tmp = this.replace(/(^\s*)|(\s*$)/g, "");
    return tmp.replace(/(^\2005-9-28*)|(\　*$)/g,"");
  }

	function checkform(form1){
		if (form1.domain_name.value.Trim() == ""){
			form1.domain_name.focus();
			showmsg("企业代码不能为空!");
			return false;
		}
		if (form1.domain_name.value.IsNumber()){
			form1.domain_name.focus();
			form1.domain_name.select();
			showmsg("企业代码不能全为数字！");
			return false;
		}
		if (!form1.domain_name.value.IsDomain()){
			form1.domain_name.focus();
			form1.domain_name.select();
			showmsg("只能是字母,数字和下划线(_)!");
			return false;
		}
		if(document.getElementById("passwd").value.Trim() == ""){
			showmsg("请填写您的密码！") ;
			document.getElementById("passwd").focus();
			return false ;
		}
		if(document.getElementById("passwd").value.Trim() != document.getElementById("repasswd").value.Trim()){
			showmsg("两次输入的密码不一致！") ;
			document.getElementById("repasswd").focus();
			return false ;
		}
		document.getElementById("passwd").value = document.getElementById("passwd").value.Trim();
		document.getElementById("repasswd").value = document.getElementById("repasswd").value.Trim();
		if (form1.mail.value.Trim() == ""){
			form1.mail.focus();
			showmsg("为了方便我们与您联系,请填写真实email地址!");
			return false;
		}
		if (!form1.mail.value.Trim().IsEmail()){
			form1.mail.focus();
			form1.mail.select();
			showmsg("为了方便我们与您联系,请填写真实email地址!");
			return false;
		}
		return true;
	}

function mycheck(val){
	if (form1.domain_name.value.Trim() == ""){
		domain_name_ok = false;
		form1.domain_name.focus();
		alert("域名不能为空!");
		return false;
	}
	if (!form1.domain_name.value.IsDomain()){
		domain_name_ok = false;
		form1.domain_name.focus();
		form1.domain_name.select();
		alert("只能是字母,数字和中划线(-)!");
		return false;
	}
	if (form1.domain_name.value.IsNumber()){
		form1.domain_name.focus();
		form1.domain_name.select();
		alert("企业代码不能全为数字！");
		return false;
	}
	if (form1.domain_name.value.length < 4 || form1.domain_name.value.length > 30){
		domain_name_ok = false;
		form1.domain_name.focus();
		form1.domain_name.select();
		alert("域名要求至少4位长度！");
		return false;
	}
	return true;
}
function showmsg(str){
  alert(str);
}
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<FORM id="from1" name="form1" onsubmit="return checkform(this);" action="http://www.53kf.com/do_company_reg.php"
			method="post">
			<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" cellSpacing="3"
				cellPadding="0" width="95%" align="center" border="0">
				<TBODY>
					<TR>
						<TD style="BORDER-BOTTOM: #cccccc 1px dotted" align="left" height="30"><IMG height="16" src="images/22.gif" width="63"></TD>
					</TR>
					<TR>
						<TD style="PADDING-TOP: 5px" align="center" height="80">
							<OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
								height="80" width="610" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
								<PARAM NAME="_cx" VALUE="16140">
								<PARAM NAME="_cy" VALUE="2117">
								<PARAM NAME="FlashVars" VALUE="">
								<PARAM NAME="Movie" VALUE="images/top.swf">
								<PARAM NAME="Src" VALUE="images/top.swf">
								<PARAM NAME="WMode" VALUE="Window">
								<PARAM NAME="Play" VALUE="-1">
								<PARAM NAME="Loop" VALUE="-1">
								<PARAM NAME="Quality" VALUE="High">
								<PARAM NAME="SAlign" VALUE="">
								<PARAM NAME="Menu" VALUE="-1">
								<PARAM NAME="Base" VALUE="">
								<PARAM NAME="AllowScriptAccess" VALUE="">
								<PARAM NAME="Scale" VALUE="ShowAll">
								<PARAM NAME="DeviceFont" VALUE="0">
								<PARAM NAME="EmbedMovie" VALUE="0">
								<PARAM NAME="BGColor" VALUE="">
								<PARAM NAME="SWRemote" VALUE="">
								<PARAM NAME="MovieData" VALUE="">
								<PARAM NAME="SeamlessTabbing" VALUE="1">
								<PARAM NAME="Profile" VALUE="0">
								<PARAM NAME="ProfileAddress" VALUE="">
								<PARAM NAME="ProfilePort" VALUE="0">
								<PARAM NAME="AllowNetworking" VALUE="all">
								<PARAM NAME="AllowFullScreen" VALUE="false">
								<embed src="images/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
									type="application/x-shockwave-flash" width="610" height="80"> </embed>
							</OBJECT>
						</TD>
					</TR>
					<TR>
						<TD  height="5"></TD>
					</TR>
					<TR>
						<TD >
							<DIV align="center">
								<DIV id="table">
									<DIV id="body">
										<DIV class="content">
											<DIV class="names"><SPAN class="color1"><FONT color="#ea3700">*</FONT></SPAN>&nbsp;企业代码：</DIV>
											<DIV class="inputs"><INPUT class="reg_input1" id="domain_name" onpropertychange="domain_name_ok = false;" type="text"
													maxLength="30" size="22" name="domain_name"> &nbsp; <INPUT style="CURSOR: pointer" onclick="if (mycheck(this.value)) {window.open('http://www.53kf.com/chk_arg.php?domain_name='+document.getElementById('domain_name').value,'','status=0,directories=0,resizable=0,toolbar=0,location=0,scrollbars=0,width=322,height=180');}"
													type="button" value="域名检测" name="checkdomainname">&nbsp;
											</DIV>
										</DIV>
										<DIV class="content" style="COLOR: #666666; HEIGHT: 20px">
											<DIV class="names"></DIV>
											<DIV class="inputs">字母(a-zA-Z)、数字(0-9)、中划线(-)组成,且不能都为数字
											</DIV>
										</DIV>
										<DIV class="content">
											<DIV class="names"><SPAN class="color1"><FONT color="#ea3700">*</FONT></SPAN>&nbsp;密码：</DIV>
											<DIV class="inputs"><INPUT class="reg_input1" id="passwd" type="password" maxLength="16" size="35" name="passwd">&nbsp;</DIV>
										</DIV>
										<DIV class="content">
											<DIV class="names"><SPAN class="color1"><FONT color="#ea3700">*</FONT></SPAN>&nbsp;确认密码：</DIV>
											<DIV class="inputs"><INPUT class="reg_input1" id="repasswd" type="password" maxLength="16" size="35" name="repasswd">&nbsp;</DIV>
										</DIV>
										<DIV class="content">
											<DIV class="names"><SPAN class="color1"><FONT color="#ea3700">*</FONT></SPAN>&nbsp;E-mail：</DIV>
											<DIV class="inputs"><INPUT class="reg_input1" id="mail" type="text" size="35" name="mail">&nbsp;</DIV>
										</DIV>
										<DIV class="content">
											<DIV class="names"><SPAN class="color1"><FONT color="#ea3700">*</FONT></SPAN>&nbsp;单位网址：</DIV>
											<DIV class="inputs"><INPUT class="reg_input1" id="url1" type="text" maxLength="255" size="35" value="http://"
													name="url1">&nbsp;</DIV>
										</DIV>
										<DIV class="content">
											<DIV class="names"></DIV>
											<DIV class="inputs"><INPUT type="submit" value="提交注册信息" name="Submit"> <INPUT type="hidden" value="cn_01" name="version"><!--注册接口版本号，请勿修改-->
												<INPUT type="hidden" value="wolanda" name="proxy"><!--代理商的管理帐号--> <INPUT type="hidden" value="utf-8" name="charset"><!--本页面页面编码-->
											</DIV>
										</DIV>
										<DIV class="content">
										<DIV class="names"></DIV>
											<DIV class="inputs"><FONT color="red">*注册后请将js代码粘贴到"管理"</FONT></DIV>											
										</DIV>
									</DIV>
								</DIV>
							</DIV>
						</TD>
					</TR>
					<TR>
						<TD style="PADDING-TOP: 40px" align="left" height="100">&nbsp;&nbsp;<IMG src="http://www.53kf.com/img/ver04/53kf_proxy_2.jpg" border="0"></TD>
					</TR>
				</TBODY>
			</TABLE>
		</FORM>		
	</body>
</HTML>
