﻿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("Stack Trace: " + error.get_stackTrace() + "\r\n" +
                    "Error: " + error.get_message() + "\r\n" +
                    "Status Code: " + error.get_statusCode() + "\r\n" +
                    "Exception Type: " + error.get_exceptionType() + "\r\n" +
                    "Timed Out: " + error.get_timedOut());
}
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:16px; height:16px" />';
	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;
}
