Tooltip.init([
{
id:"memberid",
tripTemplate:RS_JS_MemberID_Notic,
refPoint:"memberid",
validArray:[
{t:ValidType.Require,e:RS_JS_MemberID_Reuqirment},
{t:ValidType.MinRang,r:6,e:RS_JS_Member_MaxLength},
{t:ValidType.MaxRang,r:20,e:RS_JS_Member_MaxLength},
{t:ValidType.Regex,r:/[\u4e00-\u9fa5]+/,v:false,e:RS_JS_NotChineseCode},
{t:ValidType.Regex,r:/^[a-zA-Z0-9_-]*$/,v:true,e:RS_JS_Normal_Error},
{t:ValidType.Ajax,r:function (Sv,context){
return Boolean.parse(Ajax_Register_Page.Exits("ME",$get("memberid").value.trim()).value+"");
},e:RS_JS_MemberID_Exist}
],
getValue:function ()
{
	return document.getElementById(this.EL.id).value;
},
tripEvent:["onclick","onfocus"],
validEvent:["onblur"]
},
{
id:"password",
tripTemplate:RS_JS_Password_Notic,
refPoint:"password",
validArray:[
{t:ValidType.Require,e:RS_JS_Password_Reuqirment},
{t:ValidType.MinRang,r:6,e:RS_JS_Password_MinOrMaxLength},
{t:ValidType.MaxRang,r:20,e:RS_JS_Password_MinOrMaxLength},
{t:ValidType.Regex,r:/^[a-zA-Z0-9_-]{6,20}$/,v:true,e:RS_JS_Normal_Error},
{t:ValidType.Customers,r:function (Sv){
var t = document.getElementById("memberid");
if(typeof(t) == "undefined")
    return false;
if(t.value.trim() != Sv) 
    return true;
return false;
},e:RS_JS_Password_DontEqualID}
],
getValue:function ()
{
	return document.getElementById(this.EL.id).value;
},
tripEvent:["onclick","onfocus"],
validEvent:["onblur"]
},
{
id:"confirm",
tripTemplate:RS_JS_Confirm_Notice,
refPoint:"confirm",
validArray:[
{t:ValidType.Require,e:RS_JS_Confirm_Reuqire},
{t:ValidType.SameForControl,r:function (){
return document.getElementById("password").value;
},e:RS_JS_Confirm_Error}
],
getValue:function ()
{
	return document.getElementById(this.EL.id).value;
},
tripEvent:["onclick","onfocus"],
validEvent:["onblur"]
},
{
id:"fname",
tripTemplate:"",
refPoint:"lname",
validArray:[
{t:ValidType.Require,e:RS_JS_FirstName_Reuqirment}
,{t:ValidType.Regex,r:/[\u4e00-\u9fa5]+/,v:false,e:RS_JS_NotChineseCode}
],
getValue:function ()
{
	return document.getElementById(this.EL.id).value;
},
tripEvent:["onclick","onfocus"],
validEvent:["onblur"],
isTrip:false
},
{
id:"lname",
tripTemplate:"",
refPoint:"lname",
validArray:[
{t:ValidType.Require,e:RS_JS_LastName_Reuqirment},
{t:ValidType.Regex,r:/[\u4e00-\u9fa5]+/,v:false,e:RS_JS_NotChineseCode}
],
getValue:function ()
{
	return document.getElementById(this.EL.id).value;
},
tripEvent:["onclick","onfocus"],
validEvent:["onblur"],
isTrip:false
},
{
id:"mail",
tripTemplate:RS_JS_Mail_Notice,
refPoint:"mail",
validArray:[
{t:ValidType.Require,e:RS_JS_Mail_Requirment},
{t:ValidType.Regex,r:/^[_a-zA-Z0-9\-]+(\.[_a-zA-Z0-9\-]*)*@[a-zA-Z0-9\-]+([\.][a-zA-Z0-9\-]+)+$/,v:true,e:RS_Js_Mail_Valid},
{t:ValidType.Ajax,r:function (Sv,context){

return Boolean.parse(Ajax_Register_Page.Exits("EL",$get("mail").value.trim()).value+"");
},e:RS_JS_Email_Exist}


],
getValue:function ()
{
	return document.getElementById(this.EL.id).value;
},
tripEvent:["onclick","onfocus"],
validEvent:["onblur"]
},
{
id:"vCode",
tripTemplate:"",
refPoint:"vCode",
validArray:[
{t:ValidType.Require,e:RS_Js_VCODE_Requirment}
],
getValue:function ()
{
	return document.getElementById(this.EL.id).value;
},
tripEvent:["onclick","onfocus"],
validEvent:["onblur"],
isTrip:false,
ost:0,
let:120
}
]);
$addHandler($get('fname'),"keyup",OneCharToUpper);
$addHandler($get('lname'),"keyup",OneCharToUpper);
function OneCharToUpper()
{
    var One = this.value.trim().charAt(0).toString().toLocaleUpperCase();
    var slice = "";
    if(this.value.trim().length>1)
         slice = this.value.slice(1);
    this.value = One+slice;
}