function findPosX(obj)
  {
  
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
		
    return curleft;
  }

  function findPosY(obj)
  {
    var curtop = 0;
    if(obj.offsetParent)
        while(1)
        {
          curtop += obj.offsetTop;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.y)
        curtop += obj.y;
		
    return curtop;
  }
function toggleHelpIcon(flagit,obj,hdText,bdyText)
{

	id="dvHelpToolTip";
	if (flagit=="1")
	{ 
			y = findPosY(obj);
			x = findPosX(obj);

		var top = parseInt(y) - 60;
		var left = parseInt(x) + 12;
		if(document.layers)
		{
		document.layers[''+id+''].style.display = "";
			document.layers[''+id+''].style.top = top + "px";
			document.layers[''+id+''].style.left = left + "px";
			document.layers[''+id+''].style.position = "absolute";

			document.layers['hdText'].innerHTML = hdText;
			document.layers['bdyTxt'].innerHTML = bdyText;

			if(trim(hdText)==''){
			document.layers['hdText'].style.display = "none";
			//document.layers['no-title-top'].style.display = "";
			//document.layers['title-top'].style.display = "none";
			}else{
			document.layers['hdText'].style.display = "";
			//document.layers['no-title-top'].style.display = "none";
			//document.layers['title-top'].style.display = "";
			}


		}
		else if (document.all)
		{
			document.all[''+id+''].style.display = "";
			document.all[''+id+''].style.top = top + "px";
		    document.all[''+id+''].style.left = left + "px";
		    document.all[''+id+''].style.position = "absolute";

			document.all['hdText'].innerHTML = hdText;
		    document.all['bdyTxt'].innerHTML = bdyText;
			
			if(trim(hdText)==''){
				document.all['hdText'].style.display = "none";
				//document.all['no-title-top'].style.display = "";
				//document.all['title-top'].style.display = "none";/**/
			}else{
				document.all['hdText'].style.display = "";
				//document.all['no-title-top'].style.display = "none";
				//document.all['title-top'].style.display = "";/**/
			}

		}
		else if (document.getElementById) 
		{
		document.getElementById(id).style.display = "";
			document.getElementById(''+id+'').style.top = top + "px";
			document.getElementById(''+id+'').style.left = left + "px";
			document.getElementById(''+id+'').style.position  = "absolute";
			
			document.getElementById('hdText').innerHTML = hdText;
			document.getElementById('bdyTxt').innerHTML = bdyText;

			if(trim(hdText)==''){
				document.getElementById('hdText').style.display = "none";
				//document.getElementById('no-title-top').style.display = "";
				//document.getElementById('title-top').style.display = "none";/**/
			}else{
				document.getElementById('hdText').style.display = "";
				//document.getElementById('no-title-top').style.display = "none";
				//document.getElementById('title-top').style.display = "";
			}

		}
			


	}
	else if (flagit=="0")
	{
		if (document.layers) document.layers[''+id+''].style.display = "none"
		else if (document.all) document.all[''+id+''].style.display = "none"
		else if (document.getElementById) document.getElementById(''+id+'').style.display = "none"
	}
}


