<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="/xslt/main.xsl"?>	<page pid='/user/'>
		<content><rawhtml>
		<script type="text/javascript">
function myInit1(){
	var tg = queryString('func');
	showcontent("/user/tpl/"+tg+".xml" , 'uform', autofill );
}
function autofill(){
	hide_display('msgbox');
	show_display('uform');
	//email
	var obt = fetch_object('actcodeid');
	if (obt &amp;&amp; queryString('acode') ){obt.value = queryString('acode');	obt.readOnly = 1;}
	obt = fetch_object('uemail');
	if (obt &amp;&amp; queryString('email') ){obt.value = queryString('email');	obt.readOnly = 1;}
	
	var treff = queryString('reff');
	obt = fetch_object('lreff');
	if (treff &amp;&amp; obt ){
		obt.value = treff;
	}
}
function chkumail(){
	var obt = fetch_object('uemail');
	if (obt.value){
		show_display('msgbox');
		showcontent( "uvalid.php?email="+encodeURIComponent(obt.value) , 'idmsgbody');
	}else{
		alert('请填写您的Email');
	}
}

function chkuname(){
	var obt = fetch_object('uname');
	if (obt.value){
		show_display('msgbox');
		showcontent( "uvalid.php?uname="+encodeURIComponent(obt.value) , 'idmsgbody');
	}else{
		alert('请填写昵称');
	}
}

function verify_reg(formobj){
	var obt;
	
	 obt = fobj('uemail');
	if (obt){ if (!obt.value) {alert('请填写Email'); return false;}	}
	
	obt = fobj('uname');
	if (obt){ if (!obt.value) {alert('请填写昵称');return false;}	if (obt.value.length &lt; 3){alert('昵称至少3个字符');return false;}}
	
	var pw1 = fobj('passwd1');
	if (pw1){ if (!pw1.value) {alert('请填写密码');return false;}	if (pw1.value.length &lt; 6){alert('密码至少6个字符');return false;}}
	
	var pw2 = fobj('passwd2');
	if (pw2){ if (!pw2.value || pw2.value != pw1.value) {alert('两次输入的密码不一致');return false;}	}
	
	obt = fobj('actcodeid');
	if (obt){ if (!obt.value) {alert('请填写激活码'); return false;}	}
	
	obt = fobj('vcodeid');
	if (obt){ if (!obt.value) {alert('请填写验证码'); return false;}	}
	
	
	formobj.submit();
	return false;
}

</script>
<div id='uform' class="simplehidden"></div>
<br/>
<center id='msgbox'><div class='msgmain'>
		<div class='msgtitle' >消息
		</div>
		<div class='msgbody' id='idmsgbody'>请稍等...
		</div>
		</div></center>
		</rawhtml>
		</content>
	</page>