başka bir form koymamım sebebi bir form içinde olmasından dolayı.
Evet en son verdiğiniz örnek güzel oldu ellerinize sağlık.

popup class ile çalıştırmaya çalıştırdıgımda hata veriyor.

popup classım head tagı içiersinde

<script type="text/javascript">
function doPopups() {

  if (!document.getElementsByTagName) return false;

  var links=document.getElementsByTagName("a");

  for (var i=0; i < links.length; i++) {

    if (links[i].className.match("popup")) {

      links[i].onclick=function() {

        // Below - to open a full-sized window, just use: window.open(this.href);

        window.open(this.href, "", "top=10,left=10,width=1024,height=768,scrollbars");

        return false;

      }

    }

  }

}

window.onload=doPopups;


</script>