// Popup code

/* Call this function like this:
 <a href="javascript:popup('page.html',400,200,0)">open window</a>
 */ 
function popup(pageURL,x,y,s) {
	myDate = new Date();
	winID = myDate.getTime();
	eval("window" + winID + " = window.open('"+pageURL+"', '" + winID + "', 'toolbar=0,scrollbars="+s+",location=0,statusbar=1,menubar=0,resizable=1,width="+x+",height="+y+"');");	
}

// Popup Forms code
/* I added this for use in the newsletter sign-up forms.  Since this 
function names the pop-up window, it's easier to pass form values to it.
 */ 
function openTarget (form, features, windowName) {
  if (!windowName)
    windowName = 'formTarget' + (new Date().getTime());
  form.target = windowName;
  open ('', windowName, features);
}