function popUpSurvey(URL)  
{
	var x = Math.round((screen.availWidth - 400) / 2);
	var y = Math.round((screen.availHeight - 355) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=375';  
	window.open(URL, 'RatingSurvey', fs);
}

function popUp1(URL)  
{
	window.open(URL, 'ContentApplet', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=805,height=560');
	//openCentered(URL,805,570, 'ContentApplet', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=805,height=560'); 		
}

function popUpFBTerms(URL)  
{
	window.open(URL, 'ContentApplet', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=805,height=560');
	//openCentered(URL,805,570, 'ContentApplet', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=805,height=560'); 		
}

function popUpWithScroll(URL)  
{
	window.open(URL, 'ContentApplet', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=805,height=560');
}

function popUpBB(URL)  
{
	var x = Math.round((screen.availWidth - 805) / 2);
	var y = Math.round((screen.availHeight - 560) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=805,height=560';  
	window.open(URL, 'ContentApplet', fs);	 
}

function popUp56K(URL)  
{
	var x = Math.round((screen.availWidth - 650) / 2);
	var y = Math.round((screen.availHeight - 400) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=650,height=400';  
	window.open(URL, 'ContentApplet', fs);
}

function popUpCrossRefBB(URL)  
{
	var x = Math.round((screen.availWidth - 705) / 2);
	var y = Math.round((screen.availHeight - 460) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=805,height=560';  
	window.open(URL, 'CrossRefContentApplet', fs);	 
}

function popUpCrossRef56K(URL)  
{
	var x = Math.round((screen.availWidth - 550) / 2);
	var y = Math.round((screen.availHeight - 300) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=650,height=400';  
	window.open(URL, 'CrossRefContentApplet', fs);
}

function popUpTerms(URL)  
{
	var x = Math.round((screen.availWidth - 820) / 2);
	var y = Math.round((screen.availHeight - 600) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=820,height=600';  
	window.open(URL, 'Terms', fs);
}

function popUpDisclaimer(URL)  
{
	var x = Math.round((screen.availWidth - 600) / 2);
	var y = Math.round((screen.availHeight - 100) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=100';  
	window.open(URL, 'Disclaimer', fs);
}

function popUp2(URL)  
{
	window.open(URL, 'ca', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=805,height=560');
	//openCentered(URL,805,560, 'ca', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0'); 			
}

function popUpPrivacy(URL)  
{
	openCentered(URL,800,700, 'ca', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1'); 			
}

function PopUpGeneric(URL, width, height)  
{
	openCentered(URL,width,height,'generic','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0'); 		
}

function popUpBookPicker(imageURL)
{
	var x = Math.round((screen.availWidth - 750) / 2);
	var y = Math.round((screen.availHeight - 580) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=750,height=580';  
	window.open(imageURL, 'BookPicker', fs);
	//openCentered( imageURL, 730,700, 'BookPicker', "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0" );					
}


function popUpStepByStepMath(URL)
{
	var x = Math.round((screen.availWidth - 780) / 2);
	var y = Math.round((screen.availHeight - 580) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=780,height=580';  
	window.open(URL, 'StepByStepMath', fs);
}

function popUpConfirmation(URL)
{
	var x = Math.round((screen.availWidth  - 250) / 2);
	var y = Math.round((screen.availHeight - 100) / 2);
	var fs = 'left=' + x + ',top=' + y + 'toolbar=0,scrollbars=0,location=0,status=0,toolbar=0,menubar=0,resizable=0,width=250,height=100';  
	if (window.focus) {window.focus()};
	window.open(URL, 'StepByStepNote', fs);
}

function popUp(URL)  
{
	ChildWindow = window.open(URL, null, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=805,height=560');
	ChildWindow.focus();
	ChildWindow.opener = self;				
}

function openCentered (url, width, height, windowName, featureString) 
{
	if (!windowName)
		windowName = '';
	if (!featureString)
		featureString = '';
	else
		featureString = ',' + featureString;
	var x = Math.round((screen.availWidth - width) / 2);
	var y = Math.round((screen.availHeight - height) / 2);
	featureString = 'left=' + x + ',top=' + y + ',width=' + width 
	+ ',height=' + height + featureString;
	return open (url, windowName, featureString);
}

function popUpMembership(URL)  
{
	openCentered(URL,805,560, 'ContentApplet', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0'); 		
}

function popUpCID(URL)  
{
	openCentered(URL,420,210, 'CID', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0'); 		
}