Don't even use a function... Just do this:
CODE
<script type="text/javascript">
<!--
window.location = "http://www.xanga.com/signin.aspx"
//-->
</script>
And.. if you put that code in... it will immediately redirect the page, like the first script you provided does.