﻿function GetHelpAbout(id, pnlID) {
	var userContext = [id, pnlID];
	//show the panel with the indicator and clear any previous info...
	document.getElementById(pnlID).style.zIndex = '22';
	document.getElementById(pnlID).style.display = 'block';
	document.getElementById(pnlID).style.visibility = 'visible';
	//FullyQualifiedWebService.WebMethod(parameters, successfulCallback, failedCallback, userContext);
	HelpAbout.Find(id, HA_Succeeded, HA_Failure, userContext);
}
function HA_Succeeded(result, userContext, methodName) {
	var id = userContext[0];
	var pnlID = userContext[1];
	//replace the indicator with the help info
	document.getElementById(pnlID.replace('pnl', 'lnk')).innerHTML = result;
}
function HA_Failure(err, userContext, methodName) {
	alert(err);
}
function HideHelpAbout(pnlID) {
	document.getElementById(pnlID).style.zIndex = '0';
	document.getElementById(pnlID).style.display = 'none';
	var str = '<img id="HA_indicator" src="img/indicator.gif" alt="" style="position:relative;top:21px;left:10px;" width="16" height="16" />';
	str += '<span id="lblPleaseWait" style="position:relative;top:20px;left:15px;"><b>Please wait loading.....</b></span>';
	document.getElementById(pnlID.replace('pnl', 'lnk')).innerHTML = str;
}