just calling it in the head will not work.
you would need to call it as a part of a button action such as the onClick event.
this is why my sample had the open window function as part of a button onclick event.
but the key is the onclick event.
there are many sites that will give you examples of creating a function using windpow.open andd tying it to a buttons onclick.