function popperOLD(url) {
	var popwin = window.open(url,'','scrollbars=yes,menubar=no,height=530,width=530,resizable=yes,toolbar=no,location=no,status=no');
}

// POP UP WINDOW
function popper(url) {
	// alert("Pop Recipe: " + url);
	
	var name = 'baby';
	var height = '375';
	var width = '550';
	var resize = 'yes';
	var scrolling = 'yes';
	
	features = "menubar=0, tollbar=0, scrollbars=" + scrolling + ", resizable=" + resize + ", width=" + width + ", height=" + height + ",dependent=yes";
	
	if (window.thePopper && !window.thePopper.closed) {
		
		thePopper.resizeTo(width,height);
		thePopper.innerwidth=width;
		thePopper.height=height;
		thePopper.location.href = url;
		thePopper.focus();
		
	} else {

		var winl = Math.floor((screen.width - width) / 2);
		var wint = Math.floor((screen.height - height) / 4);
					
		thePopper = window.open(url,name,'top='+wint+',left='+winl+','+features);
		thePopper.innerwidth=width;
		thePopper.height=height;
	
	}
	 
}



function popWindow(theURL) {
        if (window.thePopWin) {
                if (window.thePopWin.closed){ 
                        thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=no,location=no,directories=yes,status=no,menubar=no,scrollbars=yes,resizable,width=600,height=500');
                        doneIt = 1;
                } else {
                        if (navigator.appVersion.indexOf("AOL") == -1) {
                                window.thePopWin.focus();
                                if (window.thePopWin.location != theURL) window.thePopWin.location = theURL;
                        } else {
                                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=no,location=no,directories=yes,status=no,menubar=no,scrollbars=yes,resizable,width=600,height=500');
                        }
                }
        } else {
                thePopWin = open(theURL,'thePopWin','left=30,top=30,toolbar=no,location=no,directories=yes,status=no,menubar=no,scrollbars=yes,resizable,width=600,height=500');

        }
}

