<html>
<body>
<script>
//by Ryan Te
//9/25/07
var height;
var width;
height = prompt("What is the height of the rectangle?");
height = eval(height);
width = prompt("What is the width of the rectangle?");
width = eval(width);
var area = height * width;
var perimeter = height + width;
alert ("The area of the rectangle is " + area);
alert ("The perimeter of the rectangle is " + perimeter);
</script>
</body>
</html>