50% alpha effect in gif or png

i want to make a 50% alpha square. So that when i put in my website, the bg image can be shown partially through the square.

So, can anybody give me an advice on how to make this square in photoshop7?

Thanx!!