var popwin;
var fullscreenpop;

function nonStandardPopUp(theURL, width, height)
{
	if(theURL.indexOf('?') < 0)
	{
		theFullURL = theURL + '?';
	}
	else
	{
		theFullURL = theURL + '&';
	}
	
	popwin = window.open(theFullURL+'x='+width+'&y='+height,'popwin','toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+width+',height='+height+',left=50, top=50');
	popwin.focus();
}

function standardPopUp(theURL)
{
	nonStandardPopUp(theURL, '550', '500');
}

function privacyPolicy() 
{
	nonStandardPopUp('privacy.cfm',350,400);
}

function disclaimer() 
{
	nonStandardPopUp('disclaimer.cfm',350,400);
}


function resizablePopUp(theURL, width, height)
{
	if(theURL.indexOf('?') < 0)
	{
		theFullURL = theURL + '?';
	}
	else
	{
		theFullURL = theURL + '&';
	}
	
	popwin = window.open(theFullURL+'x='+width+'&y='+height,'popwin','toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left=50, top=50');
	popwin.focus();
}


function closeExistingFullScreenPopUp()
{
	if ( fullscreenpop && !fullscreenpop.closed )
	  {
		 fullscreenpop.close();
	  }
}