function doError(a1,a2,a3) {
//	window.alert("Got an error! - " + a1 + " " + a2 + " " + a3);
	if (!(gbLoaded)) {
		return;
	}	
	window.event.cancelBubble = true;
	window.alert(a1 + "," + a2 + "," + a3);
	var str = "";
	var d = new Date();
	var date;
	var time;
	date = (d.getMonth() + 1) + "/";
	date += d.getDate() + "/";
	date += d.getYear();
	time = d.getHours() + ":";
	time += d.getMinutes() + ":";
	time += d.getSeconds();
//	window.alert("Yes!");
	str += "<TITLE>DGS Notification (an error has occurred)</TITLE>";
	str += "<FONT FACE='Verdana, Arial, Helvetica'><FONT COLOR=darkred SIZE=+1>";
	str += "<B>We Need Your Help!</B></FONT>";
	str += "<FONT SIZE=-1><BR>An error occurred while processing this page.";
	str += "<P>To help us identify and correct the problem, please press the 'Submit Error Information' button ";
	str += "below which will create a mail message with the error information for you to send to our web master.<br>"
	str += "Any information about what you may have observed may be added to the message."
	str += "<p>Thank you for your assistance.</p>";
	str += "<FORM ACTION=\"mailto:dgs@dgsnet.com&subject=Error Notification&body=MESSAGE=" +
								a1 + " (URL=" + a2 + ") (LINE=" + a3 + ") (DATE=" + date + ") (TIME=" + time +
								")\" METHOD=GET>";
//								a1 + " (URL=" + a2 + ") (LINE=" + a3 + ")\" METHOD=GET>";
//	str += "Error Description:<BR><TEXTAREA NAME=desc ROWS=5 COLS=30></TEXTAREA>";
//	str += "<BR>E-Mail (optional)<BR><INPUT NAME=email SIZE=30>";
	str += "<INPUT TYPE=hidden name=error VALUE=\"" + a1 + "\">";
	str += "<INPUT TYPE=hidden name=file VALUE=\"" + a2 + "\">";
	str += "<INPUT TYPE=hidden name=line VALUE=\"" + a3 + "\">";
	str += "<P><INPUT TYPE=SUBMIT VALUE=\"Submit Error Information\">";
	str += "</FORM></FONT></FONT>";
	var w = window.open("","","width=600,height=250");
	var d = w.document;
	d.open();
	d.write(str);
	d.close();
	return true;
}
window.onerror = doError;
