// JavaScript Document

/*
Function used to open popup windows.
From: http://www.sitepoint.com/article/perfect-pop-up/
Date: 03/02/09
*/
var newWin = null; 
function popUp(strURL, strType, strWidth, strHeight) 
{ 
  if (newWin != null && !newWin.closed) newWin.close(); 
  var strOptions=""; 
	if (strType=="normal") strOptions="";
  if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth; 
  if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth; 
  if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth; 
  newWin = window.open(strURL, '_blank', strOptions);
  newWin.focus(); 
}