function toggleHelpIconNon(flagit,obj,hdText,bdyText)
{

	id="dvHelpToolTipNonTransparent";
	if (flagit=="1")
	{ 
			y = findPosY(obj);
			x = findPosX(obj);

		var top = parseInt(y) - 60;
		var left = parseInt(x) + 12;
		if(document.layers)
		{
		document.layers[''+id+''].style.display = "";
			document.layers[''+id+''].style.top = top + "px";
			document.layers[''+id+''].style.left = left + "px";
			document.layers[''+id+''].style.position = "absolute";

			document.layers['hdText1'].innerHTML = hdText;
			document.layers['bdyTxt1'].innerHTML = bdyText;

			if(trim(hdText)==''){
			document.layers['hdText1'].style.display = "none";
			//document.layers['no-title-top'].style.display = "";
			//document.layers['title-top'].style.display = "none";
			}else{
			document.layers['hdText1'].style.display = "";
			//document.layers['no-title-top'].style.display = "none";
			//document.layers['title-top'].style.display = "";
			}


		}
		else if (document.all)
		{
			document.all[''+id+''].style.display = "";
			document.all[''+id+''].style.top = top + "px";
		    document.all[''+id+''].style.left = left + "px";
		    document.all[''+id+''].style.position = "absolute";

			document.all['hdText1'].innerHTML = hdText;
		    document.all['bdyTxt1'].innerHTML = bdyText;
			
			if(trim(hdText)==''){
				document.all['hdText1'].style.display = "none";
				//document.all['no-title-top'].style.display = "";
				//document.all['title-top'].style.display = "none";/**/
			}else{
				document.all['hdText1'].style.display = "";
				//document.all['no-title-top'].style.display = "none";
				//document.all['title-top'].style.display = "";/**/
			}

		}
		else if (document.getElementById) 
		{
		document.getElementById(id).style.display = "";
			document.getElementById(''+id+'').style.top = top + "px";
			document.getElementById(''+id+'').style.left = left + "px";
			document.getElementById(''+id+'').style.position  = "absolute";
			
			document.getElementById('hdText1').innerHTML = hdText;
			document.getElementById('bdyTxt1').innerHTML = bdyText;

			if(trim(hdText)==''){
				document.getElementById('hdText1').style.display = "none";
				//document.getElementById('no-title-top').style.display = "";
				//document.getElementById('title-top').style.display = "none";/**/
			}else{
				document.getElementById('hdText1').style.display = "";
				//document.getElementById('no-title-top').style.display = "none";
				//document.getElementById('title-top').style.display = "";
			}

		}
			


	}
	else if (flagit=="0")
	{
		if (document.layers) document.layers[''+id+''].style.display = "none"
		else if (document.all) document.all[''+id+''].style.display = "none"
		else if (document.getElementById) document.getElementById(''+id+'').style.display = "none"
	}
}


function toggleHelpIconLeft(flagit,obj,hdText,bdyText)
{

	id="dvHelpToolTip_left";
	if (flagit=="1")
	{ 
			y = findPosY(obj);
			x = findPosX(obj);

		var top = parseInt(y) - 60;
		var left = parseInt(x) - 242;
		if(document.layers)
		{
		document.layers[''+id+''].style.display = "";
			document.layers[''+id+''].style.top = top + "px";
			document.layers[''+id+''].style.left = left + "px";
			document.layers[''+id+''].style.position = "absolute";

			document.layers['hdText_left'].innerHTML = hdText;
			document.layers['bdyTxt_left'].innerHTML = bdyText;

			if(trim(hdText)==''){
			document.layers['hdText_left'].style.display = "none";
			//document.layers['no-title-top'].style.display = "";
			//document.layers['title-top'].style.display = "none";
			}else{
			document.layers['hdText_left'].style.display = "";
			//document.layers['no-title-top'].style.display = "none";
			//document.layers['title-top'].style.display = "";
			}


		}
		else if (document.all)
		{
			document.all[''+id+''].style.display = "";
			document.all[''+id+''].style.top = top + "px";
		    document.all[''+id+''].style.left = left + "px";
		    document.all[''+id+''].style.position = "absolute";

			document.all['hdText_left'].innerHTML = hdText;
		    document.all['bdyTxt_left'].innerHTML = bdyText;
			
			if(trim(hdText)==''){
				document.all['hdText'].style.display = "none";
				//document.all['no-title-top'].style.display = "";
				//document.all['title-top'].style.display = "none";/**/
			}else{
				document.all['hdText_left'].style.display = "";
				//document.all['no-title-top'].style.display = "none";
				//document.all['title-top'].style.display = "";/**/
			}

		}
		else if (document.getElementById) 
		{
		document.getElementById(id).style.display = "";
			document.getElementById(''+id+'').style.top = top + "px";
			document.getElementById(''+id+'').style.left = left + "px";
			document.getElementById(''+id+'').style.position  = "absolute";
			
			document.getElementById('hdText_left').innerHTML = hdText;
			document.getElementById('bdyTxt_left').innerHTML = bdyText;

			if(trim(hdText)==''){
				document.getElementById('hdText_left').style.display = "none";
				//document.getElementById('no-title-top').style.display = "";
				//document.getElementById('title-top').style.display = "none";/**/
			}else{
				document.getElementById('hdText_left').style.display = "";
				//document.getElementById('no-title-top').style.display = "none";
				//document.getElementById('title-top').style.display = "";
			}

		}
			


	}
	else if (flagit=="0")
	{
		if (document.layers) document.layers[''+id+''].style.display = "none"
		else if (document.all) document.all[''+id+''].style.display = "none"
		else if (document.getElementById) document.getElementById(''+id+'').style.display = "none"
	}
}

