oldActionArray = new Array();
function crossBrowserAttachEvent( target , eventType , action ){
	if( action instanceof Function ){
		if( target.attachEvent ){
			target.attachEvent( eventType,action );
		}else if( target.addEventListener ){
			eventType = eventType.replace(/on/,'');
			target.addEventListener( eventType , action , false );
		}
	}else{
		if( typeof target[eventType] != "undefined" && typeof target[eventType] != null  && typeof target[eventType] != 'null' && target[eventType] != null){
			oldActionArray[oldActionArray.length] = target[eventType];
			eval('target[eventType] = function(e){ oldActionArray['+(oldActionArray.length-1)+']();'+action+'}');
		}else if( action != null && action!='null' ){
			eval('target[eventType] = function(e){ '+action+' }');
		}
	}		
}

function windowStopLoading( ){
	try{
		window.stop();
	}catch(e){
		document.execCommand('Stop');
	}
}