var ResultsList = {
	ShowDetails : function(modulePath, link) {
		var el = document.getElementById("details_" + modulePath);
		if (el)
			el.style.display = '';
			//el.className = el.className.replace(" readableButHidden", "");
		
		link.style.display = 'none';
		link.nextSibling.style.display = '';
	},
	HideDetails : function(modulePath, link) {
		var el = document.getElementById("details_" + modulePath);
		if (el)
			el.style.display = 'none';	
			//el.className = el.className + " readableButHidden";

		link.previousSibling.style.display = '';
		link.style.display = 'none';
	},
	ShowAdminRightsPopup : function(wizardId, lang) {
		popupWindow('adminRights', 'AdminRights.aspx?wizardId=' + wizardId + '&lang=' + escape(lang), {Width:550});
	},
	ShowSystemRequirementsPopup : function(wizardId, lang) {
		popupWindow('sysReq','SystemRequirements.aspx?wizardId=' + wizardId + '&lang=' + escape(lang),{Width:550});
	},
	ShowSupportPopup : function(url) {
		popupWindow('support',url,{Width:870, Height: 510, AutoClose:false, Toolbar:true, Location:true});
	},
	ShowTrademarkPopup : function(wizardId, lang) {
		popupWindow('trademark', 'Trademark.aspx?wizardId=' + wizardId + '&lang=' + escape(lang), {Width:500});
	},
	InstallNowClicked : function(link, moduleId, confirmInstallText) {		
		setTimeout("document.getElementById('module" + moduleId + "InstallLink').innerHTML='" + confirmInstallText + "';", 500);
		//link.innerHTML= confirmInstallText;
		link.onclick=function(){ResultsList.ConfirmInstall(); return false;};
	},
	ConfirmInstall : function() {
		location = location;
	},
	Confirm_powerpoint : function(lang) {
		popupWindow("confirm","CheckPpt.aspx?lang=" + escape(lang), {Width:550});
	},
	Confirm_acrobat : function(lang) {
		popupWindow("confirm","CheckPdf.aspx?lang=" + escape(lang), {Width:550});
	},
	Confirm_testgen : function(lang) {
		popupWindow("confirm","TestGen.aspx?lang=" + escape(lang), {Width:600});
	}
}

function doHelp(topicname, target) {
  // Comment 9841 - ignoring uppercase HTTPS.  should never happen due to our redirect
  var url = BaseAbsUrl+"/info/Help.aspx?topic="+escape(topicname);
  if (url.indexOf("https")>-1)
	url = url.replace("https","http");
  if (target) url += "&target="+escape(target);
  popupWindow("help",url,{Width:600,Height:600,AutoClose:false});
}

function doPrint() {
   window.print();
}

function reload() {
	var loc = location.pathname + location.search;
	loc = loc.replace("&warnactivex=1", "");
	loc = loc.replace("&warnbrowser=1", "");
	location = loc;
}