function pageNameReset(newPagename){
	try{
		pagevalue=dispatcher.getAttribute("pageName");
		dispatcher.setAttribute("pageName",newPagename);
		dispatcher.sendCall();
	}catch(e){}
} 
  
function pageNameAppend(newPagename){
	try{
		pagevalue=dispatcher.getAttribute("pageName");
		dispatcher.setAttribute("pageName",pagevalue+"-"+newPagename);
		dispatcher.sendCall();
		dispatcher.setAttribute("pageName",pagevalue);
	}catch(e){}
}

function nanPrint(urlAlias,contentType,showID,numberPages){
					site="nickatnite";
					var ro={};
					com.mtvi.reporting.Account.name = "viakfprint";
					ro.name = com.mtvi.reporting.Account.name;
					ro.dynamicAccountSelection = false;
					ro.dynamicAccountList = "devvianick=nickatnite-d,nickatnight-d,nickatnite-q,nickatnight-q";
					ro.linkInternalFilters = "javascript:,nickatnite.com,nickatnight.com";
					ro.trackExternalLinks = true;
					ro.trackDownloadLinks = true;
					dispatcher.setAccountVars(ro);
					dispatcher.setAttribute("pageName",site+"-"+contentType+"-"+showID+"-"+urlAlias);
					dispatcher.setAttribute("channel",site);
					dispatcher.setAttribute("hier1",site+"/"+contentType+"/"+showID+"/"+urlAlias);
					dispatcher.setAttribute("hier2",site+"/"+contentType+"/"+showID+"/"+urlAlias);
					dispatcher.setAttribute("prop1",numberPages);
					dispatcher.setAttribute("prop2",site);
					dispatcher.setAttribute("prop3",contentType);
					dispatcher.setAttribute("prop4",showID);
					dispatcher.setAttribute("prop5",urlAlias);
					dispatcher.sendCall();
					resetParamsToDefault();
}