[code]<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<title>Triangle Sum</title>
<style type=”text/css”>
p { margin-left:10px}
</style>
</head>
<body>
<form id=”triform”>
<fieldset>
<legend>Triangle Sum</legend>
<p>
<input type=”text” id=”one” name=”one” value=”Side One” /><br />
<input type=”text” id=”two” name=”two” value=”Side Two” /><br />
<input type=”text” id=”three” name=”three” value=”Side Three” /></p><br />
</fieldset><p>
<input type=”button” value=”Sum?” onclick=”TriangleCheck()”>
<input type=”reset” /></p>
</form>
<script type=”text/javascript”>
//[[CDATA[
function TriangleCheck(){
var sideone;
sideone = document.getElementById(“triform”).one.value;
var evalone;
evalone = eval(“sideone”);
var sidetwo;
sidetwo = document.getElementById(“triform”).two.value;
var evaltwo;
evalone = eval(“sidetwo”);
var sidethree;
sidethree = document.getElementById(“triform”).three.value;
var evalthree;
evalone = eval(“sidethree”);
if ((evalone + evaltwo < evalthree)||(evalone + evalthree < evaltwo)||(evalthree + evaltwo <
evalone)){
{
alert(‘The sum of the two sides is less than the third side’);
}
else
{
var sum;
sum = (evalone + evaltwo + evalthree);
alert(‘The sum of the triangle is ‘ + sum);
}
}
//]>>
</script>
</body>
</html>
I cant see it …