
function help(n) {
	switch(n){
	case 1:
	popupwindow=window.open("mycchelp.html", "popuphelp", "width=600,height=400,scrollbars=yes,resize=no,menubar=no");
	break;
	case 2:
	popupwindow=window.open("homepage.html","bookmarkconfirmation", "width=640,height=400,scrollbars=yes,resize=yes,menubar=no");
	break;			
		}
	reinstateWindow(popupwindow)	
	}

function reinstateWindow(x) {
	x.focus()
	}



function mycc()
{
	history.go("/index.jsp");
}


function deletemodule(groupid, beanid) 
{
	if (confirm("Are you sure you want to remove this module?")) 
	{
		alert("You can restore this module later using your Personalize button")
		location.replace("/deleteBean.jsp?groupID=" + groupid + "&beanID=" + beanid);
	}
}


function shrinkmodule(groupid, beanid) 
{
	location.replace("/minimizeBean.jsp?groupID=" + groupid + "&beanID=" + beanid + "&minimize=true");
	location.reload(true);
}


function enlargemodule(groupid, beanid) 
{
	location.replace("/minimizeBean.jsp?groupID=" + groupid + "&beanID=" + beanid + "&minimize=false");
	location.reload(true);
}


function unregisteredwarning() 
{
	alert("You need to login before you can do this.");
}

function backtomcc()
{
	history.back();
}



