I have a button called LOOKUP, which when clicked calls a client side function that increments the nLookUp by 1 and then should open the target URL in new window. How can i accomplist this from cllient side scripting?

<script language="javascript">
<!--

var nLookUp = 0

function DoLookUp(){
nLookUp++;
location.href = "target URL";
}
//-->
</script>

Here location.href will open the target URL in the same window.