onerror=handleErr;
//on a javascript error call this function with optional alert message

function handleErr(msg,url,l){
	// IF NEEDED YOU MAY USE THE FOLLOWING
	//msg is the error message
	// url is the page the error is on
	// l is the line number
	txt="Sorry, there was a script error on this page.\n\n";
	txt+="Error: " + msg + "\n";
	txt+="URL: " + url + "\n";
	txt+="Line: " + l + "\n\n";
	txt+="Click OK to continue.\n\n";
	alert(txt);
	return true;

}

