+ image_serialize += " polyline"
+ image.beginPath()
+ draw(x, y)
+}
+function drawstop() {
+ mouse = 0
+ image.closePath()
+ //dbg.innerHTML = image_serialize
+ data.value = image_serialize
+}
+
+window.addEventListener( 'mouseup', function() { drawstop() } )
+canvas.addEventListener( 'mousedown', function(e) { drawstart(e.clientX, e.clientY) } )
+canvas.addEventListener( 'mousemove', function(e) { draw(e.clientX, e.clientY) } )