addOnResizeHandler = function(instance, method) {
    $addResizeHandler(scope, func);
}

removeOnResizeHandler = function(instance, method) {
    $removeResizeHandler(scope, func);
}

/******************************************************************************
*	// Exempel:
*	function MyClass(){
*		// Lägg till en function som ska hantera onResize
*		addOnResizeHandler(this, this.onResize);
*	}
*	MyClass.prototype.onResize = function(){
*		// Enkelt test för att se om den kallas.
*		alert("onResize was called!");
*	}
*******************************************************************************/

// Note that the object that is added has to have
addOnLoadHandler = function(instance, method) {
    $addLoadHandler(instance, method);
}

removeOnLoadHandler = function(instance, method) {
    $removeLoadHandler(instance, method);
}

/*********************************************************************
*	window.setTimeoutEx()
*		Utökad version av window.setTimeout
*		Denna version kan ta en klasspekare för att köra funktionen i
*		klassens scope.
**********************************************************************/
window.setTimeoutEx = function(instance, method, millisec, lang) {
    $setTimeout(instance, method, millisec, lang);
}