function toggleHelpIconLarge(flagit,obj,hdText,bdyText)
{

	id="dvHelpToolTipLarge";
	if (flagit=="1")
	{ 
			y = findPosY(obj);
			x = findPosX(obj);

		var top = parseInt(y) - 60;
		var left = parseInt(x) + 12;
		if(document.layers)
		{
		document.layers[''+id+''].style.display = "";
			document.layers[''+id+''].style.top = top + "px";
			document.layers[''+id+''].style.left = left + "px";
			document.layers[''+id+''].style.position = "absolute";

			document.layers['hdText2'].innerHTML = hdText;
			document.layers['bdyTxt2'].innerHTML = bdyText;

			if(trim(hdText)==''){
			document.layers['hdText2'].style.display = "none";
			//document.layers['no-title-top'].style.display = "";
			//document.layers['title-top'].style.display = "none";
			}else{
			document.layers['hdText2'].style.display = "";
			//document.layers['no-title-top'].style.display = "none";
			//document.layers['title-top'].style.display = "";
			}


		}
		else if (document.all)
		{
			document.all[''+id+''].style.display = "";
			document.all[''+id+''].style.top = top + "px";
		    document.all[''+id+''].style.left = left + "px";
		    document.all[''+id+''].style.position = "absolute";

			document.all['hdText2'].innerHTML = hdText;
		    document.all['bdyTxt2'].innerHTML = bdyText;
			
			if(trim(hdText)==''){
				document.all['hdText2'].style.display = "none";
				//document.all['no-title-top'].style.display = "";
				//document.all['title-top'].style.display = "none";/**/
			}else{
				document.all['hdText2'].style.display = "";
				//document.all['no-title-top'].style.display = "none";
				//document.all['title-top'].style.display = "";/**/
			}

		}
		else if (document.getElementById) 
		{
		document.getElementById(id).style.display = "";
			document.getElementById(''+id+'').style.top = top + "px";
			document.getElementById(''+id+'').style.left = left + "px";
			document.getElementById(''+id+'').style.position  = "absolute";
			
			document.getElementById('hdText2').innerHTML = hdText;
			document.getElementById('bdyTxt2').innerHTML = bdyText;

			if(trim(hdText)==''){
				document.getElementById('hdText2').style.display = "none";
				//document.getElementById('no-title-top').style.display = "";
				//document.getElementById('title-top').style.display = "none";/**/
			}else{
				document.getElementById('hdText2').style.display = "";
				//document.getElementById('no-title-top').style.display = "none";
				//document.getElementById('title-top').style.display = "";
			}

		}
			


	}
	else if (flagit=="0")
	{
		if (document.layers) document.layers[''+id+''].style.display = "none"
		else if (document.all) document.all[''+id+''].style.display = "none"
		else if (document.getElementById) document.getElementById(''+id+'').style.display = "none"
	}
}
