jQuery.extend(jQuery.validator.messages, {
		username: "Username can contain letters and digits only.",
		username_no_exists: "Username is not exist.",
		zip3: "Your zip code is not correct!",
		required: '',
		remote: "Please fix this field.",
		email: "Please enter a valid email address.",
		email_repeat: "You have already registered with the email account. All you need to do is to login and edit profile. You can request the password at the login area.",
		url: "Please enter a valid URL.",
        name_in_email : "email address same as username.",
		birthday: "Please enter a valid birthday.",
		date: "Please enter a valid date.",
		dateISO: "Please enter a valid date (ISO).",
		dateDE: "Bitte geben Sie ein gültiges Datum ein.",
		number: "Please enter a valid number.",
		numberDE: "Bitte geben Sie eine Nummer ein.",
		digits: "Please enter only digits",
		creditcard: "Please enter a valid credit card.",
		equalTo: "Please enter the same value again.",
		accept: "Please enter a value with a valid extension.",
		maxlength: jQuery.format("Please enter no more than {0} characters."),
		minlength: jQuery.format("Please enter at least {0} characters."),
		rangelength: jQuery.format("Please enter a value between {0} and {1} characters long."),
		rangeValue: jQuery.format("Please enter a value between {0} and {1}."),
		range: jQuery.format("Please enter a value between {0} and {1}."),
		maxValue: jQuery.format("Please enter a value less than or equal to {0}."),
		max: jQuery.format("Please enter a value less than or equal to {0}."),
		minValue: jQuery.format("Please enter a value greater than or equal to {0}."),
		min: jQuery.format("Please enter a value greater than or equal to {0}."),
		lessThanTo: jQuery.format("Please enter a value less than {0}."),
		greaterThanTo: jQuery.format("Please enter a value greater than {0}.")
});
function clickOnceForm(f){
    f.value='please wait...';
    f.disabled=true;
}
function on_search_focus(obj) {
    if(obj.value == 'username, title') {
        obj.style.color='#000000';
        obj.value='';
    }
}

function on_search_blur(obj) {
  if (obj.value == '') {
        obj.style.color='#818181';
        obj.value = 'username, title';
  }
}

