/*
 * Translated default me​​ssages for the jQuery validation plugin.
 * Locale: CN
 */

jQuery.extend(jQuery.validator.messages, 
{
    required: "This field is required",
    remote: "Please fix this field",
    email: "Please enter a valid email address",
    url: "Please enter a valid URL",
    date: "Please enter a valid date",
    dateISO: "Please enter a valid date (ISO)",
    number: "Please enter a valid number",
    digits: "Please enter only digits",
    creditcard: "Please enter a valid credit card number",
    equalTo: "Please enter the same value again",
    accept: "Please enter a value with a valid extension",
    maxlength: jQuery.validator.format("Please enter no more than {0} characters"),
    minlength: jQuery.validator.format("Please enter at least {0} characters"),
    rangelength: jQuery.validator.format("Please enter a value between {0} and {1} characters long"),
    range: jQuery.validator.format("Please enter a value between {0} and {1}"),
    max: jQuery.validator.format("Please enter a value less than or equal to {0}"),
    min: jQuery.validator.format("Please enter a value greater than or equal to {0}")
});

var tip_default_msg = 
{
    user_name: 'Examples: James, Coder.James',
    user_nick: 'Maximum of 16 characters in length',
    user_pw: 'Must have at least 6 characters',
    user_pw1: 'Must have at least 6 characters',
    user_email: 'This address is used to authenticate your account should you ever encounter problems or forget your password. <font color=red>Gmail is recommended, for other Email providers may block our Email.</font>'
};


var tip_user_less_char = 'Your username must be between {0} and {1} characters in length';
var tip_user_limit = 'Sorry, you may use only letters（A~Z , a~z）, numbers（0~9）and symbols（.-_）';
var tip_user_taken = 'Sorry, the username isn’t available';
var tip_user_not_exist = 'Username does not exist';

var tip_psw_limit = 'Password must be at least 6 characters. Alphanumerics only';
var tip_psw_err = 'Sorry, your password does not match. Please try again';

var tip_nick_err = 'Nickname cannot be left blank';
var tip_nick_tolen_err = 'Your nickname must be no more than 16 characters in length';

var tip_email_err = 'Please enter a valid email address to receive the notifications from Raidcall';

var tip_format_err = 'CAPTCHA test failed';
var tip_valid_err = 'CAPTCHA test failed';

var tip_terms_err = 'You must agree to the Terms of Use to complete sign up';


/*var tip_user_not_exist_r = 'Username does not exist, please sign up a Raidcall account';
 var tip_uname_be_true = 'You must enter a valid Username';
 var tip_signup_terms = 'You must have permission to use Raidcall';*/



//getcode.php
var tip_copy_html_code = 'HTML code copied';
var tip_copy_ubb_code = 'UBB code copied';

//invite.php
var tip_enter_server_id = 'Enter a voice group ID';
var tip_server_id_err = 'Invalid voice group ID';
var tip_server_not_exist = 'The voice group does not exist, please try again';
var tip_copy_suc = 'Copy Success';
var tip_mail_title_required = 'A subject is required';
var tip_invite_content_required ='The invitation message cannot be left blank';
var tip_invite_content_limit = 'The invitation message must be max of 140 characters';
var tip_your_name_required = 'Your name cannot be left blank';
var tip_invite_content_url = 'Invitation link(http://www.raidcall.com.tw/signup.php?sid=) must be included in the invitation message';
var tip_invite_mail_err = 'Must be a valid address';

//AJAX request url
var AjaxUrl = 
{
    invite: "api/getsinfo.php",
    username: "signup.php",
    validcode: "signup.php",
    getcode: "showcode.php"
};
