﻿// JScript File

function tabSwitch(prefix,tabID,total)
{
	for(x=0;x<=total;x++)
	{
		elt = document.getElementById(prefix + x);

		if(x==tabID || tabID==999)
		{
			elt.style.display='block';
		}
		else
		{
			elt.style.display='none';
		}
	}
	
}

	var previewWin=null;
	
	function myOpenWindow(winURL, winName, winFeatures, winObj)
	{
		var theWin; // this will hold our opened window

		// first check to see if the window already exists
		if (winObj != null)
		{
			// the window has already been created, but did the user close it?
			// if so, then reopen it. Otherwise make it the active window.
			if (!winObj.closed) {
				winObj.close();
				theWin = window.open(winURL, winName, winFeatures);
				return theWin;
			}
			// otherwise fall through to the code below to re-open the window
		}

		// if we get here, then the window hasn't been created yet, or it
		// was closed by the user.
		theWin = window.open(winURL, winName, winFeatures);
		return theWin;
	}


