// JavaScript Document

//Command to set the parent window name to ContractorCalculator (can be any name) for use within pop ups and linking between browser windows etc
window.name="ContractorCalculator";

//Function to open pop up windows
function GlobalPopUp(theURL,winName,features)
	{
	return window.open(theURL,winName,features);
	}
	
//Function to open pop up window AND focus on it - Extends above function
//for this to work you must use window.name to name your new window
function GlobalFocusPopUp(theURL,winName,features)
	{
	NewWindow = GlobalPopUp(theURL,winName,features);
	window.NewWindow.focus();
	return NewWindow;
	}
