// JavaScript Document
function OpenHelpPanel(p, page) {
	var w = 755;
	var h = 560;
	//var p = basepath + '/help_panel/help/help_panel.htm';
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars=no,';
	settings +='resizable=no';
	if (page != undefined) {
		childWindow=window.open(p+'?activeframe='+page,'help',settings);
	} else {
		childWindow=window.open(p,'help',settings);
	}
	childWindow.window.focus();			
}

function addToFavorites()
{
	if (window.sidebar)
	{
		window.sidebar.addPanel(document.title, window.location.href, "");
	}
	else if (window.external)
	{
		window.external.AddFavorite(window.location.href, document.title);
	}
}

function NewWindow(mypage,myname,w,h,scroll) {
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars='+scroll+',';
	settings +='resizable=yes';
	childWindow=window.open(mypage,myname,settings);
	childWindow.window.focus();
}
