function initClear()
{
	_inp = document.getElementsByTagName("input");
	for (i=0; i<_inp.length; i++)
	{
		if (_inp[i].type == "text")
		{
			_inp[i]._default = _inp[i].value;
			_inp[i].onfocus = function()
			{
				if (this.value == this._default)
				{
					this.value = "";
				}
			}
			_inp[i].onblur = function()
			{
				if (this.value == "")
				{
					this.value = this._default;
				}
			}
		}
	}
}
$(document).ready(function(){
    initClear();
    $(document).ajaxError(function (e, xhr, settings, exception) {
        //alert('Sorry, an error has occurred in: ' + settings.url);
    });
});

