/*  
2007-09-27    WAB    added code so that multiple identical errors on same page don't all result in emails

*/

				function relayWareJSerrAlert(msg,errURL,line){

					var errURL2 = window.location;
					timeNow = new Date()

					if (lastError['msg'] == msg && lastError['errURL'] == errURL && lastError['line'] ==  line && (timeNow.getTime() - lastError['time'].getTime()) < 2000) {
						
						// this is an identical error reoccurring within a short space of time - do not bother to email
					
					} else {
			
						errImage = new Image();
						errImage.src = domainAndRoot + '/errorHandler/jsErrors.cfm?url=' + escape(errURL2) + '&msg=' + escape(msg) + '&line=' + line
				    }
		
					lastError['msg'] = msg
					lastError['errURL'] = errURL
					lastError['line'] = line
					lastError['time'] = timeNow

		
					return true;
				}

				window.onerror=relayWareJSerrAlert;
				// initialise array for tracking last error
				lastError = new Array()
				lastError['msg'] = ''
				lastError['errURL'] = ''
				lastError['line'] = ''
				lastError['time'] = new Date()

