// JavaScript Document

// function takes one required parameters, the name of the popup page
// An optional parameter, passed to the arguments array handles a targeted link fragment

function popup(page) {
	           var fragment = arguments[1];
	  	       var urlFragment = page + '.html#' + fragment;
			   var popupWindow = window.open(urlFragment, "popup", "status,resizable,toolbar=yes,menubar=yes,scrollbars=yes,left=700,top=40,width=500");
			   
			   popupWindow.focus();  
}


  function openWindow(location, winName, width, height, menubar, resizable, scrollbars) {
	 var propString = "";
	 propString += "width=" + width;	
	 propString += ",height=" + height; 
	 propString += ",menubars=" + menubar;	 
	 propString += ",resizable=" + resizable;	 
	 propString += ",scrollbars=" + scrollbars;

	 var focusWindow = window.open(location, winName, propString);
     focusWindow.focus();
  }