﻿//***************************************************************************************
//This function finds if a form has returned an error message if it has it will focus to it.
error = function errorFocus()
{
	//NOTE: First check we actually have our error div.
	if(!getElement("formError")) return;
	window.location.href = window.location.href + "#formError";
	return;
}
//Automatically append this argiment to the onload event for the page.
if (window.attachEvent) window.attachEvent("onload", error)
else window.onload = error;
//***************************************************************************************

