﻿function showhelp_ourprocess(iDiv,iDivContent, iTable, iDivImagePath, iLeft, iTop)
{
    iDiv.style.left = getAbsLeft_ourprocess(iTable) + iLeft + 'px';
    iDiv.style.top = getAbsTop_ourprocess(iTable) + iTop + 'px';
    iDiv.innerHTML = prepareMessageForPopup_ourprocess(iDivContent.innerHTML, 'http://consultantforce.com/App_Themes/Default/images/');//
    iDiv.style.display = 'block';        
}
function hidehelp_ourprocess(iDiv)
{   
    iDiv.style.display = 'none';
}

function getAbsLeft_ourprocess(o) 
{
	oLeft = o.offsetLeft
	while(o.offsetParent!=null) {
		oParent = o.offsetParent
		oLeft += oParent.offsetLeft
		o = oParent
    }
    return oLeft
}
function getAbsTop_ourprocess(o) 
{
    oTop = o.offsetTop
	while(o.offsetParent!=null) {
		oParent = o.offsetParent
		oTop += oParent.offsetTop
		o = oParent
	}
    return oTop
}



function prepareMessageForPopup_ourprocess(msg, imagePath)
    {
        var msgString = '';       
        msgString += '<table width="800px" border="0" cellspacing="0" cellpadding="0">';
        msgString += '<tr>';
        msgString += '<td class="Tool_Tip_Img"><img src="' + imagePath + 'tool_bg1.png"  /></td>';
        msgString += '<td class="Tool_Tip_Top"><img src="' + imagePath + 'spacer.gif" width="1" height="20" /></td>';
        msgString += '<td class="Tool_Tip_Img"><img src="' + imagePath + 'tool_bg2.png" /></td>';
        msgString += '</tr>';
        msgString += '<tr>';
        msgString += '<td class="Tool_Tip_Left">';
        msgString += '<img src="' + imagePath + 'spacer.gif" width="20" height="1" />';
        msgString += '</td>';
        msgString += '<td class="Tool_Tip_MidCtn">';
        msgString += '<p>';                         
        msgString += msg;                             
        msgString += '</p>';
        msgString += '<p>&nbsp;</p>';
        msgString += '</td>';
        msgString += '<td class="Tool_Tip_Right">';
        msgString += '<img src="' + imagePath + 'spacer.gif" width="20" height="1" />';
        msgString += '</td>';
        msgString += '</tr>';
        msgString += '<tr>';
        msgString += '<td class="Tool_Tip_Img_1">';
        msgString += '<img src="' + imagePath + 'tool_bg3.png"  width="20" height="20" />';
        msgString += '</td>';
        msgString += '<td class="Tool_Tip_Bottom">';
               
        msgString += '</td>';
        msgString += '<td class="Tool_Tip_Img_1">';
        msgString += '<img src="' + imagePath + 'tool_bg4.png"  width="20" height="20" />';       
        msgString += '</td>';
        msgString += '</tr>';
        msgString += '</table>';

    return msgString;
    }
    