////============================================
//// expo06.js, 04/29/09, by ralph abraham
//// draw two lines, same color
//// expo06.js, by ralph abraham, 29 april, 2009

//// SETUP

	// wait for the browser to load
	window.onload = function() {
	// set up background basic template
		base00(); // draw entire canvas
	};
	
    // setup single white canvas
	function base00()  {
		var canvas = document.getElementById("canvas"); // only one canvas
		var ctx = canvas.getContext("2d");
		// setup whole rectangle (x0, y0, width, height)
		ctx.clearRect(0, 0, 320, 280);
 		ctx.fillStyle = "white"; //  white
 		ctx.fillRect (0, 0, 320, 280);
	};
	
	// action for tap event
	document.onclick = function(ev) { // may need mouseup
		var xnow = ev.clientX; // may need ev.X or ev.layerX, etc
  		var ynow = ev.clientY;
  		alert ("coords: (" + xnow + ", " + ynow + ")");
	};
    
////////// END ///////////