function logScriptError(message, file, line)
{
	var project = "Twiddla Script Errors"
	var user = "jason kester"
	var email = "bugs@twiddla.com"
	var area = "Misc"
	
	if (message.indexOf("Error loading script") > -1)
	{
		// Don't bother sending script load errors.  Nothing we can do about them!
		return;
	}
	
	var title = "File: " + file + ", Line: " + line + " (SCRIPT ERROR)"
	if (line == 1)
	{
		title = message + ", File: " + file + ", Line: " + line + " (SCRIPT ERROR)"
	}
	var msg = message + "\r\nFile: " + file + "\r\nLine: " + line + "\r\n\r\nPage: " + location.href + "\r\n\r\n"

	
	for (key in navigator)
	{
		msg += key + ":" + navigator[key] + "\r\n";
	}

	var url = "http://bugs.expatsoftware.net/FogBUGZ/ScoutSubmit.asp"
			+ "?ScoutUserName=" + escape(user)
			+ "&ScoutProject=" + escape(project)
			+ "&ScoutArea=" + escape(area)
			+ "&ForceNewBug=0" 
			+ "&FriendlyResponse=1" 
			+ "&Description=" + escape(title)
			+ "&Email=" + email
			+ "&Category=Bug"
			+ "&ScoutDefaultMessage=Thanks." 
			+ "&Extra=" + escape(msg)

	//new Image().src = url;
	return true;
}
window.onerror=logScriptError;
