//-----------------------------------------------------------------------------------------
// date: 06/13/2003. 1.0. Popup help.
//-----------------------------------------------------------------------------------------

function NewWindow_help(mypage) 
{
	var w      = 370;
	var h	   = 320;

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=Yes,resizable'
	win = window.open(mypage, 'help', winprops)
	
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//-----------------------------------------------------------------------------------------

function NewWindow_view(mypage) 
{
	var w      = 550;
	var h	   = 500;

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=Yes,resizable'
	win = window.open(mypage, 'view', winprops)
	
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//-----------------------------------------------------------------------------------------

function NewWindow_bbb(mypage) 
{
	var w      = 600;
	var h	   = 500;

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=Yes,resizable'
	win = window.open(mypage, 'view', winprops)
	
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//-----------------------------------------------------------------------------------------
// Start of BBB Reliability Seal Code
//-----------------------------------------------------------------------------------------

function Rcertify() 
{
	popupWin = window.open('http://www.bbbonline.org/cks.asp?id=103032815255130943', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
	window.name = 'opener';
} 

//-----------------------------------------------------------------------------------------
// Validate Compare click.
//-----------------------------------------------------------------------------------------

function Val_compare() 
{
	var ctr = 0

	for (var i = 0; i < document.quotecompare.chk_planid.length; i++)
	{
		if (document.quotecompare.chk_planid[i].checked)
		ctr++;
	}
	if (ctr > 1)
		return true;
	else
	{
		alert ("Please select two or more plans to do a compare.");
		return false;
	}
}
