<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Your Canvas</title>

<style type="text/css"><!--
#container { position: relative; }
#imageTemp { position: absolute; top: 1px; left: 1px; }
--></style>

</head>
<body>
<canvas id="imageView" width="600" height="500"></canvas>

<script type="text/javascript">
var canvas, context, canvaso, contexto;
canvaso = document.getElementById('imageView');
context = canvaso.getContext('2d');
context.lineWidth = 5;

context.strokeStyle = '#000000';
context.strokeRect(40, 43, 480, 296);

context.strokeStyle = '#000000';
context.strokeRect(119, 108, 460, 291);

context.strokeStyle = '#000000';
context.beginPath();
context.moveTo(41, 40);
context.lineTo(120, 108);
context.stroke();
context.closePath();

context.strokeStyle = '#000000';
context.beginPath();
context.moveTo(521, 42);
context.lineTo(577, 106);
context.stroke();
context.closePath();

context.strokeStyle = '#000000';
context.beginPath();
context.moveTo(38, 337);
context.lineTo(116, 398);
context.stroke();
context.closePath();

context.strokeStyle = '#000000';
context.beginPath();
context.moveTo(521, 338);
context.lineTo(576, 397);
context.stroke();
context.closePath();
</script>
</body>
</html>