Hi All

This is my first site, I have found what I thought I was looking for in a popup javascript code.(just apply a class to make the links popups)

However when I test my site the popups come up as blank webpages. The links work fine without the code, and fine when you right click-open in new tab. I'll post the javascript I'm using.

//initialize the 3 popup css class names - create more if needed
var matchClass=['popup1','popup2','popup3','fetishList'];
//Set your 3 basic sizes and other options for the class names above - create more if needed
var popup1 = 'width=400,height=300,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=20,top=2 0';
var popup3 = 'width=1000,height=750,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=20,top= 20';
var fetishList = 'width=800,height=600,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=20,top=2 0';

//The pop-up function
function tfpop(){
var x = 0;
var popClass;
//Cycle through the class names
while(x < matchClass.length){
popClass = "'."+matchClass[x]+"'";
//Attach the clicks to the popup classes
$(eval(popClass)).click(function() {
//Get the destination URL and the class popup specs
var popurl = $(this).attr('href');
var popupSpecs = $(this).attr('class');
//Create a "unique" name for the window using a random number
var popupName = Math.floor(Math.random()*10000001);
//Opens the pop-up window according to the specified specs
return false;

//Wait until the page loads to call the function
$(function() {