<p>I want to create a draggable and resizable window in JavaScript for cross browser use, but I want to try and avoid using a framework if I can.</p>

<p>Has anyone got a link or some code that I can use?</p>

Avoiding a framework altogether will leave you with lots of code and a bunch of tedious browser-testing.
If you would consider a framework I'd suggest jQuery with the
jqDnR
plugin. I think it will solve your problem or perhaps you could combine the functionality of the
jQuery draggables
with the
jQuery resizables