function displayErrors(msg, fieldtofocus) {
	window.scrollTo(0, 0);
	var errmsg = '<span style="font-family:Arial;font-size:12px;"><b>The following errors were found</b>:<br /><ul type="circle">';

	if (msg && msg.length > 0) {		
		for (var i=0; i < msg.length; i++) {
			errmsg += "<li>" + msg[i] + "</li>\n";
		}
		errmsg += "</ul>Please click the 'Close' button and try again.</span>";

		jQuery.facebox(errmsg);		
	}
}

