<!--//注册验证
	function checksignup() {

		var r1, r2, r3, r4
		r1 = new RegExp('[^A-Za-z0-9_]','');
		r2 = new RegExp('[^A-Za-z0-9^.^_^?^-]','');
		r3 = new RegExp('[^0-9]','');
		r4 = new RegExp('^13[0-9]{9}$|^15[0-9]{9}$|^18[0-9]{9}$','');
		
		if ( document.formreg.u_username.value == '' ) {
			window.alert('请输入用户名!');
			document.formreg.u_username.focus();
		}
		else if ( !isNaN(document.formreg.u_username.value.substr(0, 1)))
		{
			window.alert('用户名不能以数字开头!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.substr(0, 1) == '_' )
		{
			window.alert('用户名不能以下划线开头!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.search(r1) >= 0 ) {
			window.alert('用户名中含有非法字符!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.length < 5 ) {
			window.alert('用户名长度必须为5-20位,您输入的用户名小于5位!');
			document.formreg.u_username.select();
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.length > 20 ) {
			window.alert('用户名长度必须为5-20位，您输入的用户名大于20位!');
			document.formreg.u_username.select();
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_password.value == '' ) {
			window.alert('请输入密码!');
			document.formreg.u_password.focus();
		}
		else if ( document.formreg.u_password.value.length < 6 ) {
			window.alert('密码长度必须为6-20位，您输入的密码小于6位!');
			document.formreg.u_password.select();
			document.formreg.u_password.focus();
		}
		else if ( document.formreg.u_password.value.length > 20 ) {
			window.alert('密码长度必须为6-20位，您输入的密码大于20位!');
			document.formreg.u_password.select();
			document.formreg.u_password.focus();
		}
		//modi by lisy 2007-05-18
		else if ( document.formreg.u_password.value.search(r2) >= 0 ) {
			window.alert('密码中含有非法字符');
			document.formreg.u_password.select();
			document.formreg.u_password.focus();
		}
		else if ( document.formreg.u_repassword.value != document.formreg.u_password.value) {
			window.alert('确认密码错误!');
			document.formreg.u_repassword.select();
			document.formreg.u_repassword.focus();
		}

		else if ( document.formreg.u_question.value == '' ) {
			window.alert('请输入密码提示问题1!');
			document.formreg.u_question.focus();
		}		
		else if ( document.formreg.u_question.value.length < 6 ) {
			window.alert('问题长度6-30位，您输入的 密码提示问题 小于6位!');
			document.formreg.u_question.select();
			document.formreg.u_question.focus();
		}
		else if ( document.formreg.u_question.value.length > 30 ) {
			window.alert('问题长度6-30位，您输入的 密码提示问题 大于30位!');
			document.formreg.u_question.select();
			document.formreg.u_question.focus();
		}
		else if ( document.formreg.u_answer.value == '' ) {
			window.alert('请输入密码问题答案!');
			document.formreg.u_answer.focus();
		}		
		else if ( document.formreg.u_answer.value.length < 6 ) {
			window.alert('答案长度6-30位，您输入的 密码问题答案 小于6位!');
			document.formreg.u_answer.select();
			document.formreg.u_answer.focus();
		}
		else if ( document.formreg.u_answer.value.length > 30 ) {
			window.alert('答案长度6-30位，您输入的 密码问题答案 大于30位!');
			document.formreg.u_answer.select();
			document.formreg.u_answer.focus();
		}

		//end by lisy 2007-05-18
		else if ( document.formreg.u_name.value == '' ) {
			window.alert('请输入您的姓名!');
			document.formreg.u_name.focus();
		}	
		else if ( document.formreg.u_name.value.length > 10 ) {
			window.alert('您的昵称不能大于10位!');
			document.formreg.u_name.select();
			document.formreg.u_name.focus();
		}
		else if ( !isValidEmail(document.formreg.u_mail.value)) {
			window.alert('请重新输入正确的电子邮件地址!');
			document.formreg.u_mail.focus();
		}
		else if ( document.formreg.u_tel.value == '' ) {
			window.alert('请输入您的电话!');
			document.formreg.u_tel.focus();
		}
		else if ( !r4.test(document.formreg.u_tel.value)) {
			window.alert('手机号码不正确!!');
			document.formreg.u_tel.focus();
		}
		else if ( document.formreg.u_address.value == '' ) {
			window.alert('请输入您的地址!!');
			document.formreg.u_address.focus();
		}
		else if ( document.formreg.u_post.value == '' ) {
			window.alert('请输入邮政编码!');
			document.formreg.u_post.focus();
		}
		else {
			return true;
			}
		return false;

	}
//-->
<!--//找回密码
	function repass1() {

		var r1, r2, r3, r4
		r1 = new RegExp('[^A-Za-z0-9_]','');
		r2 = new RegExp('[^A-Za-z0-9^.^_^?^-]','');
		r3 = new RegExp('[^0-9]','');
		r4 = new RegExp('^13[0-9]{9}$|^15[0-9]{9}$|^18[0-9]{9}$','');
		
		if ( document.formreg.u_username.value == '' ) {
			window.alert('请输入用户名!');
			document.formreg.u_username.focus();
		}
		else if ( !isNaN(document.formreg.u_username.value.substr(0, 1)))
		{
			window.alert('用户名不能以数字开头!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.substr(0, 1) == '_' )
		{
			window.alert('用户名不能以下划线开头!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.search(r1) >= 0 ) {
			window.alert('用户名中含有非法字符!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.length < 5 ) {
			window.alert('用户名长度必须为5-20位,您输入的用户名小于5位!');
			document.formreg.u_username.select();
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.length > 20 ) {
			window.alert('用户名长度必须为5-20位，您输入的用户名大于20位!');
			document.formreg.u_username.select();
			document.formreg.u_username.focus();
		}
		else {
			return true;
			}
		return false;

	}
//-->
	function repass2() {

		var r1, r2, r3, r4
		r1 = new RegExp('[^A-Za-z0-9_]','');
		r2 = new RegExp('[^A-Za-z0-9^.^_^?^-]','');
		r3 = new RegExp('[^0-9]','');
		r4 = new RegExp('^13[0-9]{9}$|^15[0-9]{9}$|^18[0-9]{9}$','');
		
		if ( document.formreg.u_username.value == '' ) {
			window.alert('请输入用户名!');
			document.formreg.u_username.focus();
		}
		else if ( !isNaN(document.formreg.u_username.value.substr(0, 1)))
		{
			window.alert('用户名不能以数字开头!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.substr(0, 1) == '_' )
		{
			window.alert('用户名不能以下划线开头!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.search(r1) >= 0 ) {
			window.alert('用户名中含有非法字符!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.length < 5 ) {
			window.alert('用户名长度必须为5-20位,您输入的用户名小于5位!');
			document.formreg.u_username.select();
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.length > 20 ) {
			window.alert('用户名长度必须为5-20位，您输入的用户名大于20位!');
			document.formreg.u_username.select();
			document.formreg.u_username.focus();
		}
		//-----------------------------------------------问题答案
		else if (formreg.a.value != "" && formreg.u_answer.value == '') {
				window.alert('请输入密码问题答案!');
				document.formreg.u_answer.focus();
		}
		else if ( document.formreg.u_answer.value.length < 6 ) {
			window.alert('答案长度6-30位，您输入的 密码问题答案 小于6位!');
			document.formreg.u_answer.select();
			document.formreg.u_answer.focus();
		}
		else if ( document.formreg.u_answer.value.length > 30 ) {
			window.alert('答案长度6-30位，您输入的 密码问题答案 大于30位!');
			document.formreg.u_answer.select();
			document.formreg.u_answer.focus();
		}
		else {
			return true;
			}
		return false;

	}
//-->

	function repass3() {

		var r1, r2, r3, r4
		r1 = new RegExp('[^A-Za-z0-9_]','');
		r2 = new RegExp('[^A-Za-z0-9^.^_^?^-]','');
		r3 = new RegExp('[^0-9]','');
		r4 = new RegExp('^13[0-9]{9}$|^15[0-9]{9}$|^18[0-9]{9}$','');
		
		if ( document.formreg.u_username.value == '' ) {
			window.alert('请输入用户名!');
			document.formreg.u_username.focus();
		}
		else if ( !isNaN(document.formreg.u_username.value.substr(0, 1)))
		{
			window.alert('用户名不能以数字开头!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.substr(0, 1) == '_' )
		{
			window.alert('用户名不能以下划线开头!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.search(r1) >= 0 ) {
			window.alert('用户名中含有非法字符!');
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.length < 5 ) {
			window.alert('用户名长度必须为5-20位,您输入的用户名小于5位!');
			document.formreg.u_username.select();
			document.formreg.u_username.focus();
		}
		else if ( document.formreg.u_username.value.length > 20 ) {
			window.alert('用户名长度必须为5-20位，您输入的用户名大于20位!');
			document.formreg.u_username.select();
			document.formreg.u_username.focus();
		}
		//-----------------------------------------------问题答案
		else if (formreg.a.value != "" && formreg.u_answer.value == '') {
				window.alert('请输入密码问题答案!');
				document.formreg.u_answer.focus();
		}
		else if ( document.formreg.u_answer.value.length < 6 ) {
			window.alert('答案长度6-30位，您输入的 密码问题答案 小于6位!');
			document.formreg.u_answer.select();
			document.formreg.u_answer.focus();
		}
		else if ( document.formreg.u_answer.value.length > 30 ) {
			window.alert('答案长度6-30位，您输入的 密码问题答案 大于30位!');
			document.formreg.u_answer.select();
			document.formreg.u_answer.focus();
		}
		//-----------------------------------------------修改密码
		else if (formreg.b.value != "" && formreg.u_password.value.length < 4 ) {
				window.alert('新密码长度必须为4-20位，限用数字、英文字母及其组合，字母区分大小写。');
				formreg.u_password.select();
				formreg.u_password.focus();
		}
		
		else if (formreg.u_password.value != "" && formreg.u_password.value.search(r2) >= 0 ) {
			window.alert('新密码长度必须为4-20位，限用数字、英文字母及其组合，字母区分大小写。');
			formreg.u_password.select();
			formreg.u_password.focus();
		}
		else if (formreg.u_repassword.value != formreg.u_password.value) {
			window.alert('确认密码错误。');
			formreg.u_repassword.select();
			formreg.u_repassword.focus();
		}
		else {
			return true;
			}
		return false;

	}
//-->
<!--//会员登陆
	function userlogin() {

		var r1, r2, r3, r4
		r1 = new RegExp('[^A-Za-z0-9_]','');
		r2 = new RegExp('[^A-Za-z0-9^.^_^?^-]','');
		r3 = new RegExp('[^0-9]','');
		r4 = new RegExp('^13[0-9]{9}$|^15[0-9]{9}$|^18[0-9]{9}$','');
		
		if ( document.login.u_username.value == '' ) {
			window.alert('请输入用户名!');
			document.login.u_username.focus();
		}
		else if ( !isNaN(document.login.u_username.value.substr(0, 1)))
		{
			window.alert('用户名不能以数字开头!');
			document.login.u_username.focus();
		}
		else if ( document.login.u_username.value.substr(0, 1) == '_' )
		{
			window.alert('用户名不能以下划线开头!');
			document.login.u_username.focus();
		}
		else if ( document.login.u_username.value.search(r1) >= 0 ) {
			window.alert('用户名中含有非法字符!');
			document.login.u_username.focus();
		}
		else if ( document.login.u_username.value.length < 5 ) {
			window.alert('用户名长度必须为5-20位,您输入的用户名小于5位!');
			document.login.u_username.select();
			document.login.u_username.focus();
		}
		else if ( document.login.u_username.value.length > 20 ) {
			window.alert('用户名长度必须为5-20位，您输入的用户名大于20位!');
			document.login.u_username.select();
			document.login.u_username.focus();
		}
		else if ( document.login.u_password.value == '' ) {
			window.alert('请输入密码!');
			document.login.u_password.focus();
		}
		else if ( document.login.u_password.value.length < 6 ) {
			window.alert('密码长度必须为6-20位，您输入的密码小于6位!');
			document.login.u_password.select();
			document.login.u_password.focus();
		}
		else if ( document.login.u_password.value.length > 20 ) {
			window.alert('密码长度必须为6-20位，您输入的密码大于20位!');
			document.login.u_password.select();
			document.login.u_password.focus();
		}
		//modi by lisy 2007-05-18
		else if ( document.login.u_password.value.search(r2) >= 0 ) {
			window.alert('密码中含有非法字符');
			document.login.u_password.select();
			document.login.u_password.focus();
		}

		else {
			document.getElementById('login').submit();
			return true;
			}
		return false;

	}
//-->

