//
//   name: popup()
// params: str        - string to be text in new page
//         new_title  - title of popup window
//         new_width  - width of popup window
//         new_height - height of popup window
//         is_scroll  - whether or not popup window is scrollable
//         new_name   - name of the new window
// return: false - I don't know why, it just does
//   desc: This function creates a new window with the specified
//         values.
//   TODO: This function doesn't appear to be working right now
//         Clicking on the pop-up link doesn't work. - RAC 8/18/05
function popup(str, new_title, new_width, new_height, is_scroll, new_name)
{
  attribStr   = "scrollbars=" + is_scroll + ",width=" + new_width + 
  							", height=" + new_height + ", resizable=no, status=no," +
  							" location=no, toolbar=no, menubar=no";
  w = open("", new_name, attribStr);
  w.document.writeln('<html><head>');
  w.document.writeln('<title>' + new_title + '</title>');
  w.document.writeln('<style type=\'text/css\'>body{background-color: black; color: white; font-size: 20px;margin:10px;}</style>');
  w.document.writeln('</head>');
  w.document.writeln('<body onBlur="self.close();" onLoad="self.focus();">');
  w.document.writeln('<center>' + str + '</center>');
  w.document.writeln('</body></html>');
  w.document.close();
  return false;
}

function makePopup(elem)
{
	loc = elem.src.replace('/thumbs', '');
	return popup("<img alt='"+ elem.alt +"' src='" + loc +"'><br>"+ elem.alt, 'Build Off Image', 850, 650, false, 'buildOffImgs');
}

