var UserRegister = new function() {this.location = "modules/user_register/UserRegister.ajax.php"; this.reg = function(email, pwd, captcha, inviteUID, regCode){var arrParams = [email, pwd, captcha, inviteUID, regCode].join( String.fromCharCode( 3 ) );var data = "lang=default&loc="+this.location+"&met=reg¶ms="+arrParams;$.ajax({type: "POST", url: "index.php?ajax=invoke",contentType: "application/x-www-form-urlencoded;charset=utf-8",data: data,async: true,cache: false,success: function(data, statusText, jqXHR){if(typeof UserRegister_callback_reg == "function"){ UserRegister_callback_reg( { returnVal:$.trim(data), success:true, status:jqXHR.status, statusText:statusText} );}},error: function( jqXHR, statusText, thrownError ){if(typeof UserRegister_callback_reg == "function"){ UserRegister_callback_reg( {returnVal:null, success:false, status:jqXHR.status, statusText:statusText} );}}});}}