﻿if (!window.twoFunctions)
	window.twoFunctions = {};

twoFunctions.Page = function() 
{
}

twoFunctions.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		myButton = this.control.content.findName("button");
		
		// Event hookups:	
		myButton.addEventListener("MouseLeftButtonDown", function1);
		myButton.addEventListener("MouseLeftButtonDown", function2);	
	
	}
	
}



// Event handlers
function function1(sender, eventArgs) {
	alert("Function 1.");
}

function function2(sender, eventArgs) {
	alert("Function 2.");
}
