function validateError(error, element) {
	var p = element.parent();
	if (!p) {
		return;
	}
	var times = 0;
	while (1) {
		if (p.is("td") || p.is("div") || p.is("p")) {
			break;
		}
		if (times > 5) {
			break;
		}
		p = p.parent();
		times ++;
	}
	var errorElement = p.find("span.error");
	if (errorElement) {
		errorElement.html(error);
	}
}

$(function () {
	var backBtn = $("input.go");
	if (backBtn.length > 0) {
		backBtn.click(function () {
			window.location = $(this).attr("go");
		});
	}
});