function showPage(p,resize)
{
	var res = "yes";
	if (resize==null || resize=="undefined")
		res = no;
	window.open(p,"_blank","titlebar=yes,menubar=yes,toolbar=yes,scrollbars=yes,location=no,resizable="+res);
}


function showHomePage(profId, langId)
{
	showPage(getContextPath()+"/homepage"+(languageId==2?"/en":"")+"?professorId="+profId,"1");
}

function showFullCV(profId, langId)
{
  showPage(getContextPath()+"/cv/fullcv"+(languageId==2?"/en":"")+"?professorId="+profId,"1");
}

function setShortcuts()
{
  if (document.all.item("#cv.education")!=null) document.all.item("education").style.display="";
  if (document.all.item("#cv.admin")!=null) document.all.item("admin").style.display="";
  if (document.all.item("#cv.theory")!=null) document.all.item("theory").style.display="";
  if (document.all.item("#cv.scientificTheory")!=null) document.all.item("scientificTheory").style.display="";
  if (document.all.item("#cv.reward")!=null) document.all.item("reward").style.display="";
  if (document.all.item("#cv.lesson")!=null) document.all.item("lesson").style.display="";
  if (document.all.item("#cv.projects")!=null) document.all.item("projects").style.display="";
  if (document.all.item("#cv.usefullPlan")!=null) document.all.item("usefullPlan").style.display="";
  if (document.all.item("#cv.club")!=null) document.all.item("club").style.display="";
  if (document.all.item("#cv.publication")!=null) document.all.item("publication").style.display="";
}