1) PROGRAMMER-DEFINED FUNCTION square (error)

<html><head><title>programmer-defined function square</title>
<script type=text/javascript>
var max,y;
max=window.prompt("What is the number?","10");
number= parseint(max);

document.writeln("<h3>square the numbers from 1 to" +maxnumber+ "</h3>");
document.writeln("<table>");
for (var x=1; x <= maxunmber; x++)
{
document.writeln("<td>The square of " +x+ " is " +square(x)+"</td>");
y=cube(x);
document.writeln("<td>The cube of " +x+ " is " +y+ " </td><tr>");
}
document.writeln("</table>");

function square (m)
{
return m*m;
}
function cube
{
return n*n*n;
}

</script>
</head>
<body>
</body></html>

وين الخطا يا شباب مبتدأ في الموضوع وشكرا