var viewArg          = window; 
var viewArg          = aWindow; 
function sendMouseEvent(aEvent, aTarget) {  if (['click', 'mousedown', 'mouseup', 'mouseover', 'mouseout'].indexOf(aEvent.type) == -1) {    throw new Error("sendMouseEvent doesn't know about event type '"+aEvent.type+"'");  }  // For events to trigger the UA's default actions they need to be "trusted"  netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserWrite');  var event = document.createEvent('MouseEvent');  var typeArg          = aEvent.type;  var canBubbleArg     = true;  var cancelableArg    = true;  var viewArg          = window;  var detailArg        = aEvent.detail        || (aEvent.type == 'click'     ||                                                  aEvent.type == 'mousedown' ||                                                  aEvent.type == 'mouseup' ? 1 : 0);  var screenXArg       = aEvent.screenX       || 0;  var screenYArg       = aEvent.screenY       || 0;  var clientXArg       = aEvent.clientX       || 0;  var clientYArg       = aEvent.clientY       || 0;  var ctrlKeyArg       = aEvent.ctrlKey       || false;  var altKeyArg        = aEvent.altKey        || false;  var shiftKeyArg      = aEvent.shiftKey      || false;  var metaKeyArg       = aEvent.metaKey       || false;  var buttonArg        = aEvent.button        || 0;  var relatedTargetArg = aEvent.relatedTarget || null;  event.initMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg,                       screenXArg, screenYArg, clientXArg, clientYArg,                       ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg,                       buttonArg, relatedTargetArg);  document.getElementById(aTarget).dispatchEvent(event);}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/1b9adf5c627866ba415456a5292b67b295105f00/EventUtils.js/buggy/testing/mochitest/tests/SimpleTest/EventUtils.js