function focusField(field, defaultvalue) {
	if (field.value == defaultvalue)
		field.value = '';
}

function blurField(field, defaultvalue) {
	if (field.value=='')
		field.value = defaultvalue;
}

jQuery.fn.center = function () {
    this.css("position","absolute");
    this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px");
    this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px");
    return this;
}

$(document).ready(function() {
	$("#err").height(300)
	.center()
	.height('auto');
	$("#err").fadeIn(800);
	
});
