I saw a question in the newsgroups about this and I thought I would post about it right quick; "how do you manually set focus with javascript". Using .Net it's easy, you simply call .Focus() on a server control:
this.LinkButton1.Focus();
But if you have to do it from script within a page itself, you do it this way:
<html id="total" xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body id="Body" onload="
document.form1.Text2.focus();">
<form id="form1" runat="server" style="width:1000px;height:1000px;" >
<div >
<input id="Text1" type="text" /><input id="Text2" type="text"/>
</div>
</form>
</body>
</html>
Notice the onload event within the body. This will effectively focus the cursor within Text2. Obviously you don't have to limit it to the body onload event, you can do it from any event or any script; I just did it there from my example.
Easy as cake.