[jQuery] [jQuery UI]

[jQuery] [jQuery UI]


I'm getting the following error with the html snippet shown below.
doc.scrollTop is not a function
pTop = doc.scrollTop(), pLeft = doc.scrollLeft(),
the above from 'ui,dialog.js'
Can anyone help?
------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <script src="../lib/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/tags/
ui/latest/ui/ui.core.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/tags/
ui/latest/ui/ui.dialog.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/tags/
ui/latest/ui/ui.resizable.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/tags/
ui/latest/ui/ui.draggable.js"></script>
<script type="text/javascript">
function addDialogBox() {
var div = document.createElement('div');
div.innerHTML = "Here is a newly added div field";
div.id="newDiv"
var body = document.getElementsByTagName('body')[0];
body.appendChild(div);
$("#newDiv").dialog();
}
</script>
</head>
<body>
<input type='button' value='add dialogbox' onClick='addDialogBox()' />
</body>
</html>