I need to redirect users to pages within my site based on their geo-location

This external script displays the users state....

<script language="Javascript" src="http://www.ip2phrase.com/ip2phrase.asp?template=<REGION>"</script>

Need to modify this to incorporate the value of REGION.

<script type="text/javascript">
<!--
window.location = "http://www.mysite.com/<How do put value of REGION here> "
//-->
</script>

Thanks alot