/*******************************************************************************
 *	Page Errors
 *******************************************************************************/

function clearPageErrors() {
	$('#errors-here').empty();
	$('#error-container').hide();
}

function pageError(err) {
	var txtErr = "";
	if (typeof(err) == 'object') {
		for (var e in err) {
			txtErr += '<br>' + err[e];
		}
		if (txtErr.length > 0) {
			txtErr = txtErr.substring(4, txtErr.length);
		}
	}
	$('#errors-here').html(txtErr);
	$('#error-container').show();
}
