<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312' />
<SCRIPT language=javascript>
var endline=1;
var headline=3;
 
function oderlist(getnum,getnum2)
{  

return getnum+getnum2;
}function w()
{  tableId.innerHTML ="答案是:"+oderlist(endline,headline);
}
</script>
</head><body bgcolor="#EBEBEB"><form method=post name=form2 action=''>
<div id=tableId></div>
<script language="javascript">
w(); 

</script></form>
</body>
</html>
 我的问题有两个,
1.修改oderlist函数,改为
function oderlist(getnum,getnum2)
{  

return getnum-getnum2;
}
2.改headline初始值为5
我知道C#可以wb.Document.Body.AppendChild(el),但修改JS还没有做过.
如何做到,请代码明示.